[Pre-Order] Safe Shutdown Switch (BangGood Edition) - Closed

Sell or trade things with other forum members!
User avatar
Paddy
Posts: 52
Joined: Sat Jun 25, 2016 4:21 am
Has thanked: 10 times
Been thanked: 17 times

Re: [Pre-Order] Safe Shutdown Switch (BangGood Edition) - Closed

Post by Paddy » Sat Dec 17, 2016 7:14 am

measure at B+ and B- at the banggood shows 3.24V ... thats to low?

I tried another battery ... taht shows me 4.2V at B+ and B- ... script executed -> countdown started :/

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

Re: [Pre-Order] Safe Shutdown Switch (BangGood Edition) - Closed

Post by Camble » Sat Dec 17, 2016 7:39 am

@Paddy The low battery pin will go low at 3.3v. The problem is, the script has not been changed to act differently than the PowerBoost version. So it will shut down at 3.3v instead of warn. People gave feedback to say that a 3.2v shutdown was too low, but in fact after the GBZ shuts off, the voltage of the battery will rise slightly anyway. So really, 3.2v would be fine.

In any case, you can bypass the low battery for now by connecting BCM17 directly to 3.3v.

I will be amending the script eventually, but the next version of the board is likely to warn at 3.3v and force a shutdown at 3.2v. The script will be modified to reflect this.

User avatar
Paddy
Posts: 52
Joined: Sat Jun 25, 2016 4:21 am
Has thanked: 10 times
Been thanked: 17 times

Re: [Pre-Order] Safe Shutdown Switch (BangGood Edition) - Closed

Post by Paddy » Sat Dec 17, 2016 8:07 am

ok, bridging 3.3V with GPIO17 works for me ... graceful shutdown is working

thanks for your support :)

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

Re: [Pre-Order] Safe Shutdown Switch (BangGood Edition) - Closed

Post by Camble » Sat Dec 17, 2016 8:19 am

Paddy wrote:ok, bridging 3.3V with GPIO17 works for me ... graceful shutdown is working

thanks for your support :)
That is just a temporary workaround by the way. If GPIO17 is reading low, there may be a short to ground somewhere.

User avatar
rodocop
Posts: 1723
Joined: Mon Aug 22, 2016 3:14 pm
Location: Saskatchewan
Has thanked: 606 times
Been thanked: 608 times

Re: [Pre-Order] Safe Shutdown Switch (BangGood Edition) - Closed

Post by rodocop » Thu Dec 22, 2016 7:27 pm

So I've been having the same issue. Have a
Full battery, turn on pi, countdown instantly starts, but once it gets down to zero and tries to shut down it wont actually shut down. It hangs up on something (couldn't read the screen, since I haven't adjusted text size yet). So then I have to turn the power switch off. I have bridged the 3.3v to GPIO 17 and now I dont get the timer and the switch properly shuts the pi down.

Does this mean I will never get the low battery warning now?

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

Re: [Pre-Order] Safe Shutdown Switch (BangGood Edition) - Closed

Post by Camble » Fri Dec 23, 2016 3:53 am

@paddy @rodocop Are you able to measure the voltage at pin2 of the LM393 chip? You can use the inner contacts of R1 or R2 if it's easier.

A close picture of the board would also be helpful (the side with the components).

I should also point out that this is mostly down to the way the power monitor script works (it was written for the PowerBoost) and I am working on a complete replacement.

User avatar
rodocop
Posts: 1723
Joined: Mon Aug 22, 2016 3:14 pm
Location: Saskatchewan
Has thanked: 606 times
Been thanked: 608 times

Re: [Pre-Order] Safe Shutdown Switch (BangGood Edition) - Closed

Post by rodocop » Fri Dec 23, 2016 6:12 am

I can bring my multimeter home and test it sometime, bit busy with Christmas stuff so it might have to wait until next week. I'll post when I have some readings.

Tomarse
Posts: 6
Joined: Mon Dec 26, 2016 3:46 pm
Has thanked: 2 times
Been thanked: 3 times

Re: [Pre-Order] Safe Shutdown Switch (BangGood Edition) - Closed

Post by Tomarse » Tue Dec 27, 2016 4:21 am

Camble wrote:@paddy @rodocop Are you able to measure the voltage at pin2 of the LM393 chip? You can use the inner contacts of R1 or R2 if it's easier.

A close picture of the board would also be helpful (the side with the components).

I should also point out that this is mostly down to the way the power monitor script works (it was written for the PowerBoost) and I am working on a complete replacement.
I've just bought one of your shutdown switches and am also having the exact same problems. Doesnt shut down properly and the low battery message comes up as soon as i enable/run the script.
Does the script just need tweaking? where?
I have a multimeter and can get at my switch easily. Where and at what point do you want things measuring?

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

Re: [Pre-Order] Safe Shutdown Switch (BangGood Edition) - Closed

Post by Camble » Tue Dec 27, 2016 6:46 am

@Tomarse Measure the voltage at pin 2 of the LM393 chip while the Gameboy is on.

https://github.com/Camble/GBZ-Power-Monitor_BG

Please download the latest version. I've removed the automatic shutdown for now. I'm currently working on a complete replacement which will warn a few times before deciding to shut down, rather than forcing a shutdown so soon. The number of warnings and timeout can then be tweaked by the user.

Tomarse
Posts: 6
Joined: Mon Dec 26, 2016 3:46 pm
Has thanked: 2 times
Been thanked: 3 times

Re: [Pre-Order] Safe Shutdown Switch (BangGood Edition) - Closed

Post by Tomarse » Tue Dec 27, 2016 7:35 am

Camble wrote:@Tomarse Measure the voltage at pin 2 of the LM393 chip while the Gameboy is on.

https://github.com/Camble/GBZ-Power-Monitor_BG

Please download the latest version. I've removed the automatic shutdown for now. I'm currently working on a complete replacement which will warn a few times before deciding to shut down, rather than forcing a shutdown so soon. The number of warnings and timeout can then be tweaked by the user.
@Camble Running on battery, I get 3.240V when turned on and booted to the retropie menu and then 3.235 after I start a game.

I have got the latest version of the above.

Whenever I run python ~/GBZ-Power-Monitor_BG/gbz_power_monitor.py it still just does the battery is low automatic shutdown ending in kernel panic. Am I doing something wrong?

Post Reply

Who is online

Users browsing this forum: Baidu [Spider] and 1 guest