Smartie
Member
I've designed a LCD watch and had a simple battery charger that would charge the battery, but I overlooked the design and forgot to add a way for the circuit to be powered from the battery. (see schematic)
How to I make the circuit from the battery but also allow it to charge from usb when it's plugged in.
The cahrger (MCP73833) is a constant voltage and constant current charger (currents are selectable) and terminates the charge based on current.
I thought about using a PNP transistor to disable the battery from supplying current to the circuit the moment USB is plauged in (See second schematic) It works in simulation and tested it with a battery pack and usb port. but I'm not too sure how it will work with the charger wired up to it as well.
Can you guys suggest ideas?
Cheers
Roman
The simulation can be seen here [Circuit Simulator Applet]
When the aplet loads, go File -> import and paste this
How to I make the circuit from the battery but also allow it to charge from usb when it's plugged in.
The cahrger (MCP73833) is a constant voltage and constant current charger (currents are selectable) and terminates the charge based on current.
I thought about using a PNP transistor to disable the battery from supplying current to the circuit the moment USB is plauged in (See second schematic) It works in simulation and tested it with a battery pack and usb port. but I'm not too sure how it will work with the charger wired up to it as well.
Can you guys suggest ideas?
Cheers
Roman
The simulation can be seen here [Circuit Simulator Applet]
When the aplet loads, go File -> import and paste this
Code:
$ 1 5.0E-6 27.727228452313398 50 5.0 50
v 160 320 160 128 0 0 40.0 4.5 0.0 0.0 0.5
r 320 256 320 320 0 330.0
t 224 160 256 160 0 -1 -0.08750813957544867 -0.6446518966871473 100.0
r 224 208 224 320 0 1000.0
w 224 320 320 320 0
w 224 320 160 320 0
w 256 176 320 176 0
w 256 144 256 128 0
w 224 160 224 208 0
w 320 176 320 256 0
w 144 160 144 96 0
w 256 96 320 96 0
w 320 96 320 176 0
s 64 160 144 160 0 1 false
w 256 96 144 96 0
w 160 128 256 128 0
d 144 160 224 160 1 0.105904783
g 160 320 160 352 0
R 64 160 64 128 0 0 40.0 5.0 0.0 0.0 0.5
R 384 160 384 128 0 0 40.0 5.0 0.0 0.0 0.5
g 480 320 480 352 0
d 464 160 544 160 1 0.105904783
w 480 128 576 128 0
w 576 96 464 96 0
s 384 160 464 160 0 0 false
w 640 96 640 176 0
w 576 96 640 96 0
w 464 160 464 96 0
w 640 176 640 256 0
w 544 160 544 208 0
w 576 144 576 128 0
w 576 176 640 176 0
w 544 320 480 320 0
w 544 320 640 320 0
r 544 208 544 320 0 1000.0
t 544 160 576 160 0 -1 -0.08843971870554768 0.4115602812944523 100.0
r 640 256 640 320 0 330.0
v 480 320 480 128 0 0 40.0 4.5 0.0 0.0 0.5
x 147 78 324 84 0 24 Battery Powered
x 476 77 626 83 0 24 USB Powered
x 356 294 388 298 0 15 Load
x 593 293 625 297 0 15 Load
o 0 64 0 35 5.0 0.025 0 -1
o 37 64 0 35 5.0 9.765625E-5 1 -1