I am not a programmer, and I need a solution quickly, so I don't have time to troubleshoot and learn the programming necessary to make it work. So, anyone that can write me a program and send it to me I would truly appreciate.
I purchased an ARDUINO Uno, and I hope that it will work for the following application.
I'm going to provide as much information as I can here, but if you have a questiopn, please send me an e-mail.
Bob@benchmark.us.comI have attached a Rendering of what we are building, and a basic wiring schematic.
Pit Crew Challenge Lights and Timers
Inputs: (4) N.O. Momentary push button
Start Button = StartButton
Reset Button = ResetButton
Stop Button for Player 1 = StopButtonP1
Stop Button for Player 2 = StopButtonP2
Outputs: (7) 12VDC LED Lights
YellowLight1
YellowLight2
YellowLight3
GreenLightP1
GreenLightP2
RedLightP1
RedLightP2
Outputs: (4) Momentary Closed Contact
TimerStartStopP1
TimerStartStopP2
TimerResetP1
TimerResetP2
The TIMERS are stand alone units. The START and STOP are the same input, and just require a momentary closed circuit, so the output for Start and Stop are the same.
The RESET also just requires a momentary closed contact.
Start - When the operator presses the StartButton, The yellow lights light in order 1,2,3, with a 1 second delay between, then the yellow lights go off and the Green lights come on - at the same time the (2) timers are started.
This is to simulate the starting lights at a Drag Race.
if (StartButton) //is pressed
YellowLight1 = ON
wait 1 second
YellowLight2 = ON
wait 1 second
YellowLight3 = ON
wait 1 second
YellowLight1 = OFF
YellowLight2 = OFF
YellowLight3 = OFF
GreenLightP1 = ON
TimerP1 = START
GreenLightP2 = ON
TimerP1 = START
Once the timers are started, the 2 contestants need to complete their task, when they have finished, they press their STOP button.
When one of the contestants presses their STOP button, that players timer is stopped, their GREEN light goes off and their RED light comes on.
The other contestants timer continues to run and their GREEN light remains illuminated until their STOP button is pressed.
loop //wait for player input
if (StopButtonP1) //is pressed
TimerStartStopP1 = STOP
GreenLightP1 = off
RedLightP1 = ON
if (StopButtonP2) //is pressed
TimerStartStopP2 = STOP
GreenLightP2 = off
RedLightP2 = ON
RESET - When the round is over (Both timers are stopped and both RED lights are illuminated) The operator presses the RESET button. Both Timers are RESET to 00:00 and all of the lights are off.
if (ResetButton) //is pressed
RedLightP1 = OFF
TimerResetP1 = Reset
RedLightP2 = OFF
TimerResetP2 = Reset