Relay should turn off after time,when arduino resets

Hi

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.

What do you think?

Post your current sketch and schematic.

Latching relay?

1 Like

What type of reset? Reset pin? Power cycle? ...?

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.

Two seconds internet search, a latching relay from RS.
https://uk.rs-online.com/web/p/signal-relays/7181941.

Mnay other out there with different coil current and voltages, also differing contact rating too.

Does this solve your problem?

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 :sob:

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.