Introduction: Arduino 7-Seg Display Clock
This is an Auduino clock made with the Sunfounder kit. This is a really cool project and easy to make!
Step 1: Materials
Only 9 materials are required for assembling the arduino powered clock
- USB cable
- Wire connectors
- Cardstock box
- Seven segment display
- Battery pack
- Arduino Library/Program
Step 2: Wiring
The trickiest part here is to try to get the wires to be organized and to make sure that they are secure and in the right spot, each wire needs to correspond to the correct pins in the seven segment display that match their assigned spots in the arduino. To make this simplest, once you've matched each wire to a port in the arduino, write down the corresponding spots, for examble -
Pin d4 to port 5
Pin d3 to port 4
And so on until you have a list of all the display pins with corresponding port numbers, this will make things easier once you start doing the programming!
If you'd like to make your clock easy to set, then using your breadboard and the third and fourth pictures you can wire up two push button switches to control the hour and minute buttons.
Step 3: Programming
Programming may be the hardest and most time consuming step in assembling your clock. First you need access to the arduino library, which can be found using GitHub, a convenient site/program that allows people to share their coding with others. Once on the website simply search for a seven segment arduino clock repository, in which you can insert the corresponding pin and port list to create your own programs!
Step 4: Assembly
You're so close! Now that we'd done the hard steps like the wires and coding, all you have left to do is set up the components inside your clock! In the picture we've used a discarded sunfounder kit box, but you can use any sort of container or even make your own, as long as it's thin enough to insert the pins of your seven segment display through the material.
- Once you've mounted the seven segment display, attach your assigned wires to the pins
- If the connection is loose, use tape to keep the wires in place
- Attach the opposite ends of the wires to the assigned ports in the arduino.
- Mount the arduino and breadboard with push buttons (optional) onto the bottom of the container
- Using a USB cord, attach your arduino to a battery pack
- Close the box, turn on the battery pack and enjoy your new clock!