2021 Jun 28, 12:22 PM
Removed the secondary power supply from the BOTTOM POWER RAIL.
Good.
Removed the GND wire from the TOP to BOTTOM POWER RAIL.
Good
Removed the GND wire from the SHIFT REGISTER(s) to the BOTTOM POWER RAIL.
Good, but you should connect it to the upper GND rail, otherwise the hc595 doesn't get power
Removed the PURPLE wire from PIN 13 of SHIFT REGISTER to TOP RAIL GND.
Reconnected PURPLE wire from Pi to PIN 13 of SHIFT REGISTER.
That's up to you. When using these registers there is no need to disable them so you could hard-enable them bij pulling P13 low or let the software control the status. Personally I would hard-wire it just to elliminate a potential unwanted external factor.
DID NOT connect power to JD-VCC and GND of RELAY MODULES.
Good, only when the (opto)led's works flawless the proceed to the next step
Turned the Pi on and waited for everything to boot up and get running.
Unplugged and plugged in the USB fan connected to the UPS surge protected outlet.
The optocoupler(s) did not trigger.
Accessed SIP web interface and scheduled a RUN ONCE for one of the zones. The associated optocoupler DID NOT trigger. Tried several with no success.
Expected, you didn't connect the hc595 to the GND of the Pi
Powered everything down and reattached the GND wires from the SHIFT REGISTER(s) to the BOTTOM POWER RAIL and the GND from the TOP to BOTTOM POWER RAIL.
Turned the Pi on and waited for everything to boot up and get running.
Accessed SIP web interface and scheduled a RUN ONCE for one of the zones. The associated optocoupler TRIGGERED.
Electrically ok but looking at the detailed foto it's a lot of spahgetti wiring. Remember, all wires are also antenna's and when not decoupled they pick up a lot of noise and spikes which can result in unwanted triggers/commands to the registers.
Unfortunately when I unplugged and plugged in the USB fan connected to the UPS surge protected outlet the optocoupler(s) started to trigger.
We have to figure out which wires (antennas) pick up these signals. I'm thinking of:
- is it coming through the psu/adapters? Most adapters have a bad or no EMI filtering. The UPS does surge protection but I doubt if ther is sufficient EMI filtering. You could test this by putting all non essential psu's away (far in front) of the ups.
- The power wires to the Pi are close to the ups, fan and other components. Decoupling (with 0.1 caps) might help
- Although Dan acknowledges the Pi pin initialisation I'm not so sure if the internal pull-up resistors are enabled. To be sure you coud add on pin 11, 12, 14 on the hc595' a resistor of 4k7 or 5k6 to +5v
- On your foto I can't see my earlier suggestion of the 100 Ohm resistor in series with pin 12 of the hc595. Together with the previous suggestion (and neatly ordering the spahgetti) I'm really interested in the results.
--Gerard
Good.
Removed the GND wire from the TOP to BOTTOM POWER RAIL.
Good
Removed the GND wire from the SHIFT REGISTER(s) to the BOTTOM POWER RAIL.
Good, but you should connect it to the upper GND rail, otherwise the hc595 doesn't get power
Removed the PURPLE wire from PIN 13 of SHIFT REGISTER to TOP RAIL GND.
Reconnected PURPLE wire from Pi to PIN 13 of SHIFT REGISTER.
That's up to you. When using these registers there is no need to disable them so you could hard-enable them bij pulling P13 low or let the software control the status. Personally I would hard-wire it just to elliminate a potential unwanted external factor.
DID NOT connect power to JD-VCC and GND of RELAY MODULES.
Good, only when the (opto)led's works flawless the proceed to the next step
Turned the Pi on and waited for everything to boot up and get running.
Unplugged and plugged in the USB fan connected to the UPS surge protected outlet.
The optocoupler(s) did not trigger.
Accessed SIP web interface and scheduled a RUN ONCE for one of the zones. The associated optocoupler DID NOT trigger. Tried several with no success.
Expected, you didn't connect the hc595 to the GND of the Pi
Powered everything down and reattached the GND wires from the SHIFT REGISTER(s) to the BOTTOM POWER RAIL and the GND from the TOP to BOTTOM POWER RAIL.
Turned the Pi on and waited for everything to boot up and get running.
Accessed SIP web interface and scheduled a RUN ONCE for one of the zones. The associated optocoupler TRIGGERED.
Electrically ok but looking at the detailed foto it's a lot of spahgetti wiring. Remember, all wires are also antenna's and when not decoupled they pick up a lot of noise and spikes which can result in unwanted triggers/commands to the registers.
Unfortunately when I unplugged and plugged in the USB fan connected to the UPS surge protected outlet the optocoupler(s) started to trigger.
We have to figure out which wires (antennas) pick up these signals. I'm thinking of:
- is it coming through the psu/adapters? Most adapters have a bad or no EMI filtering. The UPS does surge protection but I doubt if ther is sufficient EMI filtering. You could test this by putting all non essential psu's away (far in front) of the ups.
- The power wires to the Pi are close to the ups, fan and other components. Decoupling (with 0.1 caps) might help
- Although Dan acknowledges the Pi pin initialisation I'm not so sure if the internal pull-up resistors are enabled. To be sure you coud add on pin 11, 12, 14 on the hc595' a resistor of 4k7 or 5k6 to +5v
- On your foto I can't see my earlier suggestion of the 100 Ohm resistor in series with pin 12 of the hc595. Together with the previous suggestion (and neatly ordering the spahgetti) I'm really interested in the results.
--Gerard