{"id":4926,"date":"2016-10-08T06:14:04","date_gmt":"2016-10-08T11:14:04","guid":{"rendered":"http:\/\/www.plastibots.com\/?p=4926"},"modified":"2019-12-29T16:40:35","modified_gmt":"2019-12-29T21:40:35","slug":"hot-tub-esp8266-iot-temp-monitor-and-neopixel-lighting","status":"publish","type":"post","link":"https:\/\/www.plastibots.com\/index.php\/2016\/10\/08\/hot-tub-esp8266-iot-temp-monitor-and-neopixel-lighting\/","title":{"rendered":"Hot Tub: ESP8266 IoT Temp Monitor and NeoPixel Lighting"},"content":{"rendered":"<p>Finally got our free hot tub hooked up. \u00a0 Well, not so &#8220;free&#8221;.\u00a0 Hot tubs are never free unless you have all the electrical and other bits already. \u00a0<a href=\"http:\/\/www.plastibots.com\/wordpress\/wp-content\/uploads\/2016\/09\/IMG_2176.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignright size-thumbnail wp-image-4927\" src=\"http:\/\/www.plastibots.com\/wordpress\/wp-content\/uploads\/2016\/09\/IMG_2176-150x150.jpg\" alt=\"IMG_2176\" width=\"150\" height=\"150\" \/><\/a>Anyway, \u00a0I wanted to add some remote temperature monitoring as well as jazz up the lighting a bit.\u00a0 \u00a0Given Winters can get pretty cold here in Canada, I wanted to get notified if the temp falls below a threshold as frozen pipes in a hot tub pretty much spell disaster.\u00a0 Blynk is my go-to app of choice. \u00a0If you haven&#8217;t heard of Blynk, you are missing out on the biggest thing since slice bread for IoT!<\/p>\n<p>These days my go-to controller is the <a href=\"http:\/\/www.banggood.com\/3Pcs-Mini-NodeMCU-ESP8266-WIFI-Development-Board-Based-On-ESP-12F-p-1058306.html?p=R90804949020201412E4\" target=\"_blank\" rel=\"noopener noreferrer\">NodeMCU Mini<\/a> ESP8266. \u00a0I hooked it up to a <a href=\"http:\/\/www.banggood.com\/DS18B20-Waterproof-Digital-Temperature-Temp-Sensor-Probe-1M-2M-3M-5M-10M-15M-p-983801.html?p=R90804949020201412E4\" target=\"_blank\" rel=\"noopener noreferrer\">DS18B20<\/a> temperature probe and an <a href=\"https:\/\/www.adafruit.com\/products\/2860\" target=\"_blank\" rel=\"noopener noreferrer\">Adafruit NeoPixel Jewel<\/a>. \u00a0Currently this system is completely isolated from the hot tub controller &#8211; I didn&#8217;t want to mess with something I didn&#8217;t understand as it&#8217;s an older tub and the controller boards are hard to come by.\u00a0 I also don&#8217;t mess with high voltage.\u00a0 This is not a big deal and simply means that you can&#8217;t turn on the hot tub lights by the switch located in the hot tub.\u00a0 \u00a0Which is moot given I just use my phone to set the lights and they are on a timer anyway.\u00a0 You can also check out how this\u00a0is integrated into my <a href=\"http:\/\/www.plastibots.com\/index.php\/2017\/01\/03\/wiot-2-weather-station-nextion-tft-with-esp8266\/\" target=\"_blank\" rel=\"noopener noreferrer\">WIoT-2<\/a> master unit.<\/p>\n<p>The sketch is pretty straight forward. \u00a0 \u00a0It monitors the temperature and sends readings every 2 minutes to my master Blynk app where the data is plotted on a History Graph which shows the temperature over time. \u00a0There are also triggers that to send a notification to my phone &amp; watch when the temperature falls below 60F. \u00a0This is particularly important during the winter when the temperature can fall well below 0C in our Canadian winters. \u00a0Don&#8217;t want to be dealing with a frozen hot tub!\u00a0 My Blynk app is multi-tabbed and allows me to control and monitor this unit, my <a href=\"http:\/\/www.plastibots.com\/index.php\/2015\/06\/11\/iot-garage-monitor-with-finger-print-sensor\/\" target=\"_blank\" rel=\"noopener noreferrer\">garage door status<\/a> device, my <a href=\"http:\/\/www.plastibots.com\/index.php\/2017\/01\/03\/wiot-2-weather-station-nextion-tft-with-esp8266\/\" target=\"_blank\" rel=\"noopener noreferrer\">WIoT2<\/a> device as well as other future devices.<\/p>\n<p><strong>Blynk App:<a href=\"http:\/\/www.plastibots.com\/wordpress\/wp-content\/uploads\/2016\/09\/IMG_2178.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignright wp-image-4933\" src=\"http:\/\/www.plastibots.com\/wordpress\/wp-content\/uploads\/2016\/09\/IMG_2178-169x300.png\" alt=\"IMG_2178\" width=\"300\" height=\"533\" srcset=\"https:\/\/www.plastibots.com\/wordpress\/wp-content\/uploads\/2016\/09\/IMG_2178-169x300.png 169w, https:\/\/www.plastibots.com\/wordpress\/wp-content\/uploads\/2016\/09\/IMG_2178-768x1365.png 768w, https:\/\/www.plastibots.com\/wordpress\/wp-content\/uploads\/2016\/09\/IMG_2178-576x1024.png 576w, https:\/\/www.plastibots.com\/wordpress\/wp-content\/uploads\/2016\/09\/IMG_2178.png 1242w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/strong><\/p>\n<p>The Blynk app has the following features:<\/p>\n<ul>\n<li>Plot the tub temperature over time in degrees F.<\/li>\n<li>Button to allow me to turn the NeoPixel ring on \/ off &#8211; triggers white.<\/li>\n<li>ZeRGB widget which allows me to set mood lighting to whatever colour I want.<\/li>\n<li>Dropdown to allow for a bunch of different &#8220;light shows&#8221;.<\/li>\n<\/ul>\n<p><strong>Components:<\/strong><\/p>\n<ul>\n<li><a href=\"http:\/\/www.banggood.com\/3Pcs-Mini-NodeMCU-ESP8266-WIFI-Development-Board-Based-On-ESP-12F-p-1058306.html?p=R90804949020201412E4\" target=\"_blank\" rel=\"noopener noreferrer\">NodeMCU Mini<\/a> ESP8266.<\/li>\n<li><a href=\"http:\/\/www.banggood.com\/DS18B20-Waterproof-Digital-Temperature-Temp-Sensor-Probe-1M-2M-3M-5M-10M-15M-p-983801.html?p=R90804949020201412E4\" target=\"_blank\" rel=\"noopener noreferrer\">DS18B20<\/a><\/li>\n<li><a href=\"https:\/\/www.adafruit.com\/products\/2860\" target=\"_blank\" rel=\"noopener noreferrer\">Adafruit NeoPixel Jewel<\/a>.<\/li>\n<\/ul>\n<p><strong>Sketch:<\/strong><\/p>\n<div class=\"sdm_download_button_box_default\"><div class=\"sdm_download_link\"><a href=\"https:\/\/www.plastibots.com\/?sdm_process_download=1&download_id=6244\" class=\"sdm_download green\" title=\"Hot Tub Control Sketch\" target=&quot;_blank&quot;>Download Sketch<\/a><\/div><\/div>\n<p><a href=\"http:\/\/www.plastibots.com\/wordpress\/wp-content\/uploads\/2016\/10\/IMG_2466.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-4956\" src=\"http:\/\/www.plastibots.com\/wordpress\/wp-content\/uploads\/2016\/10\/IMG_2466-300x225.jpg\" alt=\"img_2466\" width=\"300\" height=\"225\" srcset=\"https:\/\/www.plastibots.com\/wordpress\/wp-content\/uploads\/2016\/10\/IMG_2466-300x225.jpg 300w, https:\/\/www.plastibots.com\/wordpress\/wp-content\/uploads\/2016\/10\/IMG_2466-768x576.jpg 768w, https:\/\/www.plastibots.com\/wordpress\/wp-content\/uploads\/2016\/10\/IMG_2466-1024x768.jpg 1024w, https:\/\/www.plastibots.com\/wordpress\/wp-content\/uploads\/2016\/10\/IMG_2466-640x480.jpg 640w, https:\/\/www.plastibots.com\/wordpress\/wp-content\/uploads\/2016\/10\/IMG_2466.jpg 1632w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p><a href=\"http:\/\/www.plastibots.com\/wordpress\/wp-content\/uploads\/2016\/09\/IMG_2274.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-4942 aligncenter\" src=\"http:\/\/www.plastibots.com\/wordpress\/wp-content\/uploads\/2016\/09\/IMG_2274-300x225.jpg\" alt=\"img_2274\" width=\"300\" height=\"225\" srcset=\"https:\/\/www.plastibots.com\/wordpress\/wp-content\/uploads\/2016\/09\/IMG_2274-300x225.jpg 300w, https:\/\/www.plastibots.com\/wordpress\/wp-content\/uploads\/2016\/09\/IMG_2274-768x576.jpg 768w, https:\/\/www.plastibots.com\/wordpress\/wp-content\/uploads\/2016\/09\/IMG_2274-1024x768.jpg 1024w, https:\/\/www.plastibots.com\/wordpress\/wp-content\/uploads\/2016\/09\/IMG_2274-640x480.jpg 640w, https:\/\/www.plastibots.com\/wordpress\/wp-content\/uploads\/2016\/09\/IMG_2274.jpg 1632w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p><a href=\"http:\/\/www.plastibots.com\/wordpress\/wp-content\/uploads\/2016\/09\/IMG_2176.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-4927 aligncenter\" src=\"http:\/\/www.plastibots.com\/wordpress\/wp-content\/uploads\/2016\/09\/IMG_2176-300x289.jpg\" alt=\"IMG_2176\" width=\"300\" height=\"289\" srcset=\"https:\/\/www.plastibots.com\/wordpress\/wp-content\/uploads\/2016\/09\/IMG_2176-300x289.jpg 300w, https:\/\/www.plastibots.com\/wordpress\/wp-content\/uploads\/2016\/09\/IMG_2176-768x740.jpg 768w, https:\/\/www.plastibots.com\/wordpress\/wp-content\/uploads\/2016\/09\/IMG_2176-1024x987.jpg 1024w, https:\/\/www.plastibots.com\/wordpress\/wp-content\/uploads\/2016\/09\/IMG_2176.jpg 1145w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p><a href=\"http:\/\/www.plastibots.com\/wordpress\/wp-content\/uploads\/2016\/09\/IMG_2177.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-4928 aligncenter\" src=\"http:\/\/www.plastibots.com\/wordpress\/wp-content\/uploads\/2016\/09\/IMG_2177-296x300.jpg\" alt=\"IMG_2177\" width=\"296\" height=\"300\" srcset=\"https:\/\/www.plastibots.com\/wordpress\/wp-content\/uploads\/2016\/09\/IMG_2177-296x300.jpg 296w, https:\/\/www.plastibots.com\/wordpress\/wp-content\/uploads\/2016\/09\/IMG_2177-768x779.jpg 768w, https:\/\/www.plastibots.com\/wordpress\/wp-content\/uploads\/2016\/09\/IMG_2177-1010x1024.jpg 1010w, https:\/\/www.plastibots.com\/wordpress\/wp-content\/uploads\/2016\/09\/IMG_2177.jpg 1024w\" sizes=\"auto, (max-width: 296px) 100vw, 296px\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Finally got our free hot tub hooked up. \u00a0 Well, not so &#8220;free&#8221;.\u00a0 Hot tubs are never free unless you have all the electrical and other bits already. \u00a0Anyway, \u00a0I wanted to add some remote temperature monitoring as well as jazz up the lighting a bit.\u00a0 \u00a0Given Winters can get pretty cold here in Canada, I wanted to get notified if the temp falls below a threshold as frozen pipes in a hot tub pretty &hellip; <a href=\"https:\/\/www.plastibots.com\/index.php\/2016\/10\/08\/hot-tub-esp8266-iot-temp-monitor-and-neopixel-lighting\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[57,119],"tags":[],"class_list":["post-4926","post","type-post","status-publish","format-standard","hentry","category-electronics","category-iot","has_no_thumb"],"aioseo_notices":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/pK41j-1hs","jetpack_sharing_enabled":true,"post_mailing_queue_ids":[],"_links":{"self":[{"href":"https:\/\/www.plastibots.com\/index.php\/wp-json\/wp\/v2\/posts\/4926","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.plastibots.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.plastibots.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.plastibots.com\/index.php\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.plastibots.com\/index.php\/wp-json\/wp\/v2\/comments?post=4926"}],"version-history":[{"count":1,"href":"https:\/\/www.plastibots.com\/index.php\/wp-json\/wp\/v2\/posts\/4926\/revisions"}],"predecessor-version":[{"id":6246,"href":"https:\/\/www.plastibots.com\/index.php\/wp-json\/wp\/v2\/posts\/4926\/revisions\/6246"}],"wp:attachment":[{"href":"https:\/\/www.plastibots.com\/index.php\/wp-json\/wp\/v2\/media?parent=4926"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.plastibots.com\/index.php\/wp-json\/wp\/v2\/categories?post=4926"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.plastibots.com\/index.php\/wp-json\/wp\/v2\/tags?post=4926"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}