Page 36 of 37

Re: Tackling Graceful Shutdowns on the GBZ

Posted: Mon Aug 01, 2016 1:45 pm
by Camble
@hueblo Who are you addressing, and what solution are you referring to?

Re: Tackling Graceful Shutdowns on the GBZ

Posted: Mon Aug 01, 2016 2:06 pm
by hueblo
@camble

I'm just trying to get an understanding on how popcorns graceful shutdown works. Anyone who can answer is welcome. I believed you designed your the graceful shutdown switch without Pololu for this particular issue. Using popcorns graceful shutdown the 1000C seems to stay on. From my research of this thread it seems the only way to also shut down the 1000C is to use a slide switch in place of the latching emergency reset button to turn off the 1000C. I was wondering if that is still the case or if anyone else found a work around using popcorns graceful shutdown. I did take a look at your design but I really like the low battery feature. I thought I read that you did want to implement low battery into your design, is that in the works?

Re: Tackling Graceful Shutdowns on the GBZ

Posted: Mon Aug 01, 2016 2:30 pm
by alien0matic
The low battery feature should be usable standalone, without the pololu as it is a standalone circuit.

Re: Tackling Graceful Shutdowns on the GBZ

Posted: Mon Aug 01, 2016 3:50 pm
by Camble
@hueblo alien0matic is correct. Low battery shutdown is simply software which initiates a shutdown when a high signal is detected on a GPIO pin.

Re: Tackling Graceful Shutdowns on the GBZ

Posted: Wed Aug 24, 2016 9:00 am
by Popcorn
Wow I haven't been here for a bit. This thread is like a life of it's own. hah.

And yeah, the low battery warning would would work with or without the pololu. Since the LowBatt LED is tied directly to a GPIO pin and it's all monitored by software. The software then does the shutdown process (which is the graceful part), and then disconnects the 'keep alive' signal once it's shutdown.

Then, either solution, the pololu or camble's react to the absence of the 'keepalive' signal and will then kill the power. The only difference between the two is that [mention]camble[/mention]'s solution will also close EN to Ground afterwards which will turn the Powerboost completely off. The pololu solution cannot do that.

Unfortunately though, I've been struggling to get Camble's circuit working, which I suspect is because of different branded components which are perhaps behaving differently or out of spec. But once I get it going without any issues, I will happily abandoned the Pololu solution for his and update this guide to match. You'll hear about it here once that happens.

Re: Tackling Graceful Shutdowns on the GBZ

Posted: Wed Aug 24, 2016 9:17 am
by Camble
@Popcorn I suspect with a small hack (and by that I mean soldering onto a trace or something) the Pololu could be tricked into shutting off completely.

The Motorola JFET looks to have the exact same specifications, so I can't fathom why it's not working. I'll let you know as soon as I can test it.

Re: Tackling Graceful Shutdowns on the GBZ

Posted: Thu Sep 29, 2016 7:57 am
by musty_666
Is it possible to advice earlier that the battery is low? I would like to save my game before it turns off.

And another question, with the popup of the countdown, is it possible to still playing? For doing a savestate or something.

Thanks.

Re: Tackling Graceful Shutdowns on the GBZ

Posted: Sun Nov 13, 2016 7:02 am
by GASMAST3R
Hy this not working on My recalboxOs.

Re: Tackling Graceful Shutdowns on the GBZ

Posted: Tue Nov 15, 2016 6:38 am
by Camble
@musty_666 You should have enough time to save your game before shutdown. You'll get a low battery alert on the screen.

Re: Tackling Graceful Shutdowns on the GBZ

Posted: Wed Nov 16, 2016 12:48 pm
by Tango
And to get around the "emergency" reset, enable the Watchdog Timer in the Raspberry Pi. This will reset the pi in the event of a kernel panic.

Dale