Introduction: Arduino Clock V.2.0
This instructable is the second version of Arduino clock.
In this update many things including the structure, the motor
and the code has changed, but the method of displaying time has
not been changed. Each division for example between 1 and 2 there are further five divisions
representing ten minutes each. In this project I have used a DC GEARED MOTOR because
it is more accurate than a dc motor and does not have drifts. I have not used a stepper motor
because it makes a lot of noise. In this clock the needle is stationary and the main dial or
the barrel rotates.
I hope you enjoy the project
Step 1: Material Required
- a dc geared motor 20RPM at 12v will be ideal
- Arduino UNO
- few breadboard or jumper wires
- 5v voltage regulator.
- thick paper
- card board
- small MDF piece 7*9 cm
- a small wooden cuboid 4*1*1 cm
- thin sheet of metal or cardboard for making the needle ( I have used a small piece of an old can)
Step 2: Making the Dial
-For making the dial first cut 2 circles from cardboard of radius 5.70 cm.
- make a hole in centre of one of the circles for motor attachment
-Next cut a strip of paper 7cm wide and 37cm in length.
- on the paper mark 12 divisions of 3cm and one of 1cm horizontaly
- further divide each division six division of 0.5 cm
-mark the digits as shown in the picture
- make 1cm thick line on both sides along the lenght of the paper.
- paste the two ends of the paper with the 1cm margin.
- cut slit 1cm deep along the length and fold inwards
- put some glue on the flaps and paste onto the circle.
- repeat the same for the upper side
Now you have a drum like structure this is the dial of the clock
Step 3: The Stand and Needle
For making the stand take the MDF piece and drill holes to fix your motor. Fix the motor with screws.
This is the main movement of the clock.
Now glue or tape the metal or cardboard needle to the wooden block as shown in the picture
Attach the wooden block to the base
Base is now ready.
Step 4: Connections
Connecting l293D to Arduino
- Pin 1 of l293D to enable (+ terminal of battery)
- pin 2 of l293D to pin 3 Arduino
- pin 3 of l 293D to pin motor
- pin 6 of l293D to pin motor
- pin 4,5,12,13of l293D to ground (- terminal of battery)
- pin 7 of l293D to pin 4 Arduino
- pin 8,9 of l293D to (+ terminal of battery)
- pin 16 of l293D to (+ terminal of battery)
Connect motors to 3 and 6 pin of the ic
NOTE: DO NOT CONNECT THE MOTOR DIRECTLY TO ARDUINO. IT WILL DESTROY YOUR IT.
Connecting battery to Arduino via 5v voltage regulator
Input to + terminal of battery
Ground to - terminal of battery
Output to 5v Arduino pin
It is adviced to use two seperate batteries powering Arduino and motor
but I have used a 12v adapter to supply power
Step 5: Coding the Arduino
We have a be nice policy.
Please be positive and constructive.