I have not tested with diode but with 2 resistors as voltage divider, as soon as LBO is connected to GND the red led illuminatesHoolyHoo wrote:@camble I thought the LBO pin went from battery voltage to low when the battery dropped below 3.2v. Also does the red LED on the Powerboost go on when you clamp the voltage of the LBO pin with the diode on your PCB? In my test it does.Camble wrote:The PowerBoost has an LBO pin which you can wire directly to a GPIO pin. The pin will go from 0v to battery voltage when the battery drops below 3.2v.fdeluxe wrote:Okay. Ill be using the Powerboost 1000c. Is there any way to get the battery status without aditional hardware?
My circuit has a protective diode and resistor to ensure the voltage is below the safe 4.2v level for the GPIO pins, but this is superfluous as the LBO pin is only ever at battery voltage. Even if it was 5v (which it's not) it would only ever be for a short period of time.
Doesn't hurt to have it though.
https://learn.adafruit.com/adafruit-pow ... st/pinouts
[Guide] Graceful shutdown switch without Pololu [RETIRED]
-
- Posts: 263
- Joined: Sun May 22, 2016 6:22 am
- Location: France
- Has thanked: 137 times
- Been thanked: 37 times
Re: [Guide] Graceful shutdown switch without Pololu
- Camble
- Posts: 885
- Joined: Thu May 05, 2016 2:31 am
- Location: Scotland
- Has thanked: 269 times
- Been thanked: 488 times
Re: [Guide] Graceful shutdown switch without Pololu
Actually, yes. I made this mistake once. Popcorn corrected me. Then I made the same mistakeHoolyHoo wrote:@camble I thought the LBO pin went from battery voltage to low when the battery dropped below 3.2v. Also does the red LED on the Powerboost go on when you clamp the voltage of the LBO pin with the diode on your PCB? In my test it does.

Anyway, the battery should never be above 4.2v and this is the agreed safe maximum for a GPIO pin (for short periods of time anyway)
@SidSilver That is because you are effectively pulling the pin to ground through the bottom resistor. Using a diode, you exploit the ~0.7v voltage drop to make the voltage safe.
-
- Posts: 263
- Joined: Sun May 22, 2016 6:22 am
- Location: France
- Has thanked: 137 times
- Been thanked: 37 times
Re: [Guide] Graceful shutdown switch without Pololu
so your PCB will illuminate my powerboost red led ?Camble wrote:Actually, yes. I made this mistake once. Popcorn corrected me. Then I made the same mistakeHoolyHoo wrote:@camble I thought the LBO pin went from battery voltage to low when the battery dropped below 3.2v. Also does the red LED on the Powerboost go on when you clamp the voltage of the LBO pin with the diode on your PCB? In my test it does.![]()

- Camble
- Posts: 885
- Joined: Thu May 05, 2016 2:31 am
- Location: Scotland
- Has thanked: 269 times
- Been thanked: 488 times
Re: [Guide] Graceful shutdown switch without Pololu
@SidSilver Shouldn't do, it doesn't pull the pin low.
- RxBrad
- Posts: 278
- Joined: Fri Jul 22, 2016 9:10 am
- Has thanked: 125 times
- Been thanked: 160 times
- Contact:
Re: [Guide] Graceful shutdown switch without Pololu
So, I'm still trying to find a working JFET here in the US. The National-branded 2N5461 Jameco had listed ended up actually being another non-working Fairchild.
Hey, @Camble ... Is the Siliconix-branded FET you have pictured in the OP yours, and did it work? Thanks!
EDIT: Reread the post. Sounds like the pictured JFET works. Ordered this... Finger crossed...
Hey, @Camble ... Is the Siliconix-branded FET you have pictured in the OP yours, and did it work? Thanks!
EDIT: Reread the post. Sounds like the pictured JFET works. Ordered this... Finger crossed...
- KrxXxiT
- Posts: 25
- Joined: Sat Jun 18, 2016 3:13 am
- Location: Croatia
- Has thanked: 27 times
- Been thanked: 6 times
Re: [Guide] Graceful shutdown switch without Pololu
Sorry to be a bother, but I'm not so good at reading electrical schematics and in your pic you're not using an original DMG switch.
From what I gathered, I made this simple diagram of how I interpreted the wiring to go. Does this look correct? And also, does 3.3v connect to the pi zero's gpio?
From what I gathered, I made this simple diagram of how I interpreted the wiring to go. Does this look correct? And also, does 3.3v connect to the pi zero's gpio?
Re: [Guide] Graceful shutdown switch without Pololu
KrxXxiT wrote:Sorry to be a bother, but I'm not so good at reading electrical schematics and in your pic you're not using an original DMG switch.
From what I gathered, I made this simple diagram of how I interpreted the wiring to go. Does this look correct? And also, does 3.3v connect to the pi zero's gpio?
diagram.jpg
I posted one earlier in the thread the camble verified is correct. Hope it helps out.
- Camble
- Posts: 885
- Joined: Thu May 05, 2016 2:31 am
- Location: Scotland
- Has thanked: 269 times
- Been thanked: 488 times
Re: [Guide] Graceful shutdown switch without Pololu
@KrxXxiT, that looks very close.
Make the following changes:

Make the following changes:

Last edited by Camble on Tue Sep 06, 2016 1:03 pm, edited 1 time in total.
- RxBrad
- Posts: 278
- Joined: Fri Jul 22, 2016 9:10 am
- Has thanked: 125 times
- Been thanked: 160 times
- Contact:
Re: [Guide] Graceful shutdown switch without Pololu
Psst @Camble.. I think you mean GPIO 27 in orange above. Not 17. 

Who is online
Users browsing this forum: No registered users and 1 guest