"Gear" Clock
This is an unfinished assignment I had to do for my Engineering class. Essentially, this is an analog clock that tells time using servos connected to an Arduino and powered by batteries (the gears are mostly for show). I couldn't decide whether to add the files or not but my laziness is getting the better of me. This project is largely unfinished so feel free to do what you will. (I will not be going back to add more things).
Supplies
1 Arduino UNO
2 servos
1 DS3231 RTC chip (Hw-084a)
Lots of jumper wires
Some kind of adhesive (I used superglue & hot glue)
Design the Case
I designed everything in Tinkercad because it's super easy and I don't like SolidWorks. (The case might not be big enough for your 3D printer) You can change the case however you want, I really don't care. There has to be holes for the gears and rectangular holes for the servos to go through but not fully. To elaborate, the hole is small enough for just the top of the servo to go through.
Design Gears
The gears vary in size and there's no way Two of the gears (The last two images) have to have notches at the top and bottom, one for the clock hands and another for the tip of the servos.
Design Clock Hands
Make sure the clock hands fit into the gears, or not.
Wiring
There's no way I'm going to put everything into text so just have these images. (Ignore the red RTC chip in the first image)
Coding
The whole code is in the attached pdf but I don't think the spaces and indents come out right if you copy and paste.
The words in the <> brackets are different libraries that you must have in order for the code to work, they can be found in the actual Arduino application when coding under tools in Manage Libraries.
#include <Servo.h>
#include <Wire.h>
#include <TimeLib.h>
#include <DS1307RTC.h>
Downloads
The End
Congratulations. You've made it to the end. Goodbye.