garysat
Published © GPL3+

Mechanical Arduino Clock

This project is a mechanical clock using an Arduino uno, and servos to move hands around the dial.

BeginnerShowcase (no instructions)5,781
Mechanical Arduino Clock

Things used in this project

Hardware components

Arduino UNO
Arduino UNO
×1
SG90 Micro-servo motor
SG90 Micro-servo motor
×2
Jumper wires (generic)
Jumper wires (generic)
×1
Two CDs to use for mounting clock hands
×1
Miscellaneous supplies, foam board, thin spring steel, glue, cardboard
×1

Software apps and online services

Arduino IDE
Arduino IDE

Hand tools and fabrication machines

Hot glue gun (generic)
Hot glue gun (generic)
File, sander or saw.

Story

Read more

Schematics

mechanical clock

Code

CLOCK

Arduino
#include <Servo.h>

Servo myservo1;
Servo myservo2;



int pos = 0;    

void setup() {
  myservo1.attach(9); 
  myservo2.attach(10); 
}

void loop() {
  for (int n=0;n<=5;n++){
  
    myservo1.write(99);
      delay(1000);                  
    myservo1.write(65);
    delay(57000);
  }
    myservo2.write(70);
  delay(100);
    myservo2.write(20);           
    delay(1000);      


}

Credits

garysat

garysat

4 projects • 36 followers

Comments