Tackling Graceful Shutdowns on the GBZ

Various user-contributed guides for software-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: Tackling Graceful Shutdowns on the GBZ

Post by Camble » Wed Jul 13, 2016 7:47 am

tent wrote: Well if the idea is to shutdown gracefully by button press but then not taking off the power then you do not even need a pololu any pushbutton to a gpio would do...
Ok then I add a switch to disconnect battery.. Ok basically not nice and practical but with a switch and a button no particular hw is needed but it's strange no ps2 exists for embedded that also features something like atx and apm for shutdown and battery level...
Yep, pretty much. This is why I'm working on something slightly different.

User avatar
tent
Posts: 32
Joined: Thu Jul 07, 2016 4:40 pm
Has thanked: 6 times
Been thanked: 1 time

Re: Tackling Graceful Shutdowns on the GBZ

Post by tent » Wed Jul 13, 2016 7:58 am

Camble wrote:
tent wrote: Well if the idea is to shutdown gracefully by button press but then not taking off the power then you do not even need a pololu any pushbutton to a gpio would do...
Ok then I add a switch to disconnect battery.. Ok basically not nice and practical but with a switch and a button no particular hw is needed but it's strange no ps2 exists for embedded that also features something like atx and apm for shutdown and battery level...
Yep, pretty much. This is why I'm working on something slightly different.
Now I'm curious :)
tent:wq

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 » Wed Jul 13, 2016 9:33 am

tent wrote:
Camble wrote:You'll still be able to use a Pololu switch to perform a graceful shutdown. The problem of the supply being on exists with both the Banggood module, as there is no EN pin to shut it off manually. You could always add a switch between your battery and the power supply module though.
Well if the idea is to shutdown gracefully by button press but then not taking off the power then you do not even need a pololu any pushbutton to a gpio would do...
Ok then I add a switch to disconnect battery.. Ok basically not nice and practical but with a switch and a button no particular hw is needed but it's strange no ps2 exists for embedded that also features something like atx and apm for shutdown and battery level...
Don't forget the low battery shutdown...

User avatar
tent
Posts: 32
Joined: Thu Jul 07, 2016 4:40 pm
Has thanked: 6 times
Been thanked: 1 time

Re: Tackling Graceful Shutdowns on the GBZ

Post by tent » Wed Jul 13, 2016 9:56 am

SidSilver wrote: Don't forget the low battery shutdown...
Yes true I agree. As said in another thread the problems are two:

- fact1: raspberries with linux do not have a way to shut down like computer or laptop (a la ATX) by sending information to the PSU to shut down the power after OS was stopped first
- fact2: raspberries with linux do not have a way to sense if battery level is low when the device is portable (a la APM) by receiving a low bat singnal and undergo the shutdown of OS and PSU as above.

So far I was unable to spot something that was both CHEAP and SIMPLE or at least a close combination of it to address those issues.
tent:wq

User avatar
Oxodao
Posts: 131
Joined: Wed Jun 01, 2016 11:35 am
Location: 127.0.0.1
Has thanked: 4 times
Been thanked: 30 times
Contact:

Re: Tackling Graceful Shutdowns on the GBZ

Post by Oxodao » Wed Jul 13, 2016 12:23 pm

What's the advantage of using a pololu thing there instead of a simple mosfet ?
My problem is that the Pololu is not available nowhere cheap from france...
And I do have quite a few mosfet that could correspond (IRF630 for example)
Arduino sketch for the gamepad (Teensy replacement): http://github.com/oxodao/GBZGamepad

User avatar
tent
Posts: 32
Joined: Thu Jul 07, 2016 4:40 pm
Has thanked: 6 times
Been thanked: 1 time

Re: Tackling Graceful Shutdowns on the GBZ

Post by tent » Wed Jul 13, 2016 2:10 pm

I think it's just packaging two mosfets and pins in a nice package...

I found this one as well but lacks enablw/disable and even boost to 5v but the rest is incredibly well conceived: https://www.sparkfun.com/products/13777
tent:wq

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 » Wed Jul 13, 2016 2:18 pm

Pololu cost 4€... affordable :mrgreen:

User avatar
Oxodao
Posts: 131
Joined: Wed Jun 01, 2016 11:35 am
Location: 127.0.0.1
Has thanked: 4 times
Been thanked: 30 times
Contact:

Re: Tackling Graceful Shutdowns on the GBZ

Post by Oxodao » Wed Jul 13, 2016 2:22 pm

SidSilver wrote:Pololu cost 4€... affordable :mrgreen:
Yeah no problem, this PCB is cheap enough... When you see that the shipping is at least twice the price that does not makes me want to buy it, do you have any cheap seller ?
Arduino sketch for the gamepad (Teensy replacement): http://github.com/oxodao/GBZGamepad

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 » Wed Jul 13, 2016 2:32 pm

Oxodao wrote:
SidSilver wrote:Pololu cost 4€... affordable :mrgreen:
Yeah no problem, this PCB is cheap enough... When you see that the shipping is at least twice the price that does not makes me want to buy it, do you have any cheap seller ?
Got mine from Gotronic (France).
I bought other things with the pololu to justify the shipping. The idea is to group orders as much as possible.

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 » Wed Jul 13, 2016 2:45 pm

Oxodao wrote:
SidSilver wrote:Pololu cost 4€... affordable :mrgreen:
Yeah no problem, this PCB is cheap enough... When you see that the shipping is at least twice the price that does not makes me want to buy it, do you have any cheap seller ?
I might be selling mine. Where are you from?

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest