{"id":1419,"date":"2020-04-23T13:01:11","date_gmt":"2020-04-23T17:01:11","guid":{"rendered":"https:\/\/teakdata.com\/blog\/?p=1419"},"modified":"2021-01-20T00:41:44","modified_gmt":"2021-01-20T05:41:44","slug":"smart-clock","status":"publish","type":"post","link":"https:\/\/teakdata.com\/blog\/smart-clock\/","title":{"rendered":"Smart Clock"},"content":{"rendered":"\n<div style=\"height:66px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">We have smart phones, smart watches &#8230; how about a Smart Clock?<\/h2>\n\n\n\n<p>What do you need:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>old wall clock<\/li><li>raspberry pi<\/li><li>stepper motor 28-BYJ-48<\/li><li>wires<\/li><li>hotglue<\/li><li>plywood &#8211; optional<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-embed-youtube wp-block-embed is-type-video is-provider-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<div class=\"video-container\"><iframe loading=\"lazy\" title=\"smart clock\" width=\"500\" height=\"281\" src=\"https:\/\/www.youtube.com\/embed\/ZQtwaknno4s?feature=oembed&#038;wmode=opaque\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe><\/div>\n<\/div><\/figure>\n\n\n\n<!--more-->\n\n\n\n<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">The Clock Face<\/h2>\n\n\n\n<p><strong>For the Clock Face<\/strong> &#8211; we have decided to use wood (plywood). You may also use a cheap wall clock face.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"768\" src=\"https:\/\/teakdata.com\/blog\/wp-content\/uploads\/2020\/04\/IMG_1923-1024x768.jpg\" alt=\"smart clock\" class=\"wp-image-1420\" srcset=\"https:\/\/teakdata.com\/blog\/wp-content\/uploads\/2020\/04\/IMG_1923-1024x768.jpg 1024w, https:\/\/teakdata.com\/blog\/wp-content\/uploads\/2020\/04\/IMG_1923-300x225.jpg 300w, https:\/\/teakdata.com\/blog\/wp-content\/uploads\/2020\/04\/IMG_1923-768x576.jpg 768w, https:\/\/teakdata.com\/blog\/wp-content\/uploads\/2020\/04\/IMG_1923-1536x1152.jpg 1536w, https:\/\/teakdata.com\/blog\/wp-content\/uploads\/2020\/04\/IMG_1923.jpg 1600w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption>smart clock &#8211; face plywood<\/figcaption><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"768\" src=\"https:\/\/teakdata.com\/blog\/wp-content\/uploads\/2020\/04\/IMG_1925-1024x768.jpg\" alt=\"smart clock\" class=\"wp-image-1422\" srcset=\"https:\/\/teakdata.com\/blog\/wp-content\/uploads\/2020\/04\/IMG_1925-1024x768.jpg 1024w, https:\/\/teakdata.com\/blog\/wp-content\/uploads\/2020\/04\/IMG_1925-300x225.jpg 300w, https:\/\/teakdata.com\/blog\/wp-content\/uploads\/2020\/04\/IMG_1925-768x576.jpg 768w, https:\/\/teakdata.com\/blog\/wp-content\/uploads\/2020\/04\/IMG_1925-1536x1152.jpg 1536w, https:\/\/teakdata.com\/blog\/wp-content\/uploads\/2020\/04\/IMG_1925.jpg 1600w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption>smart clock &#8211; face plywood cut<\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"768\" height=\"1024\" src=\"https:\/\/teakdata.com\/blog\/wp-content\/uploads\/2020\/04\/IMG_1931-768x1024.jpg\" alt=\"smart clock\" class=\"wp-image-1424\" srcset=\"https:\/\/teakdata.com\/blog\/wp-content\/uploads\/2020\/04\/IMG_1931-768x1024.jpg 768w, https:\/\/teakdata.com\/blog\/wp-content\/uploads\/2020\/04\/IMG_1931-225x300.jpg 225w, https:\/\/teakdata.com\/blog\/wp-content\/uploads\/2020\/04\/IMG_1931-1152x1536.jpg 1152w, https:\/\/teakdata.com\/blog\/wp-content\/uploads\/2020\/04\/IMG_1931.jpg 1200w\" sizes=\"auto, (max-width: 768px) 100vw, 768px\" \/><figcaption>smart clock &#8211; face plywood cut with hands<\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"768\" src=\"https:\/\/teakdata.com\/blog\/wp-content\/uploads\/2020\/04\/IMG_2185-1024x768.jpg\" alt=\"smart clock\" class=\"wp-image-1431\" srcset=\"https:\/\/teakdata.com\/blog\/wp-content\/uploads\/2020\/04\/IMG_2185-1024x768.jpg 1024w, https:\/\/teakdata.com\/blog\/wp-content\/uploads\/2020\/04\/IMG_2185-300x225.jpg 300w, https:\/\/teakdata.com\/blog\/wp-content\/uploads\/2020\/04\/IMG_2185-768x576.jpg 768w, https:\/\/teakdata.com\/blog\/wp-content\/uploads\/2020\/04\/IMG_2185-1536x1152.jpg 1536w, https:\/\/teakdata.com\/blog\/wp-content\/uploads\/2020\/04\/IMG_2185.jpg 1600w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption>smart clock &#8211; face plywood &#8211; marking hours\/minutes<\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"768\" src=\"https:\/\/teakdata.com\/blog\/wp-content\/uploads\/2020\/04\/IMG_2186-1024x768.jpg\" alt=\"smart clock\" class=\"wp-image-1432\" srcset=\"https:\/\/teakdata.com\/blog\/wp-content\/uploads\/2020\/04\/IMG_2186-1024x768.jpg 1024w, https:\/\/teakdata.com\/blog\/wp-content\/uploads\/2020\/04\/IMG_2186-300x225.jpg 300w, https:\/\/teakdata.com\/blog\/wp-content\/uploads\/2020\/04\/IMG_2186-768x576.jpg 768w, https:\/\/teakdata.com\/blog\/wp-content\/uploads\/2020\/04\/IMG_2186-1536x1152.jpg 1536w, https:\/\/teakdata.com\/blog\/wp-content\/uploads\/2020\/04\/IMG_2186.jpg 1600w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption>smart clock &#8211; cardboard date plate<\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"768\" src=\"https:\/\/teakdata.com\/blog\/wp-content\/uploads\/2020\/04\/IMG_2188-1024x768.jpg\" alt=\"smart clock\" class=\"wp-image-1433\" srcset=\"https:\/\/teakdata.com\/blog\/wp-content\/uploads\/2020\/04\/IMG_2188-1024x768.jpg 1024w, https:\/\/teakdata.com\/blog\/wp-content\/uploads\/2020\/04\/IMG_2188-300x225.jpg 300w, https:\/\/teakdata.com\/blog\/wp-content\/uploads\/2020\/04\/IMG_2188-768x576.jpg 768w, https:\/\/teakdata.com\/blog\/wp-content\/uploads\/2020\/04\/IMG_2188-1536x1152.jpg 1536w, https:\/\/teakdata.com\/blog\/wp-content\/uploads\/2020\/04\/IMG_2188.jpg 1600w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption>smart clock<\/figcaption><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Clock Mechanism<\/h2>\n\n\n\n<p>The clock mechanism is complicated and we have decided to use an existing mechanism for an old wall clock (you can buy a wall clock for as cheap as 2$)<\/p>\n\n\n\n<p>We have connected the stepper motor directly to the back wheel that changes the hour. You can use hot glue or any glue that has strong adherence.<\/p>\n\n\n\n<p>Moving the motor will adjust both the minutes+hours hands.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"768\" src=\"https:\/\/teakdata.com\/blog\/wp-content\/uploads\/2020\/04\/IMG_3373-1024x768.jpg\" alt=\"smart clock\" class=\"wp-image-1442\" srcset=\"https:\/\/teakdata.com\/blog\/wp-content\/uploads\/2020\/04\/IMG_3373-1024x768.jpg 1024w, https:\/\/teakdata.com\/blog\/wp-content\/uploads\/2020\/04\/IMG_3373-300x225.jpg 300w, https:\/\/teakdata.com\/blog\/wp-content\/uploads\/2020\/04\/IMG_3373-768x576.jpg 768w, https:\/\/teakdata.com\/blog\/wp-content\/uploads\/2020\/04\/IMG_3373-1536x1152.jpg 1536w, https:\/\/teakdata.com\/blog\/wp-content\/uploads\/2020\/04\/IMG_3373.jpg 1600w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption>smart clock &#8211; mechanism hour\/minutes connector<\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"768\" src=\"https:\/\/teakdata.com\/blog\/wp-content\/uploads\/2020\/04\/IMG_2194-1024x768.jpg\" alt=\"smart clock\" class=\"wp-image-1437\" srcset=\"https:\/\/teakdata.com\/blog\/wp-content\/uploads\/2020\/04\/IMG_2194-1024x768.jpg 1024w, https:\/\/teakdata.com\/blog\/wp-content\/uploads\/2020\/04\/IMG_2194-300x225.jpg 300w, https:\/\/teakdata.com\/blog\/wp-content\/uploads\/2020\/04\/IMG_2194-768x576.jpg 768w, https:\/\/teakdata.com\/blog\/wp-content\/uploads\/2020\/04\/IMG_2194-1536x1152.jpg 1536w, https:\/\/teakdata.com\/blog\/wp-content\/uploads\/2020\/04\/IMG_2194.jpg 1600w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption>smart clock &#8211; mechanism hour\/minutes connector<\/figcaption><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">3D Models <\/h2>\n\n\n\n<p>As another version, we have created some 3D printed gears for the date plate.<\/p>\n\n\n\n<p>3D model for date gears: <a rel=\"noreferrer noopener\" href=\"https:\/\/www.tinkercad.com\/things\/9TaUR7BSQQu-clock-gears10\" target=\"_blank\">https:\/\/www.tinkercad.com\/things\/9TaUR7BSQQu<\/a><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"768\" src=\"https:\/\/teakdata.com\/blog\/wp-content\/uploads\/2020\/04\/IMG_3372-1024x768.jpg\" alt=\"smart clock\" class=\"wp-image-1441\" srcset=\"https:\/\/teakdata.com\/blog\/wp-content\/uploads\/2020\/04\/IMG_3372-1024x768.jpg 1024w, https:\/\/teakdata.com\/blog\/wp-content\/uploads\/2020\/04\/IMG_3372-300x225.jpg 300w, https:\/\/teakdata.com\/blog\/wp-content\/uploads\/2020\/04\/IMG_3372-768x576.jpg 768w, https:\/\/teakdata.com\/blog\/wp-content\/uploads\/2020\/04\/IMG_3372-1536x1152.jpg 1536w, https:\/\/teakdata.com\/blog\/wp-content\/uploads\/2020\/04\/IMG_3372.jpg 1600w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption>smart clock gears<\/figcaption><\/figure>\n\n\n\n<p>3D model for connectors: <a rel=\"noreferrer noopener\" href=\"https:\/\/www.tinkercad.com\/things\/9XqpMBTGcWf-support-with-ball-joint\" target=\"_blank\">https:\/\/www.tinkercad.com\/things\/9XqpMBTGcWf<\/a><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"768\" height=\"1024\" src=\"https:\/\/teakdata.com\/blog\/wp-content\/uploads\/2020\/04\/IMG_3376-768x1024.jpg\" alt=\"smart clock\" class=\"wp-image-1445\" srcset=\"https:\/\/teakdata.com\/blog\/wp-content\/uploads\/2020\/04\/IMG_3376-768x1024.jpg 768w, https:\/\/teakdata.com\/blog\/wp-content\/uploads\/2020\/04\/IMG_3376-225x300.jpg 225w, https:\/\/teakdata.com\/blog\/wp-content\/uploads\/2020\/04\/IMG_3376-1152x1536.jpg 1152w, https:\/\/teakdata.com\/blog\/wp-content\/uploads\/2020\/04\/IMG_3376.jpg 1200w\" sizes=\"auto, (max-width: 768px) 100vw, 768px\" \/><figcaption>smart clock<\/figcaption><\/figure>\n\n\n\n<p>3D Model for motor support (date): <\/p>\n\n\n\n<p><a href=\"https:\/\/www.tinkercad.com\/things\/7vGxhJsRV7a\">https:\/\/www.tinkercad.com\/things\/7vGxhJsRV7a<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Stepper motors<\/h2>\n\n\n\n<p>As stepper motors we have selected 28-BYJ-48.<\/p>\n\n\n\n<p>The advantage of this motor is that it can be powered directly from the raspberry pi io pins without extra power. The motor required 4 io pins.<\/p>\n\n\n\n<p>We have got two motors, one for hour\/minutes and one for the date.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"768\" src=\"https:\/\/teakdata.com\/blog\/wp-content\/uploads\/2020\/04\/IMG_3375-1024x768.jpg\" alt=\"smart clock\" class=\"wp-image-1444\" srcset=\"https:\/\/teakdata.com\/blog\/wp-content\/uploads\/2020\/04\/IMG_3375-1024x768.jpg 1024w, https:\/\/teakdata.com\/blog\/wp-content\/uploads\/2020\/04\/IMG_3375-300x225.jpg 300w, https:\/\/teakdata.com\/blog\/wp-content\/uploads\/2020\/04\/IMG_3375-768x576.jpg 768w, https:\/\/teakdata.com\/blog\/wp-content\/uploads\/2020\/04\/IMG_3375-1536x1152.jpg 1536w, https:\/\/teakdata.com\/blog\/wp-content\/uploads\/2020\/04\/IMG_3375.jpg 1600w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption>smart clock<\/figcaption><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Raspberry Pi and Software<\/h2>\n\n\n\n<p>Used a raspberry pi to control the stepper motors.<\/p>\n\n\n\n<p>The program was written in python and you can find it here: <\/p>\n\n\n\n<p><a href=\"https:\/\/github.com\/smarcu\/stepper-motor-28-BYJ48-raspberry\">https:\/\/github.com\/smarcu\/stepper-motor-28-BYJ48-raspberry<\/a><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Slideshow with all pictures<\/h2>\n\n\n\n<figure class=\"wp-block-embed-youtube wp-block-embed is-type-video is-provider-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<div class=\"video-container\"><iframe loading=\"lazy\" title=\"smart clock\" width=\"500\" height=\"281\" src=\"https:\/\/www.youtube.com\/embed\/sAXQ-2-SJ0Y?feature=oembed&#038;wmode=opaque\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe><\/div>\n<\/div><figcaption>Smart Clock &#8211; slides with steps<\/figcaption><\/figure>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>We have smart phones, smart watches &#8230; how about a Smart Clock? What do you need: old wall clock raspberry pi stepper motor 28-BYJ-48 wires hotglue plywood &#8211; optional<\/p>\n","protected":false},"author":1,"featured_media":1446,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[73,74,89,12,40,10,47],"tags":[92,3,93],"class_list":["post-1419","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-3d","category-3d-printer","category-clock","category-linux","category-python","category-raspberrypi","category-wood","tag-clock","tag-raspberry-pi","tag-smart-clock"],"_links":{"self":[{"href":"https:\/\/teakdata.com\/blog\/wp-json\/wp\/v2\/posts\/1419","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/teakdata.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/teakdata.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/teakdata.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/teakdata.com\/blog\/wp-json\/wp\/v2\/comments?post=1419"}],"version-history":[{"count":18,"href":"https:\/\/teakdata.com\/blog\/wp-json\/wp\/v2\/posts\/1419\/revisions"}],"predecessor-version":[{"id":1468,"href":"https:\/\/teakdata.com\/blog\/wp-json\/wp\/v2\/posts\/1419\/revisions\/1468"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/teakdata.com\/blog\/wp-json\/wp\/v2\/media\/1446"}],"wp:attachment":[{"href":"https:\/\/teakdata.com\/blog\/wp-json\/wp\/v2\/media?parent=1419"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/teakdata.com\/blog\/wp-json\/wp\/v2\/categories?post=1419"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/teakdata.com\/blog\/wp-json\/wp\/v2\/tags?post=1419"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}