Hi everyone. I'm new with arduino's and thought I would start a project that is clearly above my head. I have built a Hot Wheels drag race track that has 4 lanes on a ramp. The track starts with a start button and when that is pressed the servo at the start line opens and and wait 1.5 seconds then close, at that same time a stopwatch starts timing the race. There are 4 photoresistors at the finish line and that tracks the position of the 4 racers on 4 separate 7-segment displays. Also, when the first car passes the finish line it will display the time on another 4 digit 7-segment display. when the race is over i can press a reset button to zero everything out.
I have been able to code the servo dropping and resetting but my abilities end there. Is there any way someone could help me out with the rest? I know it will included booleans and I will be using 47hc595 chips for the 7-segment displays. I know how to wire the chips but I don't understand how to code it all.
My requirements are as follows:
StartButton on pin 2
ResetButton on pin ??
Servo on pin 3
Photoresistors will be on analog pins a1 thru a4
everything else if up in the air.
The attachment is all I have so far.
So how about it?!! Can the Arduino community help??!!
servo2.ino (714 Bytes)