{"id":503,"date":"2017-01-30T05:04:30","date_gmt":"2017-01-30T05:04:30","guid":{"rendered":"https:\/\/zhutarduino.wordpress.com\/?page_id=503"},"modified":"2020-10-12T16:30:29","modified_gmt":"2020-10-12T16:30:29","slug":"how-to-build-a-arduino-controlled-low-temperature-alarm-with-optional-relay-control","status":"publish","type":"page","link":"https:\/\/thezhut.com\/?page_id=503","title":{"rendered":"How to build a ARDUINO controlled low temperature alarm with optional relay control"},"content":{"rendered":"<h1>This ARDUINO beginners tutorial will show you how to build a simple circuit that will trigger a alarm if the temperature gets to low, you can also use the optional relay to control a fan or other device.<\/h1>\n<p>Click on the video below for full tutorial.<\/p>\n<p><iframe loading=\"lazy\" title=\"How to build a ARDUINO controlled low temperature alarm with optional relay control\" width=\"640\" height=\"360\" src=\"https:\/\/www.youtube.com\/embed\/2GtrlpeRd88?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe><\/p>\n<h1><\/h1>\n<h1><span style=\"color: #ff0000;\"><strong><span style=\"color: #ff0000;\"><a style=\"color: #ff0000;\" href=\"https:\/\/www.facebook.com\/zarduino\/\">Check us out on Facebook!<\/a><\/span><\/strong><\/span><\/h1>\n<h1>Parts List:<\/h1>\n<p>#affiliate links#<\/p>\n<p><a href=\"https:\/\/www.amazon.com\/gp\/search\/ref=as_li_qf_sp_sr_il_tl?ie=UTF8&amp;tag=zhut01-20&amp;keywords=arduino board&amp;index=aps&amp;camp=1789&amp;creative=9325&amp;linkCode=xm2&amp;linkId=9ab868ad1da201c7273c4658429b67e5\" target=\"_blank\" rel=\"noopener noreferrer\">ARDUINO Board<\/a><\/p>\n<p><a href=\"https:\/\/www.amazon.com\/gp\/search\/ref=as_li_qf_sp_sr_il_tl?ie=UTF8&amp;tag=zhut01-20&amp;keywords=thermistor&amp;index=aps&amp;camp=1789&amp;creative=9325&amp;linkCode=xm2&amp;linkId=81096d34668860a9664e86b52c5448a9\" target=\"_blank\" rel=\"noopener noreferrer\">Thermistor<\/a><\/p>\n<p><a href=\"https:\/\/www.amazon.com\/gp\/search\/ref=as_li_qf_sp_sr_il_tl?ie=UTF8&amp;tag=zhut01-20&amp;keywords=arduino speaker&amp;index=aps&amp;camp=1789&amp;creative=9325&amp;linkCode=xm2&amp;linkId=6bcb947c36a041c85107eee81a7c3db5\" target=\"_blank\" rel=\"noopener noreferrer\">speaker<\/a><\/p>\n<p><a href=\"https:\/\/www.amazon.com\/gp\/search\/ref=as_li_qf_sp_sr_il_tl?ie=UTF8&amp;tag=zhut01-20&amp;keywords=2n2222&amp;index=aps&amp;camp=1789&amp;creative=9325&amp;linkCode=xm2&amp;linkId=2d5cfddb218dc21c92e6f2aa7402724e\" target=\"_blank\" rel=\"noopener noreferrer\">2N2222 Transistor<\/a><\/p>\n<p><a href=\"http:\/\/www.dx.com\/s\/resistors?category=499&amp;Utm_rid=99156049&amp;Utm_source=affiliate\" target=\"_blank\" rel=\"noopener noreferrer\">Resistors<\/a><\/p>\n<p><a href=\"https:\/\/www.amazon.com\/gp\/search\/ref=as_li_qf_sp_sr_il_tl?ie=UTF8&amp;tag=zhut01-20&amp;keywords=arduino bread board&amp;index=aps&amp;camp=1789&amp;creative=9325&amp;linkCode=xm2&amp;linkId=e8e88b1c515b61f16a0b862acc8b8812\" target=\"_blank\" rel=\"noopener noreferrer\">Bread Board<\/a><\/p>\n<p><a href=\"https:\/\/www.amazon.com\/gp\/search\/ref=as_li_qf_sp_sr_il_tl?ie=UTF8&amp;tag=zhut01-20&amp;keywords=arduino jumper wires&amp;index=aps&amp;camp=1789&amp;creative=9325&amp;linkCode=xm2&amp;linkId=edb6ac08024c48c87a6d6a422b3f55f8\" target=\"_blank\" rel=\"noopener noreferrer\">jumper Wires<\/a><\/p>\n<p><a href=\"https:\/\/www.amazon.com\/gp\/search\/ref=as_li_qf_sp_sr_il_tl?ie=UTF8&amp;tag=zhut01-20&amp;keywords=arduino enclosure&amp;index=aps&amp;camp=1789&amp;creative=9325&amp;linkCode=xm2&amp;linkId=e58cb60ab143bd7e45df3aaf967a4c5a\">Project Box<\/a><\/p>\n<h1>Schematic:<\/h1>\n<p><a href=\"https:\/\/thezhut.com\/wp-content\/uploads\/2017\/01\/low_temp_alarm_schem.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-504\" src=\"https:\/\/thezhut.com\/wp-content\/uploads\/2017\/01\/low_temp_alarm_schem.png?w=300\" alt=\"low_temp_alarm_schem\" width=\"643\" height=\"392\" srcset=\"https:\/\/thezhut.com\/wp-content\/uploads\/2017\/01\/low_temp_alarm_schem.png 1188w, https:\/\/thezhut.com\/wp-content\/uploads\/2017\/01\/low_temp_alarm_schem-300x183.png 300w, https:\/\/thezhut.com\/wp-content\/uploads\/2017\/01\/low_temp_alarm_schem-768x469.png 768w, https:\/\/thezhut.com\/wp-content\/uploads\/2017\/01\/low_temp_alarm_schem-1024x626.png 1024w\" sizes=\"auto, (max-width: 643px) 100vw, 643px\" \/><\/a><\/p>\n<h1>ARDUINO Code:<\/h1>\n<p>#define thermistor A2 \/\/ thermistor on analog pin 2<br \/>\nint temp; \/\/ for storing the temp reading<br \/>\n#define alarm 715 \/\/ if temp falls below this number alarm will go off<br \/>\n#define relay 5<\/p>\n<p>void setup() {<br \/>\nSerial.begin(9600); \/\/ start the serial for monitoring the temp value when configuring<br \/>\npinMode(relay, OUTPUT);<br \/>\n}<\/p>\n<p>void loop() {<br \/>\ntemp = analogRead(thermistor); \/\/ read the thermistor<br \/>\nSerial.println(temp); \/\/ print reading to serial monitor for testing<br \/>\ndelay(5000); \/\/ delay between readings<\/p>\n<p>while (temp &lt; alarm) \/\/ check for low temp<br \/>\n{<br \/>\ndigitalWrite(relay, HIGH);<br \/>\ntone(3, 500, 500);<br \/>\ndelay(500);<br \/>\ntone(3, 800, 500);<br \/>\ndelay(500);<br \/>\ntemp = analogRead(thermistor); \/\/ read the thermistor<br \/>\nSerial.println(temp); \/\/ for testing<br \/>\n}<\/p>\n<p>digitalWrite(relay, LOW);<br \/>\n}<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This ARDUINO beginners tutorial will show you how to build a simple circuit that will trigger a alarm if the temperature gets to low, you can also use the optional relay to control a fan or other device. Click on &hellip; <a href=\"https:\/\/thezhut.com\/?page_id=503\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"parent":10,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":"","_links_to":"","_links_to_target":""},"class_list":["post-503","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/thezhut.com\/index.php?rest_route=\/wp\/v2\/pages\/503","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/thezhut.com\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/thezhut.com\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/thezhut.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/thezhut.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=503"}],"version-history":[{"count":3,"href":"https:\/\/thezhut.com\/index.php?rest_route=\/wp\/v2\/pages\/503\/revisions"}],"predecessor-version":[{"id":1594,"href":"https:\/\/thezhut.com\/index.php?rest_route=\/wp\/v2\/pages\/503\/revisions\/1594"}],"up":[{"embeddable":true,"href":"https:\/\/thezhut.com\/index.php?rest_route=\/wp\/v2\/pages\/10"}],"wp:attachment":[{"href":"https:\/\/thezhut.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=503"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}