A Mixed Generation Clock
![IMG_20180731_011357.jpg](/proxy/?url=https://content.instructables.com/FC5/VN8N/JK8K47C8/FC5VN8NJK8K47C8.jpg&filename=IMG_20180731_011357.jpg)
Hi all,
Started this project 1 month back, because of my bad health (Got caught by dengue) it took a longer time. I normally make Arduino based project, so to do a clock project was quite interesting.
To make an interesting project I checked a lot of clock-related projects and clock faces, and finally came up with making a mix generation clock.
It contains a minute sandglass, a 90-degree watch dial to give the hour and 2 seven segment display to show the minutes.
Let's build it.
Materials Required
- 4 Piece 1cm * 3cm * 8cm (h*w*l) wood block. with.
- Icecream sticks.
- 2 piece of 180 servo motor
- 2 piece of seven-segment display.
- Wood drill machine.
- Ardunio nano.
- Power supply 5v 1Amp.
- Sapre wood pieces.
- Female to Female cable.
- Sandglass of one minute.
Setting Up Sand-glass and Servo
![IMG_20180715_224229.jpg](/proxy/?url=https://content.instructables.com/F5X/EZYY/JK8KBDQK/F5XEZYYJK8KBDQK.jpg&filename=IMG_20180715_224229.jpg)
![IMG_20180715_224223.jpg](/proxy/?url=https://content.instructables.com/FXR/UQGM/JK8KBDQP/FXRUQGMJK8KBDQP.jpg&filename=IMG_20180715_224223.jpg)
![IMG_20180715_224928.jpg](/proxy/?url=https://content.instructables.com/FIS/GBVQ/JK8KBDQZ/FISGBVQJK8KBDQZ.jpg&filename=IMG_20180715_224928.jpg)
![IMG_20180810_134003.jpg](/proxy/?url=https://content.instructables.com/FIN/ZNA2/JKN8OSBX/FINZNA2JKN8OSBX.jpg&filename=IMG_20180810_134003.jpg)
![IMG_20180810_134009_01.jpg](/proxy/?url=https://content.instructables.com/FVL/LP9T/JKN8OS90/FVLLP9TJKN8OS90.jpg&filename=IMG_20180810_134009_01.jpg)
![IMG_20180810_134023.jpg](/proxy/?url=https://content.instructables.com/F2Z/31KP/JKN8OS64/F2Z31KPJKN8OS64.jpg&filename=IMG_20180810_134023.jpg)
![IMG_20180810_134112.jpg](/proxy/?url=https://content.instructables.com/FK8/TA2K/JKN8OS2N/FK8TA2KJKN8OS2N.jpg&filename=IMG_20180810_134112.jpg)
![IMG_20180810_134237.jpg](/proxy/?url=https://content.instructables.com/F1Q/ACMA/JKN8OS4C/F1QACMAJKN8OS4C.jpg&filename=IMG_20180810_134237.jpg)
- Make a square hole in one of the frames so that it can easily attach to the servo.
- mark the servo outline put it on wood, and make whole near to each other using a drill.
- Secure the servo using some hot glue or super glue.
- Created a small box same size as sandglass.
- Attached servo gearhead in the middle of the box as shown in the figure.
- Made a small hole in another side of the box so that it will give space for the screwdriver to mount the box to the servo.
- Attach the servo pin to pin number 12 of Arduino.
- Run the attached code.
- Send 0 and 180 in the serial monitor and check for sandglass rotation.
- Fix the flaws if any.
Downloads
Make the Frame
![IMG_20180715_225858.jpg](/proxy/?url=https://content.instructables.com/FUT/3WAC/JK8KBDQR/FUT3WACJK8KBDQR.jpg&filename=IMG_20180715_225858.jpg)
![IMG_20180719_013656.jpg](/proxy/?url=https://content.instructables.com/FZL/N2FH/JK8KBDR2/FZLN2FHJK8KBDR2.jpg&filename=IMG_20180719_013656.jpg)
![IMG_20180719_013505.jpg](/proxy/?url=https://content.instructables.com/F5E/0MT9/JK8KBDRI/F5E0MT9JK8KBDRI.jpg&filename=IMG_20180719_013505.jpg)
- Now attach other wood pieces and make it a square box.
- Decide the second servo position for hour dail.
- Use ice cream stick to cover the front face.
Make the Dail
![IMG_20180719_013505.jpg](/proxy/?url=https://content.instructables.com/F5E/0MT9/JK8KBDRI/F5E0MT9JK8KBDRI.jpg&filename=IMG_20180719_013505.jpg)
![IMG_20180719_013528.jpg](/proxy/?url=https://content.instructables.com/F71/ZC9A/JK8KBDRB/F71ZC9AJK8KBDRB.jpg&filename=IMG_20180719_013528.jpg)
![IMG_20180719_014423.jpg](/proxy/?url=https://content.instructables.com/FRR/SFQW/JK8KBDSS/FRRSFQWJK8KBDSS.jpg&filename=IMG_20180719_014423.jpg)
![IMG_20180719_014639.jpg](/proxy/?url=https://content.instructables.com/FHA/OH9R/JK8KBDSK/FHAOH9RJK8KBDSK.jpg&filename=IMG_20180719_014639.jpg)
![IMG_20180719_014649.jpg](/proxy/?url=https://content.instructables.com/FO2/2G5R/JK8KBDSG/FO22G5RJK8KBDSG.jpg&filename=IMG_20180719_014649.jpg)
- With help of super glue attach the servo head to it.
- Then use the attached program, open the serial monitor of the Arduino app.
- Send 0,8,16,24,32,40,48,56,64,72,80,88,96 one by one and set the wood piece.
- These are the 12 intervals of the clock with each 8 degrees difference.
- Servo signal pin is attached to pin 12, you can change accordingly to set the dial.
Downloads
Seven-segment Display for Mins
![IMG_20180719_023121.jpg](/proxy/?url=https://content.instructables.com/F7L/K9CW/JK8KBDQM/F7LK9CWJK8KBDQM.jpg&filename=IMG_20180719_023121.jpg)
![IMG_20180719_023141.jpg](/proxy/?url=https://content.instructables.com/FES/LR94/JK8KBDQI/FESLR94JK8KBDQI.jpg&filename=IMG_20180719_023141.jpg)
![SevenSegmentDisplay.PNG](/proxy/?url=https://content.instructables.com/F18/2PH8/JKN8OWYD/F182PH8JKN8OWYD.png&filename=SevenSegmentDisplay.PNG)
- Using the drill with the smallest drill bit create whole in the front face.
- 10 in the upper row and 10 in the lower row.
- So that 2 seven segment display can slide easily and after that use the super glue to fix it.
- By this time we are done with the whole clock.
- Now we need to set the seven segment display.
Pins of two seven segment display.
static const uint8_t digital_pins[] = {2, 3, 4, 5, 6, 7, 8};
static const uint8_t analog_pins[] = {A0, A1, A2, A3, A4, A5, 9};
1st seven segments: a,b,c,d,e,f,g pins of the diagram will be connected to 2, 3, 4, 5, 6, 7, 8 pins of the Arduino.
2nd seven segments: a,b,c,d,e,f,g pins of the diagram will be connected to A0, A1, A2, A3, A4, A5, 9 pins of the Arduino.
Run the code and check if it is blinking 9 to 0 properly or not.
Downloads
Assemble All
![IMG_20180731_011357.jpg](/proxy/?url=https://content.instructables.com/F20/UHH5/JK8KBDQ7/F20UHH5JK8KBDQ7.jpg&filename=IMG_20180731_011357.jpg)
![IMG_20180731_011357.jpg](/proxy/?url=https://content.instructables.com/FV2/3F1S/JK8KBDQ3/FV23F1SJK8KBDQ3.jpg&filename=IMG_20180731_011357.jpg)
- Once everything is assembled the clock will look like as per the image.
- Pin 12 for hour hand servo.
- Pin 11 for sandglass servo.
- Other pins are same as per seven-segments pins.
- Set time by changing the values of below number in the program.
- int hours = 1;
- int minutes = 9;
- int sec = 0;