Jan 8, 2021 : Improved version is released, https://www.thingiverse.com/thing:5242321
Rotary 7-segment mechanical clock, driven by a single stepper motor and ESP32.
note: this clock takes a long time to show current time (up to 4 minutes) if all digits are changed, because it has 12 wheels. Usually it takes around 10 seconds to change the rightmost digit.
Update Jan 17, 2022 :
WiFi setting from your smartphone is now possible. Use smartConfig.ino for your ESP32 microcomputer. This is based on the code by airtcp, https://github.com/airtcp/esp32_demo_for_lolinlite
and I added some motions to show the current status of the clock.
The mechanism is similar to "Minimal Mechanical Digital Clock" with 4 or 8 wheels, https://www.thingiverse.com/thing:4931539
but this 7-segment clock has 12 wheels (3 wheels per each digit).
The principle to set the wheel position independently is also similar to "Time Twister 3", https://tiltedtwister.com/timetwister3.html
but the main difference is the segment arrangement. My design has 9 positions for each wheel, and segments are shared each other. Therefore It can show relatively larger digit compared to the radius of the wheel. Details are as follows.
Datasheet of RPR-220 is available at https://www.rohm.com/products/optical-sensors/reflective-type-photosensors/rpr-220-product
Black material with white lettering looks better because gaps between wheels are less visible.
You can set SSID and password of your WiFi using smartphone app.
This code is a back-ported version from newer "Rotary Digital Clock", https://www.thingiverse.com/thing:5191668
This function is named SmartConfig. The apps for setting are at
Android: https://play.google.com/store/apps/details?id=com.khoazero123.iot_esptouch_demo&hl=ja≷=US
iOS: https://apps.apple.com/jp/app/espressif-esptouch/id1071176700
The status of WiFi connection is indicated by the motion of the rotor.
Large reciprocal motion : connecting to WiFi of previous setting stored in non-volatile memory.
Small reciprocal motion : SmartConfig mode. If 30 seconds of WiFi connection trial fails, it automatically moves to the the smartConfig mode (waiting for the setting from smartphone app.)
Please not that your smartphone should be connected to 2.4GHz WiFi.
Acknowledgement:
Thanks to airtcp. Original source code (for the other project) is at https://github.com/airtcp/esp32_demo_for_lolinlite
(This code is not for this clock. Please download and use "smartConfig.ino" provided by this thing's page for this clock)
Category: GadgetsThe author marked this model as their own original creation. Imported from Thingiverse.