justDIY
Active Member
I have an idea for a portable power source, designed to recharge devices that will accept a charge over the USB connection.
The heart of the system relies on a single cell boost converter, powered by a lithium cell, converting the lithium's substantial current into +5v.
To make the device super flexible, I also plan to incorporate a USB powered lithium charge controller, so the unit can recharge itself from any usb host (laptop, desktop, etc)
To keep things user friendly and 'simple' on the outside, I would like to use the same USB port to both receive power from the host for the lipo charging circuit, as well as provide power to a device from the boost circuit. I would like to make this as automatic as possible.
I know a simple single pole double throw mechanical switch would work here, diverting the +5 line from the usb connector to the charger or the supply ... the question is what is the best way to replace that switch with something electronic?
What I'm trying to figure out, is how to sense the difference between being connected to a host (source of power), and being connected to a device (load). To keep things simple, I want to avoid the software side / usb stack by all means.
Right now I'm working on the assumption that a proper device should never source current, where as the host will gladly source current.
Does anyone have some ideas?
I have attached a crude block diagram of the proposed setup.
The heart of the system relies on a single cell boost converter, powered by a lithium cell, converting the lithium's substantial current into +5v.
To make the device super flexible, I also plan to incorporate a USB powered lithium charge controller, so the unit can recharge itself from any usb host (laptop, desktop, etc)
To keep things user friendly and 'simple' on the outside, I would like to use the same USB port to both receive power from the host for the lipo charging circuit, as well as provide power to a device from the boost circuit. I would like to make this as automatic as possible.
I know a simple single pole double throw mechanical switch would work here, diverting the +5 line from the usb connector to the charger or the supply ... the question is what is the best way to replace that switch with something electronic?
What I'm trying to figure out, is how to sense the difference between being connected to a host (source of power), and being connected to a device (load). To keep things simple, I want to avoid the software side / usb stack by all means.
Right now I'm working on the assumption that a proper device should never source current, where as the host will gladly source current.
Does anyone have some ideas?
I have attached a crude block diagram of the proposed setup.