Ok I am sure you guys get a ton of these newbie questions but I am working on project that I need some help with. First off… I am very new to this and still dont fully grasp the concept of coding. I am trying to learn but it is slow process.
Here is my project:
I have a display that will be running 6 different LED projectors inside of a display case. Each projector will be using the supplied power adapter but I need to sequence the projectors to turn on individually for a undetermined amount of time by pressing a momentary switch. This is where the Arduino comes in. I will be using 8 channel relay module to interrupt the power going to each projector. And will use the Arduino to control the relay module.
Now I understand the concept of a simple relay. But my question comes with the coding… I think I have found the basic setup code to run the relay module indefinably but I need to know what coding is needed to enable the me to put a switch into circuit that will start a loop. And when that loop is finished the loop will stop and wait for another button press.
I have (I think) attached the code I am working with. I found it surfing the net and I think I have modified it to work with the relay module.
Please can anyone help a newbie out…
_6Chan_relay_controller_w_pushbutton.ino (2.57 KB)