Tackling Graceful Shutdowns on the GBZ

Various user-contributed guides for software-related things
User avatar
Ganreizu
Posts: 552
Joined: Thu May 05, 2016 8:20 am
Has thanked: 168 times
Been thanked: 97 times

Re: Tackling Graceful Shutdowns on the GBZ

Post by Ganreizu » Fri Jun 03, 2016 9:41 am

Does it matter if the resistor is 1/2 watt or 1/4 watt?

prerunnerseth
Posts: 279
Joined: Fri May 06, 2016 5:36 pm
Has thanked: 16 times
Been thanked: 229 times

Re: Tackling Graceful Shutdowns on the GBZ

Post by prerunnerseth » Fri Jun 03, 2016 4:45 pm

Ganreizu wrote:Does it matter if the resistor is 1/2 watt or 1/4 watt?
No... its a weak pullup. the tiniest of resistors will do.

User avatar
Camble
Posts: 885
Joined: Thu May 05, 2016 2:31 am
Location: Scotland
Has thanked: 269 times
Been thanked: 488 times

Re: Tackling Graceful Shutdowns on the GBZ

Post by Camble » Sat Jun 04, 2016 5:01 am

SidSilver wrote: Yes, everything is shut off after the pi shuts down, but the powerboost stays always on (see the blue led)
It would be better if everything including the powerboost were shut off.
Ah, I didn't realise that. I'm assuming there will be a way to do that. I haven't got my supply yet.

User avatar
Fleder
Posts: 849
Joined: Thu May 05, 2016 9:04 am
Location: Germany
Has thanked: 183 times
Been thanked: 258 times

Re: Tackling Graceful Shutdowns on the GBZ

Post by Fleder » Sat Jun 04, 2016 5:40 am

SidSilver wrote:Yes, everything is shut off after the pi shuts down, but the powerboost stays always on (see the blue led)
It would be better if everything including the powerboost were shut off.
You could add another slide switch, which physically disconnects the battery from the powerboost.

SidSilver
Posts: 263
Joined: Sun May 22, 2016 6:22 am
Location: France
Has thanked: 137 times
Been thanked: 37 times

Re: Tackling Graceful Shutdowns on the GBZ

Post by SidSilver » Sat Jun 04, 2016 5:43 am

Fleder wrote:
SidSilver wrote:Yes, everything is shut off after the pi shuts down, but the powerboost stays always on (see the blue led)
It would be better if everything including the powerboost were shut off.
You could add another slide switch, which physically disconnects the battery from the powerboost.
It's a good idea :)
Replacing the emergency reset button by a slide switch to physically shut off the power.

User avatar
Camble
Posts: 885
Joined: Thu May 05, 2016 2:31 am
Location: Scotland
Has thanked: 269 times
Been thanked: 488 times

Re: Tackling Graceful Shutdowns on the GBZ

Post by Camble » Sat Jun 04, 2016 1:52 pm

Well according to AdaFruit, the Power boost only draws 20uA when off, so might not be such a big issue.

The cheap alternative supply uses 180uA. Still not much, but quite a difference.

fcn
Posts: 10
Joined: Fri May 06, 2016 2:26 pm
Has thanked: 2 times

Re: Tackling Graceful Shutdowns on the GBZ

Post by fcn » Sun Jun 05, 2016 3:33 pm

[spoiler=]
Popcorn wrote:
Ganreizu wrote:
Popcorn wrote:I soldered mine directly on my PI. I would take a photo of it but wrapped it in heat shrink so it would be a very uninteresting photo. Also, I dont think it makes sense to put it on that power strip because its quite far away from the pi which is where it's going to be going

It's pretty simple though.

Take a wire and solder it onto the Low Battery LED on the Powerboost.

Attach the other end of the wire to a 47K resistor.

Attach the other end of the 47k resistor to the base of the transistor (the middle pin).

Now if you have the flat side of the transistor facing towards to you, the collector is on the left and the emitter is on the right. Attach the collector on the left to the GND pin on the Pi and the emitter on the right to GPIO17

That should be it.

Follow my the wiring diagram when in doubt.
Oh so you don't even need a breadboard or anything. Sounds super simple, thanks for the help. Gotta find that transistor now and i'm all good haha.
Nope, exactly. I bent the pins of the transistor to fit the GPIO sockets and soldered everything directly onto my PI. That's what I was using in my prototype that you see in the videos
[/spoiler]

But the polulu switch is still necessary, right?

User avatar
Popcorn
Trailblazer
Trailblazer
Posts: 354
Joined: Thu May 05, 2016 12:58 am
Location: Berlin
Has thanked: 29 times
Been thanked: 71 times

Re: Tackling Graceful Shutdowns on the GBZ

Post by Popcorn » Sun Jun 05, 2016 4:50 pm

fcn wrote:[spoiler=]
Popcorn wrote:
Ganreizu wrote:
Oh so you don't even need a breadboard or anything. Sounds super simple, thanks for the help. Gotta find that transistor now and i'm all good haha.
Nope, exactly. I bent the pins of the transistor to fit the GPIO sockets and soldered everything directly onto my PI. That's what I was using in my prototype that you see in the videos
[/spoiler]

But the polulu switch is still necessary, right?
Yes, this is what you are using to shut everything off via GPIO signal

User avatar
Popcorn
Trailblazer
Trailblazer
Posts: 354
Joined: Thu May 05, 2016 12:58 am
Location: Berlin
Has thanked: 29 times
Been thanked: 71 times

Re: Tackling Graceful Shutdowns on the GBZ

Post by Popcorn » Sun Jun 05, 2016 5:45 pm

Bubble wrote:
Popcorn wrote:Now if you have the flat side of the transistor facing towards to you, the collector is on the left and the emitter is on the right.
I only see this now, but I thought for 2N3904 it was the opposite ? Emitter on the left & collector on the right.
https://www.sparkfun.com/datasheets/Com ... 2N3904.pdf
This is the way I wired and it seems to be ok.
Bubble is totally right!! Follow that. Apparently, I can't read. Lol

User avatar
Bubble
Posts: 35
Joined: Sun May 08, 2016 7:33 am
Has thanked: 7 times
Been thanked: 4 times

Re: Tackling Graceful Shutdowns on the GBZ

Post by Bubble » Sun Jun 05, 2016 5:56 pm

Genius also do mistakes from time to time ;)

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest