{"id":2404,"date":"2017-10-05T12:40:28","date_gmt":"2017-10-05T19:40:28","guid":{"rendered":"http:\/\/lukemiller.org\/?p=2404"},"modified":"2017-10-05T12:40:28","modified_gmt":"2017-10-05T19:40:28","slug":"a-solar-powered-tide-clock-using-arduino-tide-prediction-libraries","status":"publish","type":"post","link":"https:\/\/lukemiller.org\/index.php\/2017\/10\/a-solar-powered-tide-clock-using-arduino-tide-prediction-libraries\/","title":{"rendered":"A solar-powered tide clock using Arduino tide prediction libraries"},"content":{"rendered":"<p>Robert Werner has developed a <a href=\"http:\/\/www.instructables.com\/id\/Solar-Tide-Clock\/\">solar-powered tide clock<\/a> using my Arduino <a href=\"https:\/\/github.com\/millerlp\/Tide_calculator\">tide prediction libraries (GitHub link)<\/a> I previously described <a href=\"https:\/\/lukemiller.org\/index.php\/2012\/09\/tide-height-prediction-with-the-arduino\/\">here<\/a> and <a href=\"https:\/\/lukemiller.org\/index.php\/2015\/11\/building-a-simple-tide-clock\/\">here<\/a>. The <a href=\"http:\/\/www.instructables.com\/id\/Solar-Tide-Clock\/\">Instructables page<\/a> shows how Robert used a servo motor to actuate a pair of hands on a dial face. The red and blue hands give you the time of the next high tide and low tide, respectively.<\/p>\n<p>In Robert&#8217;s tide clock, an Arduino programmed with the tide prediction library for Anchorage Alaska keeps time with a real time clock (RTC) chip. At set intervals, the Arduino checks the current time, and makes a series of tide height calculations by feeding the date and time to the tide height function in my library. By feeding a set of times in the future as well, you can generate a table of the rising and falling tide for the next few hours or days. It&#8217;s then a matter of finding the time of the next maximum tide value, and the time of the next minimum tide value (actually by checking for a change in the slope between subsequent predicted tide heights), and you end up with the times you need the clock to display.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Robert Werner has developed a solar-powered tide clock using my Arduino tide prediction libraries (GitHub link) I previously described here and here. The Instructables page shows how Robert used a servo motor to actuate a pair of hands on a dial face. The red and blue hands give you the time of the next high [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[217,240],"tags":[],"class_list":["post-2404","post","type-post","status-publish","format-standard","hentry","category-arduino","category-tide-prediction"],"_links":{"self":[{"href":"https:\/\/lukemiller.org\/index.php\/wp-json\/wp\/v2\/posts\/2404","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lukemiller.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lukemiller.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lukemiller.org\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/lukemiller.org\/index.php\/wp-json\/wp\/v2\/comments?post=2404"}],"version-history":[{"count":5,"href":"https:\/\/lukemiller.org\/index.php\/wp-json\/wp\/v2\/posts\/2404\/revisions"}],"predecessor-version":[{"id":2409,"href":"https:\/\/lukemiller.org\/index.php\/wp-json\/wp\/v2\/posts\/2404\/revisions\/2409"}],"wp:attachment":[{"href":"https:\/\/lukemiller.org\/index.php\/wp-json\/wp\/v2\/media?parent=2404"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lukemiller.org\/index.php\/wp-json\/wp\/v2\/categories?post=2404"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lukemiller.org\/index.php\/wp-json\/wp\/v2\/tags?post=2404"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}