Tackling Graceful Shutdowns on the GBZ

Various user-contributed guides for software-related things
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 » Fri Jun 10, 2016 2:55 am

Popcorn wrote: Don't want to speak for him but Push and Hold/Latching means like the one that I'm using.
For him? Like for yourself? :lol:
That was a quote from your first post here. But now i see on the pictures that you used those tactile push buttons switches for this, i guess?
Then it is a momentary switch. Thank you!

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 » Fri Jun 10, 2016 3:16 am

Fleder wrote:
Popcorn wrote: Don't want to speak for him but Push and Hold/Latching means like the one that I'm using.
For him? Like for yourself? :lol:
That was a quote from your first post here. But now i see on the pictures that you used those tactile push buttons switches for this, i guess?
Then it is a momentary switch. Thank you!
I was originally going to use the tact switches since I have like 100 of them! But I bought small DPDT latching switches for it instead because I wanted to be able to disconnect the batteries when putting away the unit for longer periods of time. Otherwise, it's really just in 'Standby' mode with the powerboost on but with no load thanks to the Pololu. (This has all be covered in detail in this thread).

Think of the latching switch as OFF and STANDBY. Think of the Slide Switch as STANDBY and ON.

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 » Fri Jun 10, 2016 4:28 am

Popcorn wrote:I was originally going to use the tact switches since I have like 100 of them! But I bought small DPDT latching switches for it instead because I wanted to be able to disconnect the batteries when putting away the unit for longer periods of time. Otherwise, it's really just in 'Standby' mode with the powerboost on but with no load thanks to the Pololu. (This has all be covered in detail in this thread).

Think of the latching switch as OFF and STANDBY. Think of the Slide Switch as STANDBY and ON.
I read the thread, but could not understand everything in detail, sorry.
So those Double or SinglePDT Switches are a way of physically disconnecting unlike the push button switches, which could only send a signal, right? Would you be so kind as to link your bought switch (or a compatible one) so i could study it and learn a bit more what the differences are? That would be great.

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 » Fri Jun 10, 2016 5:35 am

Popcorn wrote:
Camble wrote:
Ganreizu wrote:
But then how do you switch out the battery in the wild? Can we wire the connector that the powerboost has to the pololu?

I absolutely want to find a fix for the powerboost always being on and connected, but also want to be able to remove the battery on the fly.
Two... power supplies? :lol: I think I might just put up with it tbh.
One main power switch. The other for emergency shutdowns as a reset button. If you read the FAQ, the latching switch is in case the monitor crashes or the pi has a kernal panic. Rare events but in case they happen. You dont need to install it, its totally optional. But if that happened, and you didn't have it, you'd need to get your screwdriver out to shut it off.
Yep, I was just meaning for the problem of the Powerboost being always powered. I'm hoping my Powerboost arrives today so I'm going to play around with this.

User avatar
Felix
Posts: 44
Joined: Wed May 11, 2016 7:17 am
Location: Antwerp, Belgium
Has thanked: 3 times
Been thanked: 12 times

Re: Tackling Graceful Shutdowns on the GBZ

Post by Felix » Fri Jun 10, 2016 3:51 pm

So, is it possible to use a double slide switch and a transistor to pull the EN pin down.

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 » Fri Jun 10, 2016 6:09 pm

Felix wrote:So, is it possible to use a double slide switch and a transistor to pull the EN pin down.
Am I understanding correctly? If you connected a dpdt slide switch to both the pololu and to the en of the Powerboost then you would effectively bypass all the graceful shutdowning. Since you would then be doing hard power offs because you are connected to EN. It would power off immediately and you wouldnt have a chance to run a graceful shutdown, which defeats the purpose. Maybe you are asking something different though.

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 » Fri Jun 10, 2016 6:27 pm

Fleder wrote:
Popcorn wrote:I was originally going to use the tact switches since I have like 100 of them! But I bought small DPDT latching switches for it instead because I wanted to be able to disconnect the batteries when putting away the unit for longer periods of time. Otherwise, it's really just in 'Standby' mode with the powerboost on but with no load thanks to the Pololu. (This has all be covered in detail in this thread).

Think of the latching switch as OFF and STANDBY. Think of the Slide Switch as STANDBY and ON.
I read the thread, but could not understand everything in detail, sorry.
So those Double or SinglePDT Switches are a way of physically disconnecting unlike the push button switches, which could only send a signal, right? Would you be so kind as to link your bought switch (or a compatible one) so i could study it and learn a bit more what the differences are? That would be great.
Genau. Most devices have a latching switch. Think of your vacuum cleaner or your nightstand lamp or coffee maker. One press turns it on. Second press turns it off. If you momentarily press it without it latching to the next state, it usually acts as a quick reset. Exactly why this type of switch is best suited for this job.

http://www.ebay.de/itm/251914278260

I'm gonna stop defending my solution because this conversation is getting tired and I think the logic that got us to where we are is sound and well thought out. I wish I could shutdown your Powerboosts but we are dealing with a $5 switch and no option apart from modded the Powerboost to replace the pull-up resistor with a 200k pull-down. Then we could enable on open, and then maybe find a way to do this. But we aren't and I don't want to be heavily modding the Powerboost.
So either install a latching switch or abandon this and live without. I wont get offended if you don't use it. But whining doesn't change anything. 8-) Thanks

User avatar
Kilren
Posts: 574
Joined: Wed May 11, 2016 4:40 pm
Location: Washington, USA
Has thanked: 35 times
Been thanked: 84 times

Re: Tackling Graceful Shutdowns on the GBZ

Post by Kilren » Fri Jun 10, 2016 6:39 pm

Popcorn wrote:I'm gonna stop defending my solution because this conversation is getting tired and I think the logic that got us to where we are is sound and well thought out... So either install a latching switch or abandon this and live without. I wont get offended if you don't use it. But whining doesn't change anything. 8-) Thanks
+1 and rofl!

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 » Fri Jun 10, 2016 6:53 pm

Fleder wrote:
Popcorn wrote: Don't want to speak for him but Push and Hold/Latching means like the one that I'm using.
For him? Like for yourself? :lol:
That was a quote from your first post here. But now i see on the pictures that you used those tactile push buttons switches for this, i guess?
Then it is a momentary switch. Thank you!
What? I always talk about him in the third person! :)

User avatar
Felix
Posts: 44
Joined: Wed May 11, 2016 7:17 am
Location: Antwerp, Belgium
Has thanked: 3 times
Been thanked: 12 times

Re: Tackling Graceful Shutdowns on the GBZ

Post by Felix » Sat Jun 11, 2016 3:37 am

@Camble, I think I found a solution but it actually makes the pololu obselete. The solution is mechanical in the meaning of a small relay switch. I'll attach a picture of the wiring.
Attachments
Without pololu.png
Without pololu.png (142.01 KiB) Viewed 8127 times

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest