I need a relay, which does not switch off, when the arduino resets.
So if e.g. the arduino will be flashed, it makes an reset, the IOs switches off and after, let's say 2seconds, the IOs switch on again.
I need a relay, which can be switched ON/OFF by program, but stay the short time during an reset ON
I thought about using an capacitor at the IO pin. So the switching by program takes time, but that doesn't matter.
If power cycle, what is cycling? Only the Arduino or the full system including power to relay?
If only the Arduino, you can consider an electrolytic capacitor between the pin that drives a relay and GND; no idea of the value, depends on how much current the relay / relay driver draws. And you might want a current limiting resistor so the charge current for the capacitor does not exceed the specifications for the max. Ioh / Iol.
Thanks to all.
I think the capacitor is the nearest solution.
The problem is the reset by flashing. the flashing is done by an raspberry. And the power for the raspberry is switched by these relay. So I send a command to arduino to switch on the raspberry, then flash via ssh, then switch off the raspberry by sending an off command to arduino.
For the time during flashing, the relay has to stay on.
Latching relay would also be a solution, but for me not possible without a latching relay