top of page

Analog Clock

I designed a clock that can tell the weather using a 180-degree rotating servo motor and an ESP32. The clock rotates back and forth every 30 seconds, and when a button on the ESP32 is pressed, the clock hand points to the current weather in °C at Tufts using an API (the temperature is 21.8°C in the video). The button can be pressed again to restart the clock.

​

I used a MicroPython script to control the motor and extract the weather API. Through this project, I learned more about using PWM to control motor speed and was introduced to using APIs to display real-time data. I also learned how to share code via GitHub and upload code to my ESP32 in Thonny. My code can be accessed here.

​

I designed the physical clock in SolidWorks and used a laser printer to print the clock. 

IMG_8817.HEIC
bottom of page