Optimizing Power Input for IoT Device: How to Implement Power ORing?
I have 3 power input for my iot device
Solar 12v
Battery 3.7v
And 5v usb how can i do power oring between them
Like if 12v is present use it and usb to program
And if usb and battery is present use usb
And charge battery from usb and 12v
What is best way to achieve this
6 Replies
Make a common voltage to power your microcontroller and use power switch IC or P-cH MOSFET circuit to on/off your power rails
You can write your logic in microcontroller
Could you provide bit more detail like all these voltages will be fed to buck boost convertor but before feeding it to buck boost i need to select
Power switch or load switch IC have enable pin, you can control which power rail to turn on by controlling the enable pin. You can use voltage divider and diode to turn off battery power when 12v is present by disabling load switch of battery
You can control the enable pin by microcontroller gpio
Thank you