Arduino Clock V.2.0

7,108

157

20

Intro: Arduino Clock V.2.0

Hi
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

Technical part
- a dc geared motor 20RPM at 12v will be ideal
- Arduino UNO
- L239D
- breadboard
- few breadboard or jumper wires
- 5v voltage regulator.

Mechanical part
- 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)
- glue

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

int in1=3;

int in2=4;

void setup()

{

pinMode(in1,OUTPUT);

pinMode(in2,OUTPUT);

}

void loop()

{

digitalWrite(in1,HIGH);

digitalWrite(in2,LOW);

delay(2);

digitalWrite(in1,LOW);

digitalWrite(in2,LOW);

delay(60000);

}

Share

    Recommendations

    • Tiny Home Contest

      Tiny Home Contest
    • Fix It! Contest

      Fix It! Contest
    • Furniture Contest 2018

      Furniture Contest 2018

    20 Discussions

    0
    None
    GarthBock

    2 years ago

    Very nice ! I hope this project continues to evolve because this would make a very unique clock.

    4 replies
    0
    None
    pieterg

    2 years ago

    really nice, especially the concept is really creative! vote well earned!

    2 replies
    0
    None
    kd7eir

    2 years ago

    Very nice project. Thank you for sharing.

    0
    None
    alexpikkert

    2 years ago

    Hi pj200?,
    Can you please explain your Arduino program? (why do you write 2x a LOW instruction to the same pin?) and maybe some details on the motor type ?
    Very nice clock project !

    4 replies
    0
    None

    hi alexpikkert

    I have used a geared 20rpm motor which driven a 2000 rpm motor and want do you want to know about the code I can't understand

    And thanks for the appreciation

    0
    None

    Hi pj200?,
    Thanks for the motor details, now I understand.
    About the code:
    I see you set int2 to LOW two times with only a delay of 2 msec in between, I think this is not neccessary, the second time could just be deleted or not ?

    0
    None
    alexpikkertalexpikkert

    Reply 2 years ago

    I mean this code, can you please try if it works?

    int in1=3;

    int in2=4;

    void setup()

    {

    pinMode(in1,OUTPUT);

    pinMode(in2,OUTPUT);

    digitalWrite(in2,LOW);

    }

    void loop()

    {

    digitalWrite(in1,HIGH);

    delay(2);

    digitalWrite(in1,LOW);

    delay(60000);

    }

    0
    None
    the Make Club

    2 years ago

    Cool! Can I see your motor? I do lots of clocks and would like to try this one

    1 reply
    0
    None
    MarPok

    2 years ago

    Brilliant idea!

    Thanks for sharing

    0
    None
    Candy Cane

    2 years ago

    This is really neat! I've never seen such a unique clock.

    0
    None
    onlynoise

    2 years ago

    Nice idea.
    It could use a little more finishing touches.