Flip-Clock

Flip-Clock

prusaprinters

<p>GitHub repository: <a href="https://github.com/iz2k/flip-clock">https://github.com/iz2k/flip-clock</a></p> <ul> <li><a href="https://github.com/iz2k/flip-clock/tree/master/3d">3D design</a></li> <li>PCB <a href="https://github.com/iz2k/flip-clock/tree/master/pcb_hw">hardware</a> and <a href="https://github.com/iz2k/flip-clock/tree/master/pcb_fw">firmware</a> design</li> <li><a href="https://github.com/iz2k/flip-clock/tree/master/rpi_sw">Raspberry Pi software design</a></li> <li><a href="https://github.com/iz2k/flip-clock/blob/master/User.Guide.md"> User Guide</a></li> </ul> <h3>Flip-Clock</h3> <p>The Flip-Clock is an old stylish, classic alarm clock with up to date features, such as automatic time adjustment, weather forecast, FM radio or Spotify playback. The device consists of three 3D printed flip digits, a PCB with integrated drivers for the digit controlling stepper motors and a Raspberry Pi 3 A+ with 3W speakers to run the main code.</p> <p>All the mechanics and electronics are mounted within an 3D printed elegant cover. Additionally, a snoozer bar, two rotary encoders and a RGBW LED strip are included for the user interface.</p> <p><img alt="image" src="https://user-images.githubusercontent.com/57298545/72661674-613a7c80-39dd-11ea-8853-dfbfa96f9766.png"/></p> <p><a href="https://youtu.be/fy7IPMUoMU4" title="Flip-Clock in action"><img alt="Flip-Clock in action" src="https://res.cloudinary.com/marcomontalbano/image/upload/v1579368498/video_to_markdown/images/youtube--fy7IPMUoMU4-c05b58ac6eb4c4700831b2b3070cd403.jpg"/></a></p> <h3>Parts</h3> <h3>3D printed flip digits</h3> <p>Each flip digit consists of a support structure with two bearings. The axle is placed inside the bearings holding two flap holders. All the flaps are mounted within those holders. The movement of the digit is achieved with a stepper motor and two gears. An IR transmitter and an IR receiver are palced on the top and on the bottom of the flaps to detect transitions. Additionally, a limit switch is placed close to the gears to synchronize with it each turn.</p> <h3>Subparts</h3> <ol> <li>Support structure</li> <li>Bearings (<a href="https://www.amazon.es/gp/product/B07CWLGNJ5/ref=ppx_yo_dt_b_asin_title_o07_s01?ie=UTF8&amp;psc=1">623-2RS</a>)</li> <li>Axle</li> <li>Flap holders</li> <li>Flaps</li> <li>Gears</li> <li>Stepper motor (<a href="https://www.amazon.es/gp/product/B07LCFKJB8/ref=ppx_yo_dt_b_asin_title_o01_s00?ie=UTF8&amp;psc=1">28BYJ-48</a>)</li> <li>IR transmitter (<a href="https://www.amazon.es/gp/product/B07F3W2SP4/ref=ppx_yo_dt_b_asin_title_o07_s00?ie=UTF8&amp;psc=1">IR diode</a>)</li> <li>IR receiver (<a href="https://www.amazon.es/gp/product/B07F3W2SP4/ref=ppx_yo_dt_b_asin_title_o07_s00?ie=UTF8&amp;psc=1">IR photodiode</a>)</li> <li>Limit switch (<a href="https://www.amazon.es/gp/product/B07GKS9XC7/ref=ppx_yo_dt_b_asin_title_o05_s00?ie=UTF8&amp;psc=1">CLW1093</a>)</li> </ol> <p><img alt="" src="https://user-images.githubusercontent.com/57298545/71909685-cfc34300-3170-11ea-8009-0059fa54a33f.png"/></p> <h3>FlipDigitController PCB</h3> <p>The FlipDigitController PCB includes a microcontroller and drivers to control the stepper motors. Additionally, the PCB also handles the IR transmitter and receiver to detect flap transitions and the limit switch for automatic synchronization of the axle. The PCB has an UART interface for the abstraction layer protocol.</p> <p>The current version of the PCB can handle up to two flip digits at the same time. For the FlipClock device two units of the PCB have been used: one to control hours and minutes flaps, and another one to control weather flaps.</p> <table> <thead><tr> <th>Block diagram</th> <th>Layout</th> </tr> </thead> <tbody> <tr> <td><img alt="" src="https://user-images.githubusercontent.com/57298545/71909251-eae18300-316f-11ea-97d6-9f295ecb5744.png"/></td> <td><img alt="" src="https://user-images.githubusercontent.com/57298545/71839735-2458b680-30bc-11ea-927b-b251d45d2cdc.png"/></td> </tr> </tbody> </table> <h3>Subparts</h3> <ol> <li><a href="http://www.ti.com/product/MSP430FR2433">MSP430FR2433 MCU</a></li> <li><a href="http://www.ti.com/product/INA333?keyMatch=INA333&amp;tisearch=Search-EN-everything&amp;usecase=part-number">INA333 comparators</a></li> <li><a href="https://www.ti.com/product/ULN2003A?utm_source=google&amp;utm_medium=cpc&amp;utm_campaign=app-null-null-GPN_EN-cpc-pf-google-wwe&amp;utm_content=ULN2003A&amp;ds_k=ULN2003A&amp;DCM=yes&amp;gclid=Cj0KCQiA9dDwBRC9ARIsABbedBNLJmCuJJccQ0TU_6kyqkmjuiaOIJmoF_R1Iqcqjsfj1315j4ct5KgaAqUfEALw_wcB&amp;gclsrc=aw.ds">ULN2003A drivers</a></li> </ol> <h3>3D printed cover</h3> <p><img alt="" src="https://user-images.githubusercontent.com/57298545/71839981-af39b100-30bc-11ea-9f0e-0c204987276a.png"/></p> <h3>Subparts</h3> <ol> <li>3D printed top cover</li> <li>3D printed bottom cover</li> <li>3D printed front cover</li> <li>3D printed back cover</li> </ol> <h3>Rotary encoders</h3> <p>For the user interface two rotary encoders have been used. The used encoders can detect steps in both directions, and include a built-in switch. One of the encoders is used to control the volume (up/down/mute), whereas the other encoder controls the audio device (FM Radio/Spotify/OFF)</p> <table> <thead><tr> <th>Wheels</th> <th>Encoders</th> </tr> </thead> <tbody> <tr> <td><img alt="image" src="https://user-images.githubusercontent.com/57298545/71840053-dc865f00-30bc-11ea-91aa-834d0723d018.png"/></td> <td><img alt="image" src="https://user-images.githubusercontent.com/57298545/71840601-eb214600-30bd-11ea-8e2c-8bffe343c412.png"/></td> </tr> </tbody> </table> <h3>Subparts</h3> <ol> <li>3D printed volume wheel</li> <li>3D printed control wheel</li> <li><a href="https://www.mouser.es/ProductDetail/BI-Technologies-TT-Electronics/EN11-HSM1AF15?qs=u1MaZ2%2F4xgsleMatSs8Sqg==">TT EN11-HSM1AF15</a> Rotary Encoders</li> </ol> <h3>Snooze bar</h3> <p>A snooze bar is included on top of the FlipClock device. This bar can be used to trigger the nightlight by default, or to stop/snooze the alarm when it has been triggered. Tactile switches are placed under the bar to detect when it is pressed.</p> <table> <thead><tr> <th>Bar</th> <th>Switch</th> </tr> </thead> <tbody> <tr> <td><img alt="bar" src="https://user-images.githubusercontent.com/57298545/71840138-ffb10e80-30bc-11ea-9305-3af52d365865.png"/></td> <td><img alt="switch" src="https://user-images.githubusercontent.com/57298545/71915944-1f0f7080-317d-11ea-9247-6284e7399dad.png"/></td> </tr> </tbody> </table> <h3>Subparts</h3> <ol> <li>3D printed snooze bar</li> <li><a hlink="https://octopart.com/evq-q2s03w-panasonic-1199659">EVQ-Q2S03W</a> tactile switches</li> </ol> <h3>NeoPixel RGBW Stick</h3> <p>Two NeoPixel RGBW LED sticks have been included in the front of the FlipClock in order to provide nightlight and light-sign functions to the device.</p> <p><img alt="neopixel" src="https://user-images.githubusercontent.com/57298545/71915786-c5a74180-317c-11ea-8382-9a2c862fb766.png"/></p> <h3>Subparts</h3> <ol> <li><a href="https://www.adafruit.com/product/2868">NeoPixel RGBW Stick</a></li> </ol> <h3>3W Speakers</h3> <p><img alt="image" src="https://user-images.githubusercontent.com/57298545/71917028-78789f00-317f-11ea-9d36-5b1e801ca90e.png"/></p> <h3>Subparts</h3> <ol> <li><a href="https://www.adafruit.com/product/1669">Stereo Enclosed Speaker Set - 3W 4 Ohm</a></li> </ol> <h3>FM radio tunner (RTL-SDR)</h3> <table> <thead><tr> <th>RTL-SDR dongle</th> <th>FM antenna</th> </tr> </thead> <tbody> <tr> <td><img alt="image" src="https://user-images.githubusercontent.com/57298545/71916693-ca6cf500-317e-11ea-9ba9-f5a19fb1d1fc.png"/></td> <td><img alt="image" src="https://user-images.githubusercontent.com/57298545/71916614-9db8dd80-317e-11ea-92c9-331ff1a74de6.png"/></td> </tr> </tbody> </table> <h3>Subparts</h3> <ol> <li><a href="https://www.amazon.es/gp/product/B013Q94CT6/ref=ppx_yo_dt_b_asin_title_o06_s00?ie=UTF8&amp;psc=1">RTL-SDR dongle</a></li> <li><a href="https://www.amazon.es/gp/product/B07CJYRWXQ/ref=ppx_yo_dt_b_asin_title_o01_s00?ie=UTF8&amp;psc=1">FM antenna</a></li> </ol> <h3>Raspberry Pi 3 A+</h3> <table> <thead><tr> <th>Raspberry Pi 3 Model A+</th> <th>Adafruit I2S 3W Stereo Speaker Bonnet</th> </tr> </thead> <tbody> <tr> <td><img alt="image" src="https://user-images.githubusercontent.com/57298545/71917662-da85d400-3180-11ea-85ec-e5f024e5f510.png"/></td> <td><img alt="image" src="https://user-images.githubusercontent.com/57298545/71960646-ce882980-31f5-11ea-9f44-48df297365e6.png"/></td> </tr> </tbody> </table> <h3>Subparts</h3> <ol> <li><a href="https://www.raspberrypi.org/products/raspberry-pi-3-model-a-plus/">RPI3 A+</a></li> <li><a href="https://www.adafruit.com/product/3346">Adafruit I2S 3W Stereo Speaker Bonnet</a></li> </ol> <h3>Power Supply</h3> <table> <thead><tr> <th>Power Supply Module</th> <th>PSM Housing</th> </tr> </thead> <tbody> <tr> <td><img alt="image" src="https://user-images.githubusercontent.com/57298545/71917384-37cd5580-3180-11ea-8340-a72870a0f2ce.png"/></td> <td><img alt="image" src="https://user-images.githubusercontent.com/57298545/71917600-bcb86f00-3180-11ea-9bb1-ffbf252b2a0e.png"/></td> </tr> </tbody> </table> <h3>Subparts</h3> <ol> <li><a href="https://www.digikey.com/product-detail/en/mean-well-usa-inc/PS-05-5/1866-5411-ND/7705819">PS-05-5</a> power supply module</li> <li>3D printed housing</li> </ol> <h3>Wiring</h3> <p>The correct wiring to connect the different electronics is as follows:</p> <p>PSM connection:</p> <table> <thead><tr> <th>Subpart</th> <th>PIN</th> <th>PIN</th> <th>Subpart</th> </tr> </thead> <tbody> <tr> <td>RPI3</td> <td>5V</td> <td>5V</td> <td>PSM</td> </tr> <tr> <td>RPI3</td> <td>GND</td> <td>GND</td> <td>PSM</td> </tr> </tbody> </table> <p>NeoPixel connection:</p> <table> <thead><tr> <th>Subpart</th> <th>PIN</th> <th>PIN</th> <th>Subpart</th> </tr> </thead> <tbody> <tr> <td>NeoPixel</td> <td>DIN</td> <td>MOSI</td> <td>RPI3</td> </tr> <tr> <td>NeoPixel</td> <td>5VDC</td> <td>5V</td> <td>RPI3</td> </tr> <tr> <td>NeoPixel</td> <td>GND</td> <td>GND</td> <td>RPI3</td> </tr> </tbody> </table> <p>Snooze Bar connection:</p> <table> <thead><tr> <th>Subpart</th> <th>PIN</th> <th>PIN</th> <th>Subpart</th> </tr> </thead> <tbody> <tr> <td>Snooze Bar</td> <td>SW0</td> <td>GPIO 4</td> <td>RPI3</td> </tr> <tr> <td>Snooze Bar</td> <td>SW1</td> <td>GPIO 17</td> <td>RPI3</td> </tr> </tbody> </table> <p>Volume Encoder<sup>1</sup> connection:</p> <table> <thead><tr> <th>Subpart</th> <th>PIN</th> <th>PIN</th> <th>Subpart</th> </tr> </thead> <tbody> <tr> <td>Volume Encoder</td> <td>SW0</td> <td>GPIO 24</td> <td>RPI3</td> </tr> <tr> <td>Volume Encoder</td> <td>SW1</td> <td>GPIO 25</td> <td>RPI3</td> </tr> <tr> <td>Volume Encoder</td> <td>ROT0</td> <td>GPIO 27</td> <td>RPI3</td> </tr> <tr> <td>Volume Encoder</td> <td>ROT1</td> <td>GPIO 23</td> <td>RPI3</td> </tr> <tr> <td>Volume Encoder</td> <td>GND</td> <td>GPIO 22</td> <td>RPI3</td> </tr> </tbody> </table> <p>Control Encoder<sup>1</sup> connection:</p> <table> <thead><tr> <th>Subpart</th> <th>PIN</th> <th>PIN</th> <th>Subpart</th> </tr> </thead> <tbody> <tr> <td>Control Encoder</td> <td>SW0</td> <td>GPIO 5</td> <td>RPI3</td> </tr> <tr> <td>Control Encoder</td> <td>SW1</td> <td>GPIO 6</td> <td>RPI3</td> </tr> <tr> <td>Control Encoder</td> <td>ROT0</td> <td>GPIO 12</td> <td>RPI3</td> </tr> <tr> <td>Control Encoder</td> <td>ROT1</td> <td>GPIO 16</td> <td>RPI3</td> </tr> <tr> <td>Control Encoder</td> <td>GND</td> <td>GPIO 13</td> <td>RPI3</td> </tr> </tbody> </table> <p>Flip-Clock-Controller PCB:</p> <table> <thead><tr> <th>Subpart</th> <th>PIN</th> <th>PIN</th> <th>Subpart</th> </tr> </thead> <tbody> <tr> <td>RPI3</td> <td>3.3V</td> <td>3.3V</td> <td>Flip-Clock-Controller PCB 1 (HHMM)</td> </tr> <tr> <td>RPI3</td> <td>3.3V</td> <td>3.3V</td> <td>Flip-Clock-Controller PCB 2 (WW)</td> </tr> <tr> <td>RPI3</td> <td>TX</td> <td>RX</td> <td>Flip-Clock-Controller PCB 1 (HHMM)</td> </tr> <tr> <td>Flip-Clock-Controller PCB 1 (HHMM)</td> <td>TX</td> <td>RX</td> <td>Flip-Clock-Controller PCB 2 (WW)</td> </tr> <tr> <td>Flip-Clock-Controller PCB 2 (WW)</td> <td>TX</td> <td>RX</td> <td>RPI3</td> </tr> </tbody> </table> <p>1: For ease of connectivity, all pins of rotary encoders are routed to GPIOs. These GPIOs will be configured as required with pull resistors or fixed voltages via software.</p> <h3>Print instructions</h3><p>Category: DIY</p>

Download Model from prusaprinters

With this file you will be able to print Flip-Clock with your 3D printer. Click on the button and save the file on your computer to work, edit or customize your design. You can also find more 3D designs for printers on Flip-Clock.