[Guide] Graceful shutdown switch without Pololu [RETIRED]

Various user-contributed guides for hardware-related things
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 » Sun Aug 28, 2016 2:05 pm

RxBrad wrote:
Camble wrote:@RxBrad Sounds like you have a similar issue to @Popcorn. He is using a Motorola brand 2N5460 JFET and it just doesn't seem to like him.
Going back through the thread, it appears that @Popcorn eventually got it working... I wonder how he managed that?

So far, my Fairchild-branded JFET (purchased from Jameco) appears to be a no-go.
Popcorn knows my feelings on the circuit he finally used. By all accounts, it shouldn't work the way he has it set up.

User avatar
fdeluxe
Posts: 71
Joined: Tue Aug 23, 2016 10:16 am
Has thanked: 12 times
Been thanked: 27 times
Contact:

Re: [Guide] Graceful shutdown switch without Pololu

Post by fdeluxe » Tue Aug 30, 2016 4:01 pm

Stupid question: What are the downsides of not using a graceful shutdown switch? I'll have to shutdown the manually to prevent filesystem corruption?

User avatar
Ganreizu
Posts: 552
Joined: Thu May 05, 2016 8:20 am
Has thanked: 168 times
Been thanked: 97 times

Re: [Guide] Graceful shutdown switch without Pololu

Post by Ganreizu » Tue Aug 30, 2016 4:32 pm

fdeluxe wrote:Stupid question: What are the downsides of not using a graceful shutdown switch? I'll have to shutdown the manually to prevent filesystem corruption?
Yes. If you don't know when the battery will die it won't shut down safely.

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 Aug 30, 2016 4:55 pm

So, do we know which brands of JFETs work for this switch?

It sounds like Fairchild and Motorola do NOT.

I've found a National brand one here, but not sure if it'll work... EDIT: Warning.. I ordered this and received yet another batch of Fairchild-branded JFETS that don't work. Don't waste your time on them.
Last edited by RxBrad on Sun Sep 04, 2016 3:33 pm, edited 1 time in total.
Image
Image Image

User avatar
HoolyHoo
Posts: 766
Joined: Sat Jul 09, 2016 9:34 pm
Has thanked: 206 times
Been thanked: 741 times

Re: [Guide] Graceful shutdown switch without Pololu

Post by HoolyHoo » Tue Aug 30, 2016 5:06 pm

I think the problem with the JFET's is that there is variance with the tolerance on the pinch off voltage even among same brands. So some might work while others do not.

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 Aug 30, 2016 7:24 pm

Hey, @Camble.. I was going to try building the non-DMG version of the switch, and noticed that you have the schematic for it labeled Obsolete on the first post. Do you have the current schematic for this switch anywhere by chance? I only see a revised version for the DMG. Thanks!
Image
Image Image

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 » Wed Aug 31, 2016 4:55 am

@RxBrad The second schematic will work for both switches so I recommend ignoring the first schematic.

That brand JFET should work. I'm using the surface mount version for my boards.

User avatar
fdeluxe
Posts: 71
Joined: Tue Aug 23, 2016 10:16 am
Has thanked: 12 times
Been thanked: 27 times
Contact:

Re: [Guide] Graceful shutdown switch without Pololu

Post by fdeluxe » Wed Aug 31, 2016 5:17 am

Ganreizu wrote:
fdeluxe wrote:Stupid question: What are the downsides of not using a graceful shutdown switch? I'll have to shutdown the manually to prevent filesystem corruption?
Yes. If you don't know when the battery will die it won't shut down safely.
Okay. Ill be using the Powerboost 1000c. Is there any way to get the battery status without aditional hardware?

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 » Wed Aug 31, 2016 6:14 am

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 LOW when the battery voltage falls below 3.2v.

My circuit has a protective diode and resistor to ensure the voltage is below the safe level for the GPIO pins, but this is superfluous as the LBO pin is only ever at battery voltage.

Doesn't hurt to have it though.

https://learn.adafruit.com/adafruit-pow ... st/pinouts
Last edited by Camble on Thu Sep 01, 2016 6:06 am, edited 4 times in total.

User avatar
HoolyHoo
Posts: 766
Joined: Sat Jul 09, 2016 9:34 pm
Has thanked: 206 times
Been thanked: 741 times

Re: [Guide] Graceful shutdown switch without Pololu

Post by HoolyHoo » Thu Sep 01, 2016 4:37 am

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.

Post Reply

Who is online

Users browsing this forum: Google [Bot] and 1 guest