DIY - Pendulum Clock
A pendulum clock is a clock that uses a pendulum, a swinging weight, as its timekeeping element. The advantage of a pendulum for timekeeping is that it is a harmonic oscillator: it swings back and forth in a precise time interval dependent on its length, and resists swinging at other rates. From its invention in 1656 by Christiaan Huygens until the 1930s, the pendulum clock was the world's most precise timekeeper, accounting for its widespread use.
For this project we need:
Protective equipment like:
Handsaw or Chop-saw
and Paint of your choice
For the electronics bit we need:
1 x Arduino Nano
1 x Servo Motor
1 x 18650 Battery or a 5v DC Buck Step-Down Module
1 x Battery Protection Board
1 x SPDT Switch
1 x Generic PCB
and General Soldering Equipments
Lets start the project by sanding the planks to give them a nice and smooth texture.
Next using a chop-saw, I am cutting the two sides, bottom and the top sections of the clock.
Once all the sides are ready its time for me to join them all together. At first I just used nails but soon I realized that it was not a good idea to have just nails to hold the sides. So, I went ahead and added screws to give the sides an additional support.
Using an edge decorative stick I am preparing the roof of the clock.
And using some of the leftover wooden blocks from my last project, I am preparing the base of the clock.
To fill in the gaps, I am adding a bit of PoP to the groves. However, as we all know two dis-similar materials like wood and plaster expand and contract at different rates. For any sort of permanence you need to isolate the movement of each relative to the other. This problem is commonly encountered when you paint the siding on a house. However, this clock is not going to move a lot and will not be placed outside the house so adding a bit of PoP would not really matter as long as I seal it properly.
I am preparing the dial of the clock using a board extracted from a broken chest's drawer.
My plan is to have a dark colored dial and a light colored housing for it. So, I am painting the dial black.
Now, for the numbering bit I am using a printed sheet as a stencil to transfer the numbers from the sheet over to the circular board.
Once all the numbers are transferred I am painting the graphite impressions with white color.
Designing the Pendulum
This is how I have created the pendulums circuit.
Connect the servo to any one of the digital pins of the Arduino. Then connect the -ve to GND and +ve to the 5V output of Arduino.
Finally connect the -ve wire of the battery to GND and +ve to the VIN pin of Arduino placing the switch in the middle of the circuit.
This circuit diagram is for the pendulum only.
The code is very simple.
Start by including the "Servo.h" library.
Then declare the servo pin.
And then, create a object of the Servo class.
In the "setup()" section attach the servo to the Arduino's pin.
And, finally in the "loop()" section we just need to move the servo left and right.
I will start by soldering the Arduino to the circuit plate.
Then, I am connecting the Servo to the digital Pin D2 and the -ve to GND and +ve to the 5V output of Arduino.
After that, I am connecting...Read more »