Magic Clock

This Project is based on the ‘Weasley’ clock in the Harry Potter films, instead of telling the time it displays the whereabouts of family members. This clock implements Node.js with Raspberry Pi, Arduino, and stepper motors.

When a user enters within a certain radius based on my HomeAssistant implementation, a REST request was sent to a web service, this web service would update the state of the connected device in mongoDB incase of disconnect or reboot and then forward the location of a family member via websocket to the clock. The Clock would receive the message, calculate the positions of the hands on the face and send the new position that a hand should be at via serial to the Arduino which would then calculate the number of steps required by the stepper motors and drive them to achieve the desired result. 

This clock has 2 hands and is mounted within an old mantle clock using belt driven concentric shafts.

Future development would be to remove reliance on Home assistant and create an android app to provide the required data for the service.