For a control system I am using a relay module that controls a larger relay for high-current electrical stuff, as part of a battery protection circuit for my solar plant. This module switches 120 VAC for the larger one. The larger one is set up to latch the power off until a button is pressed manually.
I have several Adafruit relays, (single, dual, quad) and they all seem to be active-LOW. I am using one of them for this project.
My problem is that I can't seem to prevent my Arduino Nano code from briefly setting the output pin LOW in setup, setting in motion the cascade involving latching the power off.
If at all possible with this hardware, I would like to prevent the need to manually reset the latch when uploading code changes.
Here is how I am initializing that pin in my setup code:
All in one line. The LOW pulse is just long enough to trigger the other relay.
I know I can probably find parts like an inverter chip or maybe a different relay, but really want this working yesterday.
So my question is: Is there any way to prevent it from pulling it LOW during initialization? Or, is there a different approach I should take in relation to this relay output?
Thanks in advance