I am looking for programming advice.
I am assuming Python may be the easiest since I am new to this a bit.
I am looking for a way to program the RPI GPIO to control a set of goal lights.
There will be two lights (Left and Right) which will be triggered via two GPI's on the RPI.
Each of the two relay outputs will be tied to their respective GPI.
When a GPI is pressed the corresponding relay is to fire and hold closed for 20 seconds.
While the relay is being held closed additional button presses are to ignored as to not restart the initial timer.
After the 20 seconds have passed the output relays can be triggered once again.
I have attached a small image illustrating the setup.
If anyone has advice or even better a small programming example to accomplish this it would be greatly appreciated.
Trying to get a few things upgraded for our local sporting arena.