Component guide · Beginner · 3 min read
YX850 Power Failure Auto-Switching Standby Battery Module (5-48V)

Wiring
By Geekobot Learning Team · Updated 29 Oct 2026
On this page
The YX850 module switches a DC load from its main supply to a backup battery when the main supply fails, and back again when power returns. It uses a relay, works from 5 to 48 V, and suits CCTV cameras, routers and alarm panels. It does not charge the battery by itself on all versions, so check whether you need a separate charger.
Key specs at a glance
- Voltage
- 5 to 48 V (same for supply and battery)
- Switching
- Relay
- Switch time
- About 10 to 20 ms
- Current
- About 10 A relay contacts
- Charging
- Model dependent; often none
- Indicators
- LEDs
A shorted, over-charged or damaged lithium cell can get very hot and catch fire. Use a protection board or BMS, never short the terminals, charge on a non-flammable surface and do not leave a charging pack alone. Throw away cells that are swollen or dented.
What the YX850 standby battery switching module is
The YX850 is a standby battery switch module that switches a load from mains-powered DC to a backup battery automatically during power cuts, for 12 V CCTV and routers.
A relay changeover takes a few milliseconds, which may reset sensitive electronics. Add a large capacitor on the load side or use a diode-OR UPS for zero-gap switching.
Battery and supply voltages should match the load's acceptable range.
YX850 standby battery switching module pinout
The pins on the YX850 standby battery switching module and what each one does.
| Pin | Function |
|---|---|
| Main IN | Adapter |
| BAT | Backup battery |
| OUT | Load |
- Main IN
- Adapter
- BAT
- Backup battery
- OUT
- Load
Wiring the YX850 standby battery switching module
Connect the YX850 standby battery switching module like this.
| YX850 standby battery switching module pin | Typical | Second load |
|---|---|---|
| Main IN | 12 V adapter | Same |
| BAT | 12 V lead-acid or 3S Li-ion with BMS | Same |
| OUT | CCTV camera / router | Same |
- Main IN
- Typical:
- 12 V adapter
- Second load:
- Same
- BAT
- Typical:
- 12 V lead-acid or 3S Li-ion with BMS
- Second load:
- Same
- OUT
- Typical:
- CCTV camera / router
- Second load:
- Same
Example code
A minimal sketch to check the part works.
Unplug the adapter while measuring OUT to confirm
switchover, then plug it back.Setup and tuning
connect the DC adapter input, the battery and the load as marked.
use a 12 V adapter and 12 V battery of the same nominal voltage.
the module trickle-charges the battery from the adapter.
stay within the module's current rating.
use sealed lead-acid batteries unless the module supports lithium.
What you need
Shop this list3 of 3 found in our store · ₹604
YX850 Power Failure Auto Switching Standby Battery Module, 5-48V: the part this guide coversYX850 Power Failure Auto Switching Standby Battery Module, 5-48V₹129
Digital multimeter: to check supply and signal voltagesDigital Multimeter₹177
SMPS power supply in metal enclosure (5/12/24 V): a 12 or 24 V charging sourceSMPS Power Supply, Metal Enclosure (5V / 12V / 24V)₹298Closest match, check the specs
Alternatives and when to choose them
- Ideal diode modules: zero-gap OR-ing.
- Battery UPS HATs.
- Robot power planning.
Common mistakes to avoid
- Mismatched adapter and battery voltage.
- Using lithium batteries on lead-acid modules.
- Exceeding current rating.
- Undersized battery.
Frequently asked questions
How does the YX850 work?
It powers the load from the adapter and switches to battery when power fails.
Can it charge lithium batteries?
Only if the module supports lithium; most are for lead-acid.
Will my CCTV restart during switching?
Switching is fast, so most cameras and routers keep running.
What battery size should I use?
Size it for the backup time you need at your load current.
Why does the battery not charge?
The adapter voltage is too low or the battery is faulty.
Parts for this guide
Keep learning
Sources
Written by the Geekobot team from manufacturer datasheets. Always check the datasheet for the exact part and variant you buy.
