======CFTC-1L======
This is a module that can measure temperature using thermocoupler K, J, T, N, E, S, B, and R type sensors.
[[https://comfiletech.com/modular-faduino/cftc-1l-thermocouple-temperature-module/|View at our online store]].
=====Electrical specifications=====
* Sensor input points: 1 channel
* Conversion unit: 0.0625°C
* Error rate: ±1.5°C
* Isolation: No isolation
=====Measurement range by sensor type=====
* Type K: -200°C ~ 1350°C
* Type J: -150°C to +1200°C
* Type T: -200°C to +400°C
* Type N: -150°C to +1300°C
* Type E: -200°C to +1000°C
* Type S: 250°C to +1664°C
* Type B: 1000°C to +1800°C
* Type R: 250°C to +1664°C
* Although the CFTC-1L's hardware and design is rated for the broad ranges listed above, and can be used with probes rated for those ranges, the CFTC-1L has only been validated for temperatures in the range of -50℃ ~ 500℃.
=====Wiring method=====
{{:modularfaduino:cftc-1.png?nolink |}}
===== Setting the module's address =====
* Up to 8 CFTC-1L modules can be used in one system, each with a different address in the range of 0x00~0x07.
* The address setting method is different from other I/O modules: Only one of the DIP switches should be turned ON at any time.
{{ :modularfaduino:cftc-1dsw.png?nolink |}}
=====How to use the API=====
1. #include "CFMEGA.h" library registration
2. CFNET object creation: e.g. ''CFNET **object name**'' =>'' CFNET ** cfnet;**''
3. Call the function(s): \\
* ''**Object Name**.tcSetInit();'' => ''**cfnet**.tcSetInit(0,0);''\\
* ''**Object Name**.tcTempRead();'' => ''**cfnet**.tcTempRead(0);''
====-u8 tcSetInit(u8 addr, u8 sensor) ====
This function sets the sensor type to be used for the address module specified as the initialization setting.
* address: module dip switch value (0~7)
* sensor: Sensor type (**Type K = 0, J = 1, T = 2, N = 3, S = 4, E = 5, B = 6, R =** 7)
====- float tcTempRead(u8 addr)====
Reads the measured temperature value as a floating point type to the second decimal place.
* ''address'': The address of the module as configured by its DIP switch (0~7)
**A value of ''-1111'' is returned if a thermocouple is not connected, or an otherwise invalid reading is detected (e.g. the value read is out of range for the thermocouple type).**
#include "CFMEGA.h"
CFNET cfnet;
void setup() {
Serial.begin(9600);
cfnet.tcSetInit(0,0);
cfnet.tcSetInit(1,0);
}
void loop() {
float k_temp_0 = cfnet.tcTempRead(0);
float k_temp_1 = cfnet.tcTempRead(1);
Serial.print("Thermocouple 0 : "); Serial.print(k_temp_0); Serial.print("°C"); Serial.println();
Serial.print("Thermocouple 1 : "); Serial.print(k_temp_1); Serial.print("°C"); Serial.println();
Serial.println();Serial.println();
delay(200);
}
===== Sensor type =====
You need to purchase a wire-type sensor to connect this product. If you already have the connector-type, open the connector and convert it to wire-type.
{{ :modularfaduino:wireeng.png?nolink |}}
[[modularfaduino:index|Modular FADUINO]]