"Gear" Clock

by Yoshi_ceo in Workshop > 3D Printing

211 Views, 1 Favorites, 0 Comments

"Gear" Clock

IMG_3270.JPG
IMG_3271.JPG
IMG_3273.JPG

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

ArduinoUNO.jpg
MiniServo.jpg
Hw-084a.jpeg
JumperWires.jpg

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

Screenshot (186).png
Screenshot (187).png
Screenshot (188).png
Screenshot (189).png

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

Screenshot (191).png
Screenshot (192).png
Screenshot (193).png
Screenshot (194).png
Screenshot (195).png
Screenshot (196).png
Screenshot (197).png
Screenshot (198).png

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

Screenshot (190).png

Make sure the clock hands fit into the gears, or not.

Wiring

Screenshot (200).png
Screenshot (202).png
Screenshot (201).png
IMG_3273.JPG
IMG_3271.JPG

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

Screenshot (203).png

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>

The End

IMG_1994.JPG

Congratulations. You've made it to the end. Goodbye.