Two power supplies on a arduino uno

Hello everyone, I am building a system of temperature sensors to measure. I have a Ethernet Gateway that I want to power. I have a power supply of 5v that plugs into the wall, the problem is for example if the light run out the Gateway will stop revising data. What I want to do is have it plugged into the wall and if the light is out to use a battery. How can I do that?

Can you please explain what it means for a "light to run out"?

Have you searched for
Arduino battery backed up uninterruptible power supply.

It sounds like you want power to transfer to a battery if your main power fails. You can build your own using a relay to keep it simple or just buy a 5V~48V 10A DC Power Supply/Battery Automatic Switch Module Emergency Cut-off Battery Controller Board Relay Module Power-OFF Protection Module which are cheap. Keep in mind if you want 5 volts out both inputs must be 5.0 volts. The link is a cheap transfer system and as they point out there will be a delay. You also need to maintain the charge on your backup battery.

This assumes that is what you want because your post is very vague.

Ron

1 Like

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