{"id":8926,"date":"2014-08-07T21:28:56","date_gmt":"2014-08-08T01:28:56","guid":{"rendered":"http:\/\/embedded-lab.com\/blog\/?p=8926"},"modified":"2014-08-07T21:28:56","modified_gmt":"2014-08-08T01:28:56","slug":"automatic-timer-for-sprinkler","status":"publish","type":"post","link":"https:\/\/embedded-lab.com\/blog\/automatic-timer-for-sprinkler\/","title":{"rendered":"Automatic timer for sprinkler"},"content":{"rendered":"<p>This\u00a0<a href=\"http:\/\/www.wengenroth.co\/projects\/automatic-water-timer\/\" target=\"_blank\"><strong>ATtiny25-based automatic timer<\/strong><\/a> project is built to control a water sprinkler. The timeout delay is adjusted using a potentiometer, while the on\/off operation of the timer is controlled through a tact switch.<\/p>\n<div id=\"attachment_8927\" style=\"width: 590px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/embedded-lab.com\/blog\/?attachment_id=8927\" rel=\"attachment wp-att-8927\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-8927\" class=\"size-full wp-image-8927\" alt=\"Automatic timer for water control\" src=\"http:\/\/embedded-lab.com\/blog\/wp-content\/uploads\/2014\/08\/WaterTimer.jpg\" width=\"580\" height=\"469\" srcset=\"https:\/\/embedded-lab.com\/blog\/wp-content\/uploads\/2014\/08\/WaterTimer.jpg 580w, https:\/\/embedded-lab.com\/blog\/wp-content\/uploads\/2014\/08\/WaterTimer-550x444.jpg 550w\" sizes=\"auto, (max-width: 580px) 100vw, 580px\" \/><\/a><p id=\"caption-attachment-8927\" class=\"wp-caption-text\">Automatic timer for water control<\/p><\/div>\n<blockquote><p>On the software side, upon power up, the timer flashes the status light to count out the delay in minutes. \u00a010 flashes correlates to 10 minutes. \u00a0The ADC reads the potentiometer just during the power up and calculates the delay for further use. \u00a0So to change the delay, you first unplug the timer, set the delay, then plug it back in. \u00a0This way it will hopefully prevent accidental changes and noise from changing the delay. To use the timer, you press the button once \u2013 the timer starts, the valve opens and the status light turns on. \u00a0After the delay has elapsed, the timer will shut off, valve closes and the status light shuts off. \u00a0If you want to turn it off early, then you just push the button and everything turns off. \u00a0I also made use of the watchdog timer to prevent software issues from keeping the valve open. \u00a0In the event that a watchdog reset occurs, the initial startup code will catch it, begin flashing the power LED and prevent further use until being power cycled.<\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>This\u00a0ATtiny25-based automatic timer project is built to control a water sprinkler. The timeout delay is adjusted using a potentiometer, while the on\/off operation of the timer is controlled through a tact switch. On the software side, upon power up, the timer flashes the status light to count out the delay in minutes. \u00a010 flashes correlates to 10 minutes. \u00a0The ADC reads the potentiometer just during the power up and calculates the delay for further use. \u00a0So to change the delay, you first unplug the timer, set the delay, then plug it back in. \u00a0This way it will hopefully prevent accidental<\/p>\n","protected":false},"author":1,"featured_media":8927,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[15],"tags":[89,820],"class_list":["post-8926","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-avr-projects","tag-timer","tag-water-controller"],"_links":{"self":[{"href":"https:\/\/embedded-lab.com\/blog\/wp-json\/wp\/v2\/posts\/8926","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/embedded-lab.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/embedded-lab.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/embedded-lab.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/embedded-lab.com\/blog\/wp-json\/wp\/v2\/comments?post=8926"}],"version-history":[{"count":2,"href":"https:\/\/embedded-lab.com\/blog\/wp-json\/wp\/v2\/posts\/8926\/revisions"}],"predecessor-version":[{"id":8929,"href":"https:\/\/embedded-lab.com\/blog\/wp-json\/wp\/v2\/posts\/8926\/revisions\/8929"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/embedded-lab.com\/blog\/wp-json\/wp\/v2\/media\/8927"}],"wp:attachment":[{"href":"https:\/\/embedded-lab.com\/blog\/wp-json\/wp\/v2\/media?parent=8926"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/embedded-lab.com\/blog\/wp-json\/wp\/v2\/categories?post=8926"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/embedded-lab.com\/blog\/wp-json\/wp\/v2\/tags?post=8926"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}