stevecast2024:
Hello,
I would like to start of by saying that I am new to Arduino but have worked with controls and contact closures for years. In the past I used PICO controllers to handle applications where I needed multiple relay closures with different timings. I am hoping the Arduino route is a more cost effective and hands on way to accomplish the same task.I have an UNO and an 8 relay board that activates when a pin is brought low. This works great but the problem i have is figuring out a script to do the following:
PIN 2 = INPUT
PIN 13 = OUTPUT - Relay 1
PIN 12 = OUTPUT - Relay 2The logic is that upon giving 5 volts to PIN 2 I would need Relay 1 to close for 5 Seconds and Relay 2 to close for 120 Seconds.
This would translate to a Bell ringing for 5 seconds and LED's that are mounted in the station to be activated for 120 Seconds.
The issue that I have seen in everything that I have read is that using DELAY will only allow one function to happen which would not work for me in this case. If somebody could point me to some documentation, or provide some code to get started on this I would be very grateful. It seems as though the logic is very simple but maybe I am just looking way to deep into this.
Steve
I don't want to be rude.
I would not trust an Arduino for implementing a real fire station alerting system, unless you are just researching or experimenting. But you know these kind of products need to be robust against failure, certificated, guaranteed and all that stuff.