{"product_id":"mikroe-4194-template-click-board-uk","title":"Thermostat 4 Click Board™","description":"\u003ch3\u003eHow Does The Thermostat 4 Click Board™ Work?\u003c\/h3\u003e\n\n\u003cp\u003eThe \u003cem\u003e\u003cstrong\u003eThermostat 4 Click Board™\u003c\/strong\u003e\u003c\/em\u003e 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.\u003c\/p\u003e\n\n\u003cp\u003e\u003cimg alt=\"thermostat 4 Click Board™ inner\" data-entity-type=\"\" data-entity-uuid=\"\" src=\"https:\/\/www.mikroe.com\/img\/images\/thermostat-4-click-inner-img(1).jpg\"\u003e\u003c\/p\u003e\n\n\u003cp\u003eTrip 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.\u003c\/p\u003e\n\n\u003cp\u003eThe 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.\u003c\/p\u003e\n\n\u003cp\u003eWhen 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.\u003c\/p\u003e\n\n\u003cp\u003eThe \u003cstrong\u003eThermostat 4 Click Board™\u003c\/strong\u003e 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.\u003c\/p\u003e\n\n\u003ch3\u003eSPECIFICATIONS\u003c\/h3\u003e\n\n\u003ctable\u003e\n    \u003ctbody\u003e\n        \u003ctr\u003e\n            \u003ctd\u003eType\u003c\/td\u003e\n            \u003ctd\u003eTemperature \u0026amp; humidity\u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\n            \u003ctd\u003eApplications\u003c\/td\u003e\n            \u003ctd\u003eThe \u003cstrong\u003eThermostat 4 Click Board™\u003c\/strong\u003e 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\u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\n            \u003ctd\u003eOn-board modules\u003c\/td\u003e\n            \u003ctd\u003eTMP392\u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\n            \u003ctd\u003eKey Features\u003c\/td\u003e\n            \u003ctd\u003eDual outputs for overtemperature detection, Trip test function enables in-system testing, Resistor tolerances contribute zero error\u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\n            \u003ctd\u003eInterface\u003c\/td\u003e\n            \u003ctd\u003eGPIO,SPI\u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\n            \u003ctd\u003eCompatibility\u003c\/td\u003e\n            \u003ctd\u003emikroBUS\u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\n            \u003ctd\u003eClick board size\u003c\/td\u003e\n            \u003ctd\u003eM (42.9 x 25.4 mm)\u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\n            \u003ctd\u003eInput Voltage\u003c\/td\u003e\n            \u003ctd\u003e3.3V or 5V\u003c\/td\u003e\n        \u003c\/tr\u003e\n    \u003c\/tbody\u003e\n\u003c\/table\u003e\n\n\u003ch3\u003ePINOUT DIAGRAM\u003c\/h3\u003e\n\n\u003cp\u003eThis table shows how the pinout of the \u003cstrong\u003eThermostat 4 Click Board™\u003c\/strong\u003e corresponds to the pinout on the mikroBUS™ socket (the latter shown in the two middle columns).\u003c\/p\u003e\n\n\u003ctable width=\"549\"\u003e\n    \u003ctbody\u003e\n        \u003ctr\u003e\n            \u003cth\u003eNotes\u003c\/th\u003e\n            \u003cth\u003ePin\u003c\/th\u003e\n            \u003cth colspan=\"4\"\u003e\u003cimg alt=\"Mikrobus logo.png\" data-entity-type=\"\" data-entity-uuid=\"\" src=\"https:\/\/cdn.mikroe.com\/img\/mikrobus\/mikroBUS-logo-black.png\"\u003e\u003c\/th\u003e\n            \u003cth\u003ePin\u003c\/th\u003e\n            \u003cth\u003eNotes\u003c\/th\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\n            \u003ctd\u003eChannel A Output\u003c\/td\u003e\n            \u003ctd\u003e\u003cstrong\u003eOA\u003c\/strong\u003e\u003c\/td\u003e\n            \u003ctd\u003e1\u003c\/td\u003e\n            \u003ctd\u003eAN\u003c\/td\u003e\n            \u003ctd\u003ePWM\u003c\/td\u003e\n            \u003ctd\u003e16\u003c\/td\u003e\n            \u003ctd\u003e\u003cb\u003eRLY\u003c\/b\u003e\u003c\/td\u003e\n            \u003ctd\u003eRelay Control\u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\n            \u003ctd\u003eReset\u003c\/td\u003e\n            \u003ctd\u003e\u003cstrong\u003eRST\u003c\/strong\u003e\u003c\/td\u003e\n            \u003ctd\u003e2\u003c\/td\u003e\n            \u003ctd\u003eRST\u003c\/td\u003e\n            \u003ctd\u003eINT\u003c\/td\u003e\n            \u003ctd\u003e15\u003c\/td\u003e\n            \u003ctd\u003e\u003cb\u003eOB\u003c\/b\u003e\u003c\/td\u003e\n            \u003ctd\u003eChannel B Output\u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\n            \u003ctd\u003eSPI Chip Select\u003c\/td\u003e\n            \u003ctd\u003e\u003cb\u003eCS\u003c\/b\u003e\u003c\/td\u003e\n            \u003ctd\u003e3\u003c\/td\u003e\n            \u003ctd\u003eCS\u003c\/td\u003e\n            \u003ctd\u003eRX\u003c\/td\u003e\n            \u003ctd\u003e14\u003c\/td\u003e\n            \u003ctd\u003eNC\u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\n            \u003ctd\u003eSPI Clock\u003c\/td\u003e\n            \u003ctd\u003e\u003cstrong\u003eSCK\u003c\/strong\u003e\u003c\/td\u003e\n            \u003ctd\u003e4\u003c\/td\u003e\n            \u003ctd\u003eSCK\u003c\/td\u003e\n            \u003ctd\u003eTX\u003c\/td\u003e\n            \u003ctd\u003e13\u003c\/td\u003e\n            \u003ctd\u003eNC\u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\n            \u003ctd\u003eNC\u003c\/td\u003e\n            \u003ctd\u003e5\u003c\/td\u003e\n            \u003ctd\u003eMISO\u003c\/td\u003e\n            \u003ctd\u003eSCL\u003c\/td\u003e\n            \u003ctd\u003e12\u003c\/td\u003e\n            \u003ctd\u003eNC\u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\n            \u003ctd\u003eSPI Data IN\u003c\/td\u003e\n            \u003ctd\u003e\u003cstrong\u003eSDI\u003c\/strong\u003e\u003c\/td\u003e\n            \u003ctd\u003e6\u003c\/td\u003e\n            \u003ctd\u003eMOSI\u003c\/td\u003e\n            \u003ctd\u003eSDA\u003c\/td\u003e\n            \u003ctd\u003e11\u003c\/td\u003e\n            \u003ctd\u003eNC\u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\n            \u003ctd\u003ePower Supply\u003c\/td\u003e\n            \u003ctd\u003e\u003cstrong\u003e3.3V\u003c\/strong\u003e\u003c\/td\u003e\n            \u003ctd\u003e7\u003c\/td\u003e\n            \u003ctd\u003e3.3V\u003c\/td\u003e\n            \u003ctd\u003e5V\u003c\/td\u003e\n            \u003ctd\u003e10\u003c\/td\u003e\n            \u003ctd\u003e\u003cstrong\u003e5V\u003c\/strong\u003e\u003c\/td\u003e\n            \u003ctd\u003ePower Supply\u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\n            \u003ctd\u003eGround\u003c\/td\u003e\n            \u003ctd\u003e\u003cstrong\u003eGND\u003c\/strong\u003e\u003c\/td\u003e\n            \u003ctd\u003e8\u003c\/td\u003e\n            \u003ctd\u003eGND\u003c\/td\u003e\n            \u003ctd\u003eGND\u003c\/td\u003e\n            \u003ctd\u003e9\u003c\/td\u003e\n            \u003ctd\u003e\u003cstrong\u003eGND\u003c\/strong\u003e\u003c\/td\u003e\n            \u003ctd\u003eGround\u003c\/td\u003e\n        \u003c\/tr\u003e\n    \u003c\/tbody\u003e\n\u003c\/table\u003e\n\n\u003ch3\u003eONBOARD SETTINGS AND INDICATORS\u003c\/h3\u003e\n\n\u003ctable\u003e\n    \u003ctbody\u003e\n        \u003ctr\u003e\n            \u003cth\u003eLabel\u003c\/th\u003e\n            \u003cth\u003eName\u003c\/th\u003e\n            \u003cth\u003eDefault\u003c\/th\u003e\n            \u003cth\u003eDescription\u003c\/th\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\n            \u003ctd\u003ePWR\u003c\/td\u003e\n            \u003ctd\u003eLD1\u003c\/td\u003e\n            \u003ctd\u003e-\u003c\/td\u003e\n            \u003ctd\u003ePower LED Indicator\u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\n            \u003ctd\u003eACTIVE\u003c\/td\u003e\n            \u003ctd\u003eLD2\u003c\/td\u003e\n            \u003ctd\u003e-\u003c\/td\u003e\n            \u003ctd\u003eRelay active LED indicator\u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\n            \u003ctd\u003eVCC SEL\u003c\/td\u003e\n            \u003ctd\u003eJP1\u003c\/td\u003e\n            \u003ctd\u003eLeft\u003c\/td\u003e\n            \u003ctd\u003eLogic level voltage selection: left position 3V3, right position 5V\u003c\/td\u003e\n        \u003c\/tr\u003e\n    \u003c\/tbody\u003e\n\u003c\/table\u003e\n\n\u003ch3\u003e \u003c\/h3\u003e","brand":"Mikroelektronika d.o.o.","offers":[{"title":"Default Title","offer_id":37768474689725,"sku":"MIKROE-4194","price":34.0,"currency_code":"GBP","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0522\/6931\/8333\/products\/mikroelektronika-d-o-o-click-board-thermostat-4-click-board-29036538036413.jpg?v=1685152016","url":"https:\/\/thedebugstore.com\/es\/products\/mikroe-4194-template-click-board-uk","provider":"Debug Store","version":"1.0","type":"link"}