[Guide] Graceful shutdown switch without Pololu [RETIRED]

Various user-contributed guides for hardware-related things
SidSilver
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

Post by SidSilver » Thu Sep 01, 2016 4:41 am

HoolyHoo wrote:
Camble wrote:
fdeluxe wrote:Okay. Ill be using the Powerboost 1000c. Is there any way to get the battery status without aditional hardware?
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.

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
@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.
I have not tested with diode but with 2 resistors as voltage divider, as soon as LBO is connected to GND the red led illuminates

User avatar
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

Post by Camble » Thu Sep 01, 2016 6:04 am

HoolyHoo 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.
Actually, yes. I made this mistake once. Popcorn corrected me. Then I made the same mistake :lol:

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.

SidSilver
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

Post by SidSilver » Thu Sep 01, 2016 6:22 am

Camble wrote:
HoolyHoo 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.
Actually, yes. I made this mistake once. Popcorn corrected me. Then I made the same mistake :lol:
so your PCB will illuminate my powerboost red led ? :o

User avatar
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

Post by Camble » Thu Sep 01, 2016 9:55 am

@SidSilver Shouldn't do, it doesn't pull the pin low.

User avatar
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

Post by RxBrad » Sun Sep 04, 2016 3:52 pm

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...
Image
Image Image

User avatar
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

Post by KrxXxiT » Tue Sep 06, 2016 10:21 am

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
diagram.jpg (70.19 KiB) Viewed 7270 times

User avatar
hueblo
Posts: 175
Joined: Mon Jun 06, 2016 2:59 pm
Has thanked: 78 times
Been thanked: 81 times

Re: [Guide] Graceful shutdown switch without Pololu

Post by hueblo » Tue Sep 06, 2016 10:32 am

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.

User avatar
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

Post by KrxXxiT » Tue Sep 06, 2016 11:31 am

@hueblo so you mean this one?
Does it work as it's supposed to with your schematic?

User avatar
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

Post by Camble » Tue Sep 06, 2016 12:55 pm

@KrxXxiT, that looks very close.

Make the following changes:

Image
Last edited by Camble on Tue Sep 06, 2016 1:03 pm, edited 1 time in total.

User avatar
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

Post by RxBrad » Tue Sep 06, 2016 12:57 pm

Psst @Camble.. I think you mean GPIO 27 in orange above. Not 17. :)
Image
Image Image

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest