Creative Playing Card Clock Based on ESP32

Creative Playing Card Clock Based on ESP32

MAKER:shiura/Translated by: Fun never ends

A deck of idle playing cards and a 3D printed stand can build a highly creative playing card clock. I used playing cards as the flaps of the clock and made an interesting and crazy clock with minimal parts. The most challenging part of the project was creating a detachable flip display with a 3D printed stand.

Project Features 1. Simple design, each display part consists of only 3 components, no sensors required.

2. Clock flipping: Experience the action of the flaps flipping through randomly arranged cards.

3. WiFi time acquisition: Obtained through ntp after connecting to WiFi.

Creative Playing Card Clock Based on ESP32

Component List

Playing cards (57mm x 89mm) × 1 Stepper motor with 28BYJ-48 driver board × 3 ESP32 microcontroller (M5stamp C3) × 1 Double-sided tape × 1 Self-tapping screws × Several zipper-like chains × 1

3D Printed Stand

Creative Playing Card Clock Based on ESP32

Please 3D print the following parts: 1. Axle, hinge, and rotor.

2. Base and cover.

The size of the axle, hinge, and rotor is: 200mm x 200mm. 14 hinges need to be printed. After completion, all 3D parts need to be polished.

3D printing files can be downloaded from the project file library: https://make.quwj.com/project/420

Assembly

Assembling the Flipping Stand You can watch the video to see the installation of the rotor.

Creative Playing Card Clock Based on ESP32

1. Before installing the card base (hinge), ensure that the cards can be smoothly inserted.

Creative Playing Card Clock Based on ESP32

2. Connect the hinge to the rotor using a snap method.

Creative Playing Card Clock Based on ESP32

3. The hinge has a front and back side, please install as shown in the picture.

4. After installing the hinge, check if it can rotate smoothly. The friction of the rotation can make it operate more smoothly.

Connecting the Motor

Creative Playing Card Clock Based on ESP32

1. Use two self-tapping screws to fix the motor.

Creative Playing Card Clock Based on ESP32

2. Wrap the wires from the back.

3. Use zip ties to secure the wires.

Connecting the Rotor to the Motor

Creative Playing Card Clock Based on ESP32

1. Insert the stepper motor shaft into the rotor hole.

2. If it is loose, you can drop some strong glue into the hole to fix it.

Inserting the Playing Cards

Creative Playing Card Clock Based on ESP32

1. Stick double-sided tape on the short edge of the card.

Creative Playing Card Clock Based on ESP32

2. Slide the card into the hinge channel.

3. It is best to maintain a distance of 1-2mm between the card and the column.

4. You can arrange the cards randomly or in order; please note that it rotates clockwise.

Combining the Three Parts

Creative Playing Card Clock Based on ESP32

1. Use self-tapping screws to install each part onto the base.

2. Fix the motor driver onto the base.

3. After directly soldering the wires, cover the motor with the lid; M5stack can be fixed with M2 screws. If you use Dupont connectors, the lid will be too small and unsuitable.

Connecting the Microcontroller

Creative Playing Card Clock Based on ESP32

Controller selection 1. Use ESP8266/ESP32 module to collect WiFi clock code.

2. Use any microcontroller with 12 or more GPIO ports to control three stepper motors; I used M5stamp-C3.

Connection method for M5stamp-C3

Creative Playing Card Clock Based on ESP32

1. Connect the four pins of the first (minute display) motor to G4, G5, G6, G7 respectively.

2. Connect the four pins of the second (ten-minute display) motor to G0, G1, G8, G10 respectively.

3. Connect the four pins of the third (hour display) motor to G9, G18, G19, G21 respectively.

4. Connect 5V and GND to the microcontroller, where M5stamp-C3 has three pairs of 5V and GND.

Flashing Source Code and Flash

Creative Playing Card Clock Based on ESP32

Testing

Here are two types of test codes: testing each clock unit and testing all three units driven simultaneously. 1. Enter the card order into the source code.

2. If you are using a microcontroller other than M5stamp, please edit the port assignment.

3. Use Arduino IDE to refresh the code.

4. Before using clock.ino, confirm the card order is correct using single-unit-test.ino. Because the clock code is too slow to check all cards.

Clock

1. Copy the card definitions from the test code to clock.ino.

2. Use Arduino IDE to flash clock.ino to the microcontroller.

3. Use SmartConfig to configure SSID/password.

You can use a smartphone app to set your WiFi SSID and password. The app name is SmartConfig, and the installation methods are as follows.

Android: https://play.google.com/store/apps/details?id=com.khoazero123.iot_esptouch_demo iOS: https://apps.apple.com/jp/app/espressif-esptouch/id1071176700

Please note that your smartphone should be connected to 2.4GHz WiFi.

The LED color display on M5stamp (clock.ino)

Green: Initializing rotor (counterclockwise rotation). Blue: Connecting to WiFi stored in memory before. Red: smartConfig mode. If the WiFi connection fails, it enters this mode. LED off: clock operation mode.

Test files can be downloaded from the project file library: https://make.quwj.com/project/420

Now, this project is complete, and I hope you like this flipping playing card clock.

via instructables.com/Casinoclock/

Click the link at the end of the article to read the original text

Creative Playing Card Clock Based on ESP32

More exciting content

DIY Magical Thermochromic Clock

Neowave: RGB WiFi Colorful Mood Light

DIY Soldering Blower, Protecting Electronic DIYers

TFT Touch Screen + ESP8266 Making Weather Clock

Elegantly Using 4G Module on Raspberry Pi CM4

Making a Clock with Only Hands and No Dial using Stepper Motor

Mechanical Wooden Clock Driven by Arduino Stepper Motor

PiCalc: DIY OLED Screen Calculator Based on Raspberry Pi Pico

Walking Robot Made with ESP32, Supporting Network Image Transmission

Leave a Comment

×