Trainset info,
Turnout 1 = relay 1 - makes turnout track go left
= relay 2 - makes turnout track go right
Turnout 2 = relay 3 - makes turnout track go left
= relay 4 - makes turnout track go right
Signal 1 = relay 5 - makes signal go green - train 1 starts driving
= relay 6 - makes signal go red - train 1 stops for signal
Signal 2 = relay 7 - makes signal go green - train 2 starts driving
= relay 8 - makes signal go red - train 2 stops for signal
I have a arduino - uno and a 8 relay board. I want to run a program (loop) for 1/2 hour / 1800 seconds. Switching time should be 2 seconds (relay ON)
Can somebody help me with a millis code please.
Loop times should be:
relay 1 = (2),1250,(2),546 - total 1800 seconds
relay 2 = 620,(2),630,(2),546 - total 1800 seconds
relay 3 = 10,(2)1260,(2),526 - total 1800 seconds
relay 4 = 630,(2),640,(2),512 - total time 1800 seconds
relay 5 = 20,(2),1270,(2),505 - total time 1800 seconds
relay 6 = 600,(2),750,(2),446 - total time 1800 seconds
relay 7 = 640,(2),640,(2),516 - total time 1800 seconds
relay 8 = 1240,(2),450,(2),106 - total time 1800 seconds
Regards, Martinus van Walsum xxxxxxxx@xxxxxxxx.com
BlinkWithoutDelay
example, which shows, how this coding style works? Have you read some of the many tutorials for this on the web? Currently I don't know, how I could help you, without having to write the whole code myself. – chrisl Nov 16 '18 at 9:37