# Title: Thermostat 4 Click Board™ ## Description: How Does The Thermostat 4 Click Board™ Work? The Thermostat 4 Click Board™ uses the output of the TMP392 as open-drain and with two 10k pull-up resistors on mikroBUS™ OA and OB pins connected to VCC voltage indicate when a threshold temperature is detected. The device powers on when the supply voltage goes beyond 1.5V, and starts sampling the input resistance to set the two trip points and hysteresis value after power-on. Resistance values for each temperature can be find in TMP392 datasheet Table 1 and Table 2. These values will remain the same until the device goes through a power cycle. Trip point for channel A can be set manually using onboard trimmer while trip point for channel B is set using TPL0501 digital potentiometer with 256 wiper positions used as as a two-terminal rheostat. With end-to-end resistance of 100 kΩ internal registers of the TPL0501 can be accessed using a SPI interface. The position of the wiper (W) terminal is controlled by the value in the 8-bit Wiper Resistance (WR) register. When the WR register contains all zeroes (zero-scale), the wiper terminal is closest to its L terminal. As the value of the WR register increases from all zeroes to all ones (full-scale), the wiper moves from the position closest to the L terminal, to the position closest to the H terminal. At the same time, the resistance between W and L increases, whereas the resistance between W and H decreases. 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 N-chanel FET had to be added. Its gate is controlled by the host MCU, allowing the coil to drain enough current from the 5V mikroBUS™ power rail. 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. The Thermostat 4 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 4 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. SPECIFICATIONS Type Temperature & humidity Applications The Thermostat 4 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 TMP392 Key Features Dual outputs for overtemperature detection, Trip test function enables in-system testing, Resistor tolerances contribute zero error Interface GPIO,SPI Compatibility mikroBUS Click board size M (42.9 x 25.4 mm) Input Voltage 3.3V or 5V PINOUT DIAGRAM This table shows how the pinout of the Thermostat 4 Click Board™ corresponds to the pinout on the mikroBUS™ socket (the latter shown in the two middle columns). Notes Pin Pin Notes Channel A Output OA 1 AN PWM 16 RLY Relay Control Reset RST 2 RST INT 15 OB Channel B Output SPI Chip Select CS 3 CS RX 14 NC SPI Clock SCK 4 SCK TX 13 NC NC 5 MISO SCL 12 NC SPI Data IN SDI 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 PWR LD1 - Power LED Indicator ACTIVE LD2 - Relay active LED indicator VCC SEL JP1 Left Logic level voltage selection: left position 3V3, right position 5V ## Product type: Click Board ## Vendor: Mikroelektronika d.o.o. ## Tags: Click Board, MikroE, Omron, Sensor, Temp&Hum, Temperature ## Price range: 23.8 - 23.8 GBP ## Link: https://thedebugstore.com/products/mikroe-4194-template-click-board-uk ## Compare-at price range: 34.0 - 34.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) - [Omron Device Support: Development Boards and Tools for Industrial Automation](https://thedebugstore.com/a/llms/collections/omrom-device-support-uk) - [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-4194, Available: yes, Inventory: 1 ## Metafields - full_description:

How Does The Thermostat 4 Click Board™ Work?

The Thermostat 4 Click Board™ uses the output of the TMP392 as open-drain and with two 10k pull-up resistors on mikroBUS™ OA and OB pins connected to VCC voltage indicate when a threshold temperature is detected. The device powers on when the supply voltage goes beyond 1.5V, and starts sampling the input resistance to set the two trip points and hysteresis value after power-on. Resistance values for each temperature can be find in TMP392 datasheet Table 1 and Table 2. These values will remain the same until the device goes through a power cycle.

thermostat 4 Click Board™ inner

Trip point for channel A can be set manually using onboard trimmer while trip point for channel B is set using TPL0501 digital potentiometer with 256 wiper positions used as as a two-terminal rheostat. With end-to-end resistance of 100 kΩ internal registers of the TPL0501 can be accessed using a SPI interface. The position of the wiper (W) terminal is controlled by the value in the 8-bit Wiper Resistance (WR) register. When the WR register contains all zeroes (zero-scale), the wiper terminal is closest to its L terminal. As the value of the WR register increases from all zeroes to all ones (full-scale), the wiper moves from the position closest to the L terminal, to the position closest to the H terminal. At the same time, the resistance between W and L increases, whereas the resistance between W and H decreases.

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 N-chanel FET had to be added. Its gate is controlled by the host MCU, allowing the coil to drain enough current from the 5V mikroBUS™ power rail. 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.

The Thermostat 4 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 4 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.

SPECIFICATIONS

Type Temperature & humidity
Applications The Thermostat 4 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 TMP392
Key Features Dual outputs for overtemperature detection, Trip test function enables in-system testing, Resistor tolerances contribute zero error
Interface GPIO,SPI
Compatibility mikroBUS
Click board size M (42.9 x 25.4 mm)
Input Voltage 3.3V or 5V

PINOUT DIAGRAM

This table shows how the pinout of the Thermostat 4 Click Board™ corresponds to the pinout on the mikroBUS™ socket (the latter shown in the two middle columns).

Notes Pin Mikrobus logo.png Pin Notes
Channel A Output OA 1 AN PWM 16 RLY Relay Control
Reset RST 2 RST INT 15 OB Channel B Output
SPI Chip Select CS 3 CS RX 14 NC
SPI Clock SCK 4 SCK TX 13 NC
NC 5 MISO SCL 12 NC
SPI Data IN SDI 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
PWR LD1 - Power LED Indicator
ACTIVE LD2 - Relay active LED indicator
VCC SEL JP1 Left Logic level voltage selection: left position 3V3, right position 5V

 

- description_tag: The Thermostat 4 Click Board™ is a complete solution that senses the temperature of a physical system and can perform actions so that the system's temperature is maintained near a desired setpoint. Available from Debug Store UK. - title_tag: MikroE Thermostat 4 Click Board™ (MIKROE-4194) - manufacturer: Mikroelektronika d.o.o. - warranty: 12 months - amazon_enable: TRUE - amazon_title: Thermostat 4 Click Board - amazon_product_type: computercomponent - amazon_block: FALSE - amazon_prime_enable: FALSE - amazon_search: MikroElektronika Microelectronica MIKROE-1100 - amazon_uk_price: 13.2 - amazon_uk_currency: GBP - amazon_de_currency: EUR - amazon_de_price: 14.916 - amazon_fr_currency: EUR - amazon_fr_price: 14.916 - amazon_es_currency: EUR - amazon_es_price: 14.916 - amazon_nl_currency: EUR - amazon_nl_price: 14.916 - amazon_it_currency: EUR - amazon_it_price: 14.916 - amazon_se_curency: SEK - amazon_se_price: 150.48 - amazon_product_id: 8606027380051 - amazon_product_id_type: EAN - amazon_update: Update - amazon_short_description: The Thermostat 4 Click Board™ is complete solution that senses the temperature of a physical system and can performs actions so that the system's temperature is maintained near a desired setpoint. It's based on Texas Instruments TMP392, a resistor programmable temperature switch that enable protection and detection of system thermal events from 30°C to 130°C. It offers dual overtemperature (hot and warm) detection. The trip temperatures option is programmed by changing trimmer resistance value for channel A and digital potentiometer resistance value over SPI interface for channel B. The Thermostat 4 Click 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.Thermostat 4 Click board™ is supported by a mikroSDK compliant library, which includes functions that simplify software development. This Click board™ comes as a fully tested product, ready to be used on a system equipped with the mikroBUS™ socket. - amazon_main_image: https://www.thedebugstore.com/images/product/lg-thermostat-4-click-front.jpg - amazon_other_image_1: https://www.thedebugstore.com/images/product/lg-thermostat-4-click-back.jpg - amazon_other_image_2: https://www.thedebugstore.com/images/product/lg-thermostat-4-click-fusion.jpg - amazon_other_image_3: https://www.thedebugstore.com/images/product/lg-thermostat-4-click-shuttle.jpg - amazon_other_image_4: https://www.thedebugstore.com/images/product/lg-thermostat-4-click-clicker.jpg - amazon_other_image_5: https://www.thedebugstore.com/images/product/lg-thermostat-4-click-breadboard.jpg - amazon_other_image_6: https://www.thedebugstore.com/images/product/lg-thermostat-4-click-breadboard.jpg - amazon_browse_node: 428655031 - mpn: MIKROE-4194 - backorder_label: If no stock shown above, check availability - badge: - widget:

Customer Reviews

Be the first to write a review
0%
(0)
0%
(0)
0%
(0)
0%
(0)
0%
(0)
- google_product_category: 2082 - condition: new - custom_product: false - mpn: MIKROE-4194 - google_product_category: Electronics - custom_label_0: Click Board - examples:

We provide a library for the Thermostat 4 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.

Library Description

The library contains basic functions for working with the Thermostat 4 Click Board™.

Key Functions

Example Description

The application is composed of three sections :

The full application code, and ready to use projects can be found on our LibStock page.

Other mikroE Libraries used in the example:

Additional Notes and Information

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.

MIKROSDK

The Thermostat 4 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.

- attachments: [{"download_file":[{"download_file":"Thermostat 4 Click Board™ Schematic"}],"download_filetype":[{"download_filetype":"pdf"}]},{"download_file":[{"download_file":"Texas Instruments TMP392 Programmabvle Temperature Switch Datasheet"}],"download_filetype":[{"download_filetype":"pdf"}]}] - device_vendor: Omron Electronics Inc-EMC Div, Texas Instruments - device_type: G6D-1A-ASI DC5, TMP392A2DRLR - warranty: 12 months - brand: MikroE - key_feature_1: Detects Overtemperature from 30°C to 130°C - manufacturer: Mikroelektronika d.o.o. - target_keyword: Thermostat 4 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":"heading","level":3,"children":[{"type":"text","value":"How Does The Thermostat 4 Click Board™ Work?"}]},{"type":"paragraph","children":[{"type":"text","value":"The "},{"type":"text","value":"Thermostat 4 Click Board™","bold":true,"italic":true},{"type":"text","value":" uses the output of the TMP392 as open-drain and with two 10k pull-up resistors on mikroBUS™ OA and OB pins connected to VCC voltage indicate when a threshold temperature is detected. The device powers on when the supply voltage goes beyond 1.5V, and starts sampling the input resistance to set the two trip points and hysteresis value after power-on. Resistance values for each temperature can be find in TMP392 datasheet Table 1 and Table 2. These values will remain the same until the device goes through a power cycle."}]},{"type":"paragraph","children":[{"type":"text","value":""}]},{"type":"paragraph","children":[{"type":"text","value":"Trip point for channel A can be set manually using onboard trimmer while trip point for channel B is set using TPL0501 digital potentiometer with 256 wiper positions used as as a two-terminal rheostat. With end-to-end resistance of 100 kΩ internal registers of the TPL0501 can be accessed using a SPI interface. The position of the wiper (W) terminal is controlled by the value in the 8-bit Wiper Resistance (WR) register. When the WR register contains all zeroes (zero-scale), the wiper terminal is closest to its L terminal. As the value of the WR register increases from all zeroes to all ones (full-scale), the wiper moves from the position closest to the L terminal, to the position closest to the H terminal. At the same time, the resistance between W and L increases, whereas the resistance between W and H decreases."}]},{"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 N-chanel FET had to be added. Its gate is controlled by the host MCU, allowing the coil to drain enough current from the 5V mikroBUS™ power rail. 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":"The "},{"type":"text","value":"Thermostat 4 Click Board™","bold":true},{"type":"text","value":" 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 4 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":"SPECIFICATIONS"}]},{"type":"paragraph","children":[{"type":"text","value":"Type\nTemperature & humidity\nApplications\nThe Thermostat 4 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\nTMP392\nKey Features\nDual outputs for overtemperature detection, Trip test function enables in-system testing, Resistor tolerances contribute zero error\nInterface\nGPIO,SPI\nCompatibility\nmikroBUS\nClick board size\nM (42.9 x 25.4 mm)\nInput Voltage\n3.3V or 5V"}]},{"type":"heading","level":3,"children":[{"type":"text","value":"PINOUT DIAGRAM"}]},{"type":"paragraph","children":[{"type":"text","value":"This table shows how the pinout of the "},{"type":"text","value":"Thermostat 4 Click Board™","bold":true},{"type":"text","value":" 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\nChannel A Output\nOA\n1\nAN\nPWM\n16\nRLY\nRelay Control\nReset\nRST\n2\nRST\nINT\n15\nOB\nChannel B Output\nSPI Chip Select\nCS\n3\nCS\nRX\n14\nNC\nSPI Clock\nSCK\n4\nSCK\nTX\n13\nNC\nNC\n5\nMISO\nSCL\n12\nNC\nSPI Data IN\nSDI\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":"ONBOARD SETTINGS AND INDICATORS"}]},{"type":"paragraph","children":[{"type":"text","value":"Label\nName\nDefault\nDescription\nPWR\nLD1\n-\nPower LED Indicator\nACTIVE\nLD2\n-\nRelay active LED indicator\nVCC SEL\nJP1\nLeft\nLogic level voltage selection: left position 3V3, right position 5V"}]},{"type":"heading","level":3,"children":[{"type":"text","value":" "}]}]} - summary:

The Thermostat 4 Click Board™ is a complete solution that senses the temperature of a physical system and can perform actions so that the system's temperature is maintained near a desired setpoint. It's based on Texas Instruments TMP392, a resistor programmable temperature switch that enables protection and detection of system thermal events from 30°C to 130°C. It offers dual overtemperature (hot and warm) detection. The trip temperatures option is programmed by changing the trimmer resistance value for channel A and digital potentiometer resistance value over the SPI interface for channel B. The Thermostat 4 Click 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.

The Thermostat 4 Click Board™ is supported by a mikroSDK compliant library, which includes functions that simplify software development. This Click Board™ comes as a fully tested product, ready to be used on a system equipped with the mikroBUS™ socket.