Closed yangjianlin-c closed 3 years ago
Hey, thank you!
Basically you have mentioned all the important features. It is as simple as controlling the enable pin of the LDO. If it's high, the LDO will deliver power to the MCU and all the devices which are connected to the output of the LDO. If not, it won't. As you have stated, the enable pin can be controlled via both buttons and a specific GPIO of the MCU.
Basic scenario is:
For the newest version of the schematic and PCB I have added the enable control via USB voltage. Once it is connected to 5V it will pull the enable pin high. This won't affect the battery because once a USB voltage is connected the whole board (or in detail: the VCC line) is powered via the 5V USB voltage (through the diode D3). And, of course, the battery will be charged in this state.
Hope this clarifies it a bit more. If you still have questions feel free to ask!
Edit: the second button is just for human interface. For the latching circuit one button would be enough. Nevertheless, both buttons can be used to enable the LDO.
Hi Sir, thanks for your explain. I'm clear now.
An other question. U3 is able to do reverse voltage protection, why do you add Q1? Any other consideration?
Yes, you're probably right. I mixed up two circuits and haven't noticed that I've doubled the polarity protection... Will fix it in the next revision!
Hi Sir, thanks for your sharing such excellent project. I have a question about the latching circuit. How does it works, could you explain it please? I can find some basic work flow of it.
Why there are tow button, how about just one button?