Basically I have an arduino uno switching 8 relays controlling 8 120v outlets. I am confident with the code but with the high voltage hooked up to the relays witch control 8 air bags under a room. We have the high voltage in the same control box as the low with the uno. We are using the internal pull up resistors. We have even tried external pull down resistors. Could having the uno in the same box with the switching 120 volts be causing the program to loop? Causing a false signal to the input pin?
We don’t know the connections btw the Arduino and the relay nor any possible path to the HV. We don’t know what the error condition is, other that some loop gets executed when it shouldn’t. We don’t know the code or the input triggers that are supposed to make some loop execute (or not).
Relays cause voltage spikes when turned off, what have you done to damp these ? What kind of current are you switching on the HV side when whatever problem you’re seeing occurs ?
We don’t know the connections btw the Arduino and the relay nor any possible path to the HV. We don’t know what the error condition is, other that some loop gets executed when it shouldn’t. We don’t know the code or the input triggers that are supposed to make some loop execute (or not).
Relays cause voltage spikes when turned off, what have you done to damp these ? What kind of current are you switching on the HV side when whatever problem you’re seeing occurs ?
How are you switching the relays? I strongly suggest at the least, free-wheeling diodes at the relay, or at the best opto-isolation.
The relays are a sain smart board and they are opto iso. I would put up the code if I could. It runs great outside of the control box we have it in.