Arduino Relay?

I'm working on a UPS of sorts for an arduino project of mine. Basically if the pwoer goes out I want the arduino to switch to a 9v battery backup. I was wondering what sort of relay I should use and if a transformer would be needed. Ideally I'd like to use a simple power supply with a transformer built in and then have that feed into the relay, but I'm not sure if the 7-12v from a normal arduino power supply would then be enough to switch the relay (normally closed).

iceng1 year ago

Here is your automatic and instant switch over schematic.

You could even add a resistor from the 12vDC supply to trickle charge the 9vDC Batteries.

iceng1 year ago

If the pwoer goes out so will any PS and most transformers.

Just use a diode from the 9v to take over when the higher voltage stops.

This will happen instantly compared to a relay.

kjsrocks1 year ago

Just a simple 5 pin relay. I will add a schematic as soon as i draw it

If its unclear just ask for clarification.