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
ShreeshaN
ShreeshaN7mo ago
Make a common voltage to power your microcontroller and use power switch IC or P-cH MOSFET circuit to on/off your power rails
ShreeshaN
ShreeshaN7mo ago
You can write your logic in microcontroller
electro_coco
electro_coco7mo ago
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
ShreeshaN
ShreeshaN7mo ago
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
ShreeshaN
ShreeshaN7mo ago
You can control the enable pin by microcontroller gpio
electro_coco
electro_coco7mo ago
Thank you
Want results from more Discord servers?
Add your server