This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| cfnet:cftc1l [2026/02/21 23:54] – created - external edit 127.0.0.1 | cfnet:cftc1l [2026/03/29 04:49] (current) – [CFTC-1L] admin | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ======CFTC-1L====== | ======CFTC-1L====== | ||
| + | |||
| + | Currently, this product is available for use with Modular FADUINO. It cannot be used with CFHDR-8U or ModularPi. | ||
| + | |||
| This is a module that can measure temperature using thermocoupler K, J, T, N, E, S, B, and R type sensors. | This is a module that can measure temperature using thermocoupler K, J, T, N, E, S, B, and R type sensors. | ||
| Line 23: | Line 26: | ||
| =====Wiring method===== | =====Wiring method===== | ||
| - | {{: | + | {{.: |
| ===== Setting the module' | ===== Setting the module' | ||
| Line 29: | Line 32: | ||
| * The address setting method is different from other I/O modules: | * The address setting method is different from other I/O modules: | ||
| - | {{ : | + | {{ .: |
| - | =====How to use the API===== | + | |
| - | + | ||
| - | 1. < | + | |
| - | + | ||
| - | 2. CFNET object creation: e.g. '' | + | |
| - | + | ||
| - | 3. Call the function(s): | + | |
| - | * '' | + | |
| - | * '' | + | |
| - | + | ||
| - | ====-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. | + | |
| - | + | ||
| - | * '' | + | |
| - | + | ||
| - | **A value of '' | + | |
| - | + | ||
| - | <code c> | + | |
| - | #include " | + | |
| - | CFNET cfnet; | + | |
| - | + | ||
| - | void setup() { | + | |
| - | | + | |
| - | | + | |
| - | | + | |
| - | } | + | |
| - | + | ||
| - | void loop() { | + | |
| - | float k_temp_0 = cfnet.tcTempRead(0); | + | |
| - | float k_temp_1 = cfnet.tcTempRead(1); | + | |
| - | + | ||
| - | | + | |
| - | | + | |
| - | | + | |
| - | | + | |
| - | } | + | |
| - | + | ||
| - | </ | + | |
| - | + | ||
| - | ===== Sensor type ===== | + | |
| - | + | ||
| - | You need to purchase a wire-type sensor to connect this product. If you already have the connector-type, | + | |
| - | + | ||
| - | {{ : | + | |
| + | [[index|CFNET]] | ||
| - | [[modularfaduino: | ||