I will show you how to make your own Arduino two digit countdown timer. We will be able to set the timer by pressing the setup buttons. We will use two digits seven segment display, so the maximum countdown time will be 99 seconds.
Watch the video below:
Step 1: What You Need?
1 x Arduino UNO R31 x Mini Breadboard
2 x 7 Segment Displays (You can use common cathode or common anode type)
3 x Buttons
1 x USB Arduino Cable
Wires
1 x Computer with Arduino Software installed
Don't have components? Don't worry. Just click the component's name.
Step 2: Built Your Circuit.
- The segments A-G:
A, B, C, D, E, F, G >> 10, 9, 8, 7, 6, 11, 12
- CC* or CA* pins of 7 Segment Displays >> Arduino pin 4 & 5
- Start/Stop button >> pin 2
- Change button >> pin 3
- Set button >> pin 13
- Dot pin of RIGHT digit >> pin A0
- Dot pin of LEFT digit >> pin A1
*CC- Common Cathode
*CA- Common Anode
(NOTE: You can connect one 220 Ohm resistor to each pin - except "CC" or "CA" if you want.)
Step 3: Upload Code To Board.
(NOTE: If you have Common Anode 7 Segment Display type just delete the line 24 "disp.setCommonCathode(),")
Download:
Arduino software
Sources:[http://www.instructables.com/id/Arduino-Countdown-Timer-With-Setup-Buttons/]
Sources:[http://www.instructables.com/id/Arduino-Countdown-Timer-With-Setup-Buttons/]
please help me
ReplyDeleteits not working ........
i think the circuit diagram is wrong as the red wire at bottom is connected to no where (5v input from arduino board)