Tarantula3DIYables
Published

DIY - Pendulum Clock

A pendulum clock is a clock that uses a pendulum, a swinging weight, as its timekeeping element.

BeginnerProtip4 hours636
DIY - Pendulum Clock

Things used in this project

Hardware components

Starter Kit
DIYables Starter Kit
×1

Story

Read more

Schematics

26_sYwK7ji2WR.png

Code

Code.ino

Arduino
#include <Servo.h>        // Include the Servo library 
int servoPin = 2;         // Declare the Servo pin 
Servo S1;                 // Create a servo object 

void setup() { 
   // Attach the servo to Arduino Nano 
   S1.attach(servoPin); 
}

void loop(){ 
   // Move the Servo Left
   S1.write(95); 
   delay(400);
 
   // Move the Servo Right 
   S1.write(112); 
   delay(400); 
}

Credits

Tarantula3

Tarantula3

62 projects • 82 followers
There were 1000+ sperms but I was the fastest one..
DIYables

DIYables

0 projects • 64 followers
I would like to invite you to join and add your projects to DIYables platform https://www.hackster.io/diyables

Comments