# Title: Thermostat 3 Click Board™ ## Description: The Click Board™ is equipped with all the necessary elements, required to provide a reliable operation: it has a varistor across the relay output contacts, preventing excessive voltage transients, it has a flyback diode for the backEMF generated within the relay coil, and a durable mechanical relay, that can withstand up to 20,000,000 mechanical cycles (no load connected). These features allow Thermostat 3 Click Board™ to be used for a wide range of applications that have to be thermally controlled: various home appliances, air conditioners, cooling fans, small heaters, etc. How Does The Thermostat 3 Click Board™ Work? The Thermostat 3 Click Board™ is designed around the MAX31855, as the main IC - a sophisticated thermocouple-to-digital converter with a built-in 14-bit analog-to-digital converter (ADC), from Maxim Integrated. The device also contains cold-junction compensation sensing and correction, a digital controller, a SPI compatible interface, and associated control logic. The Thermostat 3 Click Board™ is designed to be used with externally connected K-type thermocouple sensor. The communication with the host MCU is performed over the SPI interface, using the dedicated pins of the mikroBUS. Depending on the temperature information obtained over the SPI interface, the host MCU can take the necessary action: it can either open or close contacts of the relay. The Click Board™ uses the G6D series PCB power relay, from Omron. This quality relay can withstand an amazingly large number of mechanical cycles, with no load connected. However, when there is a significant load connected at its output, micro-electric arcs cause the contacts to wear over time. With the maximum load current of 5A, it can sustain up to 70,000 cycles. Its contacts are made of silver alloy, yielding exceptional ON resistance of only 100mΩ (max). The relay is activated by the host MCU. The voltage for the coil activation is 5V, while the current through the coil is 40mA. The MCU is not able to drive the coil directly, therefore an NPN transistor had to be added. Its base is controlled by the host MCU, allowing the coil to drain enough current from the 5V mikroBUS power rail. The base of the transistor is routed to the CS pin of the Click Board™. The transistor packs two biasing resistors in the same casing, so it can be directly used on the MCU pin, without external biasing resistors. A red color LED, labelled as ACTIVE is used to indicate that the transistor is in an open state and that the current is running through the relay coil. When the current through a coil (or any other inductor) is suddenly changed, the backEMF will be generated, opposing the changes of the current. This can sometimes lead to damage to the control circuit: in this case, the transistor will become inversely polarized. To prevent this from happening, a flyback diode is added across the coil. During the normal operation, this diode does not conduct any current. However, when the coil is switched OFF, the inverse polarization will cause the current to pass through this diode with minimum resistance. This prevents inverse (flyback) voltage from building up, so the transistor remains safe. Contacts at the output may be connected to a higher voltage and larger current may run through. To prevent high voltage transients in this case, a flyback diode is not a viable option. Therefore, Thermostat 3 Click Board™ uses a varistor (VDR). This component rapidly drops its resistance as the voltage rises above its rated clamping voltage. The excessive voltage transient will pass through the VDR since it will become a current path with the least resistance. During the normal operation, while the voltage stays below the rated clamping voltage, VDR has a very high resistance, so the current runs through the electrical circuit, instead. The operating voltage of the Click Board™ can be selected by the VCC SEL jumper. This jumper allows selecting either 3.3V or 5V from the mikroBUS. The selected voltage will be applied to the VCC pin of the connected MAX31855 sensor. SPECIFICATIONS Type Temperature & humidity Applications Thermostat 3 Click Board™ can be used for a wide range of applications that have to be thermally controlled: various home appliances, air conditioners, cooling fans, small heaters, etc On-board modules MAX31855, a sophisticated thermocouple-to-digital converter with a built-in 14-bit analog-to-digital converter (ADC), from Maxim Integrated G6D series PCB power relay, by Omron. Key Features Built-in 14-bit analog-to-digital converter (ADC), cold-junction compensation sensing and correction, a digital controller, SPI interface, associated control logic. Interface GPIO,SPI Compatibility mikroBUS Click Board™ size L (57.15 x 25.4 mm) Input Voltage 3.3V or 5V PINOUT DIAGRAM This table shows how the pinout on Thermostat 3 Click Board™ corresponds to the pinout on the mikroBUS socket (the latter shown in the two middle columns). Notes Pin Pin Notes NC 1 AN PWM 16 RLY Relay Control NC 2 RST INT 15 NC Chip Select CS 3 CS RX 14 NC SPI Clock SCK 4 SCK TX 13 NC SPI Data Out SDO 5 MISO SCL 12 NC NC 6 MOSI SDA 11 NC Power Supply 3.3V 7 3.3V 5V 10 5V Power Supply Ground GND 8 GND GND 9 GND Ground ONBOARD SETTINGS AND INDICATORS Label Name Default Description LD1 ACTIVE - Relay status LED, lights up when the relay is CLOSED LD2 PWR - Power LED indicator CN1 - - Relay output connector CN2 - - External thermocouple connector JP1 VCC SEL Left Power supply voltage selection: left position 3.3V, right position 5V ## Product type: Click Board ## Vendor: Mikroelektronika d.o.o. ## Tags: Analog Devices, Click Board, Maxim Integrated, MikroE, Sensor, Temp&Hum, Temperature ## Price range: 30.1 - 30.1 GBP ## Link: https://thedebugstore.com/products/mikroe-3724-thermostat-3-click-board-uk ## Compare-at price range: 43.0 - 43.0 GBP ## Options - Title: Default Title ## Collections - [New Products](https://thedebugstore.com/a/llms/collections/new-products-debug-store) - [Mikroelektronika d.o.o. (MikroE)](https://thedebugstore.com/a/llms/collections/mikroelektronika-catalogue-uk) - [Analog Devices Development Boards and Support Tools | Debug Store](https://thedebugstore.com/a/llms/collections/analog-devices-device-support-uk) - [Maxim Integrated Device Support - Development Boards & Tools | Debug Store](https://thedebugstore.com/a/llms/collections/devices-maxim-integrated) - [Sensor Click Boards™](https://thedebugstore.com/a/llms/collections/sensor-click-boards-catalogue) - [MikroE Click Boards™](https://thedebugstore.com/a/llms/collections/mikroe-click-boards-catalogue-uk) - [Temperature Sensor Click Boards™](https://thedebugstore.com/a/llms/collections/temperature-sensor-click-boards-catalogue) - [Click Boards™ Summer Sale](https://thedebugstore.com/a/llms/collections/inventory-sale) - [MikroE Sale](https://thedebugstore.com/a/llms/collections/mikroe-sale) - [MIKROE Stock](https://thedebugstore.com/a/llms/collections/mikroe-products-in-stock-sale) ## Variants - Default Title, SKU: MIKROE-3724, Available: yes, Inventory: 1 ## Metafields - full_description:
The Click Board™ is equipped with all the necessary elements, required to provide a reliable operation: it has a varistor across the relay output contacts, preventing excessive voltage transients, it has a flyback diode for the backEMF generated within the relay coil, and a durable mechanical relay, that can withstand up to 20,000,000 mechanical cycles (no load connected). These features allow Thermostat 3 Click Board™ to be used for a wide range of applications that have to be thermally controlled: various home appliances, air conditioners, cooling fans, small heaters, etc.
The Thermostat 3 Click Board™ is designed around the MAX31855, as the main IC - a sophisticated thermocouple-to-digital converter with a built-in 14-bit analog-to-digital converter (ADC), from Maxim Integrated. The device also contains cold-junction compensation sensing and correction, a digital controller, a SPI compatible interface, and associated control logic. The Thermostat 3 Click Board™ is designed to be used with externally connected K-type thermocouple sensor. The communication with the host MCU is performed over the SPI interface, using the dedicated pins of the mikroBUS.

Depending on the temperature information obtained over the SPI interface, the host MCU can take the necessary action: it can either open or close contacts of the relay. The Click Board™ uses the G6D series PCB power relay, from Omron. This quality relay can withstand an amazingly large number of mechanical cycles, with no load connected. However, when there is a significant load connected at its output, micro-electric arcs cause the contacts to wear over time. With the maximum load current of 5A, it can sustain up to 70,000 cycles. Its contacts are made of silver alloy, yielding exceptional ON resistance of only 100mΩ (max).
The relay is activated by the host MCU. The voltage for the coil activation is 5V, while the current through the coil is 40mA. The MCU is not able to drive the coil directly, therefore an NPN transistor had to be added. Its base is controlled by the host MCU, allowing the coil to drain enough current from the 5V mikroBUS power rail. The base of the transistor is routed to the CS pin of the Click Board™. The transistor packs two biasing resistors in the same casing, so it can be directly used on the MCU pin, without external biasing resistors. A red color LED, labelled as ACTIVE is used to indicate that the transistor is in an open state and that the current is running through the relay coil.
When the current through a coil (or any other inductor) is suddenly changed, the backEMF will be generated, opposing the changes of the current. This can sometimes lead to damage to the control circuit: in this case, the transistor will become inversely polarized. To prevent this from happening, a flyback diode is added across the coil. During the normal operation, this diode does not conduct any current. However, when the coil is switched OFF, the inverse polarization will cause the current to pass through this diode with minimum resistance. This prevents inverse (flyback) voltage from building up, so the transistor remains safe.
Contacts at the output may be connected to a higher voltage and larger current may run through. To prevent high voltage transients in this case, a flyback diode is not a viable option. Therefore, Thermostat 3 Click Board™ uses a varistor (VDR). This component rapidly drops its resistance as the voltage rises above its rated clamping voltage. The excessive voltage transient will pass through the VDR since it will become a current path with the least resistance. During the normal operation, while the voltage stays below the rated clamping voltage, VDR has a very high resistance, so the current runs through the electrical circuit, instead.
The operating voltage of the Click Board™ can be selected by the VCC SEL jumper. This jumper allows selecting either 3.3V or 5V from the mikroBUS. The selected voltage will be applied to the VCC pin of the connected MAX31855 sensor.
| Type | Temperature & humidity |
| Applications | Thermostat 3 Click Board™ can be used for a wide range of applications that have to be thermally controlled: various home appliances, air conditioners, cooling fans, small heaters, etc |
| On-board modules | MAX31855, a sophisticated thermocouple-to-digital converter with a built-in 14-bit analog-to-digital converter (ADC), from Maxim Integrated G6D series PCB power relay, by Omron. |
| Key Features | Built-in 14-bit analog-to-digital converter (ADC), cold-junction compensation sensing and correction, a digital controller, SPI interface, associated control logic. |
| Interface | GPIO,SPI |
| Compatibility | mikroBUS |
| Click Board™ size | L (57.15 x 25.4 mm) |
| Input Voltage | 3.3V or 5V |
This table shows how the pinout on Thermostat 3 Click Board™ corresponds to the pinout on the mikroBUS socket (the latter shown in the two middle columns).
| Notes | Pin | ![]() |
Pin | Notes | |||
|---|---|---|---|---|---|---|---|
| NC | 1 | AN | PWM | 16 | RLY | Relay Control | |
| NC | 2 | RST | INT | 15 | NC | ||
| Chip Select | CS | 3 | CS | RX | 14 | NC | |
| SPI Clock | SCK | 4 | SCK | TX | 13 | NC | |
| SPI Data Out | SDO | 5 | MISO | SCL | 12 | NC | |
| NC | 6 | MOSI | SDA | 11 | NC | ||
| Power Supply | 3.3V | 7 | 3.3V | 5V | 10 | 5V | Power Supply |
| Ground | GND | 8 | GND | GND | 9 | GND | Ground |
| Label | Name | Default | Description |
|---|---|---|---|
| LD1 | ACTIVE | - | Relay status LED, lights up when the relay is CLOSED |
| LD2 | PWR | - | Power LED indicator |
| CN1 | - | - | Relay output connector |
| CN2 | - | - | External thermocouple connector |
| JP1 | VCC SEL | Left | Power supply voltage selection: left position 3.3V, right position 5V |
Thermostat 3 Click Board™
- amazon_main_image: https://www.thedebugstore.com/images/product/lg-thermostat-3-click-3724-back_1.jpg - amazon_other_image_1: https://www.thedebugstore.com/images/product/lg-thermostat-3-click-3724-front_1.jpg - amazon_other_image_2: https://www.thedebugstore.com/images/product/lg-thermostat-3-click-3724-in-use_1.jpg - amazon_other_image_3: https://www.thedebugstore.com/images/product/lg-thermostat-3-click-3724-in-use_1.jpg - amazon_browse_node: 428655031 - related_products: MIKROE-3415,MIKROE-2273 - mpn: MIKROE-3724 - backorder_label: If no stock shown above, check availability - badge: - widget:We provide a library for the Thermostat 3 Click Board™ on our LibStock page, as well as a demo application (example), developed using MikroElektronika compilers. The demo can run on all the main MikroElektronika development boards.
The library initializes and defines the SPI bus driver and drivers that offer a choice for read data form SPI lines. With functions from the library it is possible to read Internal or Thermocouple temperature data in Celsius, Kelvin or Fahrenheit. The library provides full relay control and reads fault error status.
float thermostat3_getInternalTemperature(uint8_t TempIn) - Junction (Internal) Temperaturefloat thermostat3_getThermocoupleTemperature(uint8_t TempIn) - Thermocouple Temperature (K probe)void thermostat3_relayControl(uint8_t relayPos) - Relay ControlThe application is composed of three sections :
void applicationTask()
{
uint8_t dataReady_;
char receivedData_;
thermostat3_process();
dataReady_ = UART_Rdy_Ptr();
if (dataReady_ != 0)
{
receivedData_ = UART_Rd_Ptr();
switch (receivedData_)
{
case 'i' :
{
InternalTemp = thermostat3_getInternalTemperature(_THERMOSTAT3_TEMP_IN_CELSIUS);
FloatToStr(InternalTemp, demoText);
mikroBUS_logWrite("# Internal Temperature: ", _LOG_TEXT);
mikroBUS_logWrite(demoText, _LOG_LINE);
break;
}
case 'e' :
{
ThermocoupleTemp = thermostat3_getThermocoupleTemperature(_THERMOSTAT3_TEMP_IN_CELSIUS);
FloatToStr(ThermocoupleTemp, demoText);
mikroBUS_logWrite("# Thermocouple Temperature: ", _LOG_TEXT);
mikroBUS_logWrite(demoText, _LOG_LINE);
break;
}
case 'r' :
{
if(_relayFlag == 1)
{
_relayFlag = 0;
thermostat3_relayControl(_THERMOSTAT3_RELAY_OFF);
mikroBUS_logWrite("# Relay OFF", _LOG_LINE);
}
else
{
_relayFlag = 1;
thermostat3_relayControl(_THERMOSTAT3_RELAY_ON);
mikroBUS_logWrite("# Relay ON", _LOG_LINE);
}
break;
}
case 'f' :
{
if(_faultFlag == 1)
{
_faultFlag = 0;
mikroBUS_logWrite("# Fault status -- OFF", _LOG_LINE);
}
else
{
_faultFlag = 1;
mikroBUS_logWrite("# Fault status -- ON", _LOG_LINE);
}
break;
}
case '+' :
{
if(_faultFlag == 1)
{
_fError++;
if(_fError > 3)
{
_fError = 0;
}
_displayFault(_fError);
_faultStatus = thermostat3_getFaultData(0x01 << _fError);
if (_faultStatus == 1 )
{
mikroBUS_logWrite(" -- ERROR", _LOG_LINE);
}
else
{
mikroBUS_logWrite(" -- OK", _LOG_LINE);
}
}
else
{
mikroBUS_logWrite(" Fault status is OFF, Please turn ON fault status!!!", _LOG_LINE);
}
break;
}
}
}
}
Additional Functions :
The full application code, and ready to use projects can be found on our LibStock page.
Other mikroE Libraries used in the example:
Depending on the development board you are using, you may need USB UART Click Board™, USB UART 2 Click Board™ or RS232 Click Board™ to connect to your PC, for development systems with no UART to USB interface available on the board. The terminal available in all MikroElektronika compilers, or any other terminal application of your choice, can be used to read the message.
This Click Board™ is supported with mikroSDK - MikroElektronika Software Development Kit. To ensure proper operation of mikroSDK compliant Click Board™ demo applications, mikroSDK should be downloaded from the LibStock and installed for the compiler you are using.
- condition: new - custom_product: false - mpn: MIKROE-3724 - google_product_category: Electronics - custom_label_0: Click Board - device_vendor: Maxim Integrated, Omron Electronics Inc-EMC Div - device_type: MAX31855KASA+T, G6D-1A-ASI DC5 - warranty: 12 months - brand: MikroE - manufacturer: Mikroelektronika d.o.o. - target_keyword: Thermostat 3 Click Board - brands: gid://shopify/Metaobject/56256004319 - breadcrumbs: ["gid://shopify/Collection/447955239135","gid://shopify/Collection/241680580797","gid://shopify/Collection/241545969853"] - customhs_code: 847330 - detailed_description: {"type":"root","children":[{"type":"paragraph","children":[{"type":"text","value":"The Click Board™ is equipped with all the necessary elements, required to provide a reliable operation: it has a varistor across the relay output contacts, preventing excessive voltage transients, it has a flyback diode for the backEMF generated within the relay coil, and a durable mechanical relay, that can withstand up to 20,000,000 mechanical cycles (no load connected). These features allow Thermostat 3 Click Board™ to be used for a wide range of applications that have to be thermally controlled: various home appliances, air conditioners, cooling fans, small heaters, etc."}]},{"type":"heading","level":3,"children":[{"type":"text","value":"How Does The Thermostat 3 Click Board™ Work?"}]},{"type":"paragraph","children":[{"type":"text","value":"The "},{"type":"text","value":"Thermostat 3 Click Board™","bold":true},{"type":"text","value":" is designed around the MAX31855, as the main IC - a sophisticated thermocouple-to-digital converter with a built-in 14-bit analog-to-digital converter (ADC), from Maxim Integrated. The device also contains cold-junction compensation sensing and correction, a digital controller, a SPI compatible interface, and associated control logic. The Thermostat 3 Click Board™ is designed to be used with externally connected K-type thermocouple sensor. The communication with the host MCU is performed over the SPI interface, using the dedicated pins of the mikroBUS."}]},{"type":"paragraph","children":[{"type":"text","value":""}]},{"type":"paragraph","children":[{"type":"text","value":"Depending on the temperature information obtained over the SPI interface, the host MCU can take the necessary action: it can either open or close contacts of the relay. The Click Board™ uses the G6D series PCB power relay, from Omron. This quality relay can withstand an amazingly large number of mechanical cycles, with no load connected. However, when there is a significant load connected at its output, micro-electric arcs cause the contacts to wear over time. With the maximum load current of 5A, it can sustain up to 70,000 cycles. Its contacts are made of silver alloy, yielding exceptional ON resistance of only 100mΩ (max)."}]},{"type":"paragraph","children":[{"type":"text","value":"The relay is activated by the host MCU. The voltage for the coil activation is 5V, while the current through the coil is 40mA. The MCU is not able to drive the coil directly, therefore an NPN transistor had to be added. Its base is controlled by the host MCU, allowing the coil to drain enough current from the 5V mikroBUS power rail. The base of the transistor is routed to the CS pin of the Click Board™. The transistor packs two biasing resistors in the same casing, so it can be directly used on the MCU pin, without external biasing resistors. A red color LED, labelled as ACTIVE is used to indicate that the transistor is in an open state and that the current is running through the relay coil."}]},{"type":"paragraph","children":[{"type":"text","value":"When the current through a coil (or any other inductor) is suddenly changed, the backEMF will be generated, opposing the changes of the current. This can sometimes lead to damage to the control circuit: in this case, the transistor will become inversely polarized. To prevent this from happening, a flyback diode is added across the coil. During the normal operation, this diode does not conduct any current. However, when the coil is switched OFF, the inverse polarization will cause the current to pass through this diode with minimum resistance. This prevents inverse (flyback) voltage from building up, so the transistor remains safe."}]},{"type":"paragraph","children":[{"type":"text","value":"Contacts at the output may be connected to a higher voltage and larger current may run through. To prevent high voltage transients in this case, a flyback diode is not a viable option. Therefore, Thermostat 3 Click Board™ uses a varistor (VDR). This component rapidly drops its resistance as the voltage rises above its rated clamping voltage. The excessive voltage transient will pass through the VDR since it will become a current path with the least resistance. During the normal operation, while the voltage stays below the rated clamping voltage, VDR has a very high resistance, so the current runs through the electrical circuit, instead."}]},{"type":"paragraph","children":[{"type":"text","value":"The operating voltage of the Click Board™ can be selected by the VCC SEL jumper. This jumper allows selecting either 3.3V or 5V from the mikroBUS. The selected voltage will be applied to the VCC pin of the connected MAX31855 sensor."}]},{"type":"heading","level":3,"children":[{"type":"text","value":"SPECIFICATIONS"}]},{"type":"paragraph","children":[{"type":"text","value":" "}]},{"type":"paragraph","children":[{"type":"text","value":"Type\nTemperature & humidity\nApplications\nThermostat 3 Click Board™ can be used for a wide range of applications that have to be thermally controlled: various home appliances, air conditioners, cooling fans, small heaters, etc\nOn-board modules\nMAX31855, a sophisticated thermocouple-to-digital converter with a built-in 14-bit analog-to-digital converter (ADC), from Maxim Integrated G6D series PCB power relay, by Omron.\nKey Features\nBuilt-in 14-bit analog-to-digital converter (ADC), cold-junction compensation sensing and correction, a digital controller, SPI interface, associated control logic.\nInterface\nGPIO,SPI\nCompatibility\nmikroBUS\nClick Board™ size\nL (57.15 x 25.4 mm)\nInput Voltage\n3.3V or 5V"}]},{"type":"paragraph","children":[{"type":"text","value":" "}]},{"type":"heading","level":3,"children":[{"type":"text","value":"PINOUT DIAGRAM"}]},{"type":"paragraph","children":[{"type":"text","value":"This table shows how the pinout on Thermostat 3 Click Board™ corresponds to the pinout on the mikroBUS socket (the latter shown in the two middle columns)."}]},{"type":"paragraph","children":[{"type":"text","value":"Notes\nPin\nPin\nNotes\nNC\n1\nAN\nPWM\n16\nRLY\nRelay Control\nNC\n2\nRST\nINT\n15\nNC\nChip Select\nCS\n3\nCS\nRX\n14\nNC\nSPI Clock\nSCK\n4\nSCK\nTX\n13\nNC\nSPI Data Out\nSDO\n5\nMISO\nSCL\n12\nNC\nNC\n6\nMOSI\nSDA\n11\nNC\nPower Supply\n3.3V\n7\n3.3V\n5V\n10\n5V\nPower Supply\nGround\nGND\n8\nGND\nGND\n9\nGND\nGround"}]},{"type":"heading","level":3,"children":[{"type":"text","value":""},{"type":"text","value":"ONBOARD SETTINGS AND INDICATORS"}]},{"type":"paragraph","children":[{"type":"text","value":"Label\nName\nDefault\n Description\nLD1\nACTIVE\n-\nRelay status LED, lights up when the relay is CLOSED\nLD2\nPWR\n-\nPower LED indicator\nCN1\n-\n-\nRelay output connector\nCN2\n-\n-\nExternal thermocouple connector\nJP1\nVCC SEL\nLeft\nPower supply voltage selection: left position 3.3V, right position 5V"}]},{"type":"heading","level":3,"children":[{"type":"text","value":" "}]}]} - summary:The Thermostat 3 Click Board™ is a general-purpose thermostat Click Board™ designed to be used with any temperature sensor based on the MAX31855 sensor design. The Click Board™ is equipped with a 2-pin female socket for thermocouple connection.
The K-type thermocouple can be connected directly into the socket, allowing the MAX31855 to take care of the signal-conditioning and output the absolute temperature value. The Click Board™ also contains a high-quality relay from Omron, that can be used to open or close an electric circuit. Despite its small size, it can be used with voltage up to 30VDC/220AC and current up to 5A.