VeteranGamer wrote: ↑Sat Jan 27, 2018 3:48 pm
i don't really get what your trying to achieve, especially how you've managed to butcher your safe shutdown board....
(the board doesn't need to be touched)
Basically I want a script/application that will handle both HoolyHoo's battery indicator and Camble's safeshutdown plus anything else I want to add to it. I've done a rewrite of HoolyHoo's code. Firstly I wanted to thank both Camble and HoolyHoo for all there work - although this is a rewrite of HoolyHoo's code alot of what he did is there so thank you I couldn't have done it without you.
https://github.com/thomascrha/BatteryMonitor
My script has several features which I wanted :
- Daemonised - has a daemon base class that allows POSIX standard Daemon (start|stop|restart|status)
- Single location for Config
- More unified code - a more coherent method for displaying the icon file - rather than having two scripts communicating via an open
- Rather than toggling the icon I've got it stet up on a timer - but will be configurable to be a toggle
- As the value changes and it cycles through the percent range it will display the icon i.e. if it was 75% and it drops to 50% the indicator will display the 50% icon
Now this is a work in progress and still needs alot of work; things I want to add ASAP.
- Dynamic Button Config - config buttons in config i.e. presses or held, hold time, GPIO pin, associated function (currently shutdown or monitor)
- Create init.d script to tie into Debians services
- Integrate Cambles code base into this allowing configuration and use of Cambles SafeShutdown board.
For any ideas please create an issue.
I'm going to create a seperate support thread and post once I've completed the Camble SafeShutdown integration explaining all the features and a how-to.
VeteranGamer wrote: ↑Sat Jan 27, 2018 3:48 pm
also the diagram you've linked is not correct, if you read the full post an updated diagram is posted......
Which diagram the HoolyHoo wiring diagram for the ADS ? Thats the one I used for my ADS setup and integration into BatteryMonitor.
The diagrams I used for wiring up are:
In Cambles Original Post
The one you created
I also tried to have it hooked up with no GPIO
with no luck also tried this
The only difference between the wiring is yours has the V+ and V- the other way round (if you follow the picture to a letter)
VeteranGamer wrote: ↑Sat Jan 27, 2018 3:48 pm
it might help if you show what you've actually done....
I totally agree - I don't currently have the board wired but I'm going to try again today and see if I can get it working - that way I can continue on dev of the integration of the SafeShutdown stuff. Once I have the board wired I'll post some pics.
If I cant get this working I've already ordered a new one so I can continue.
On an unrelated note has anyone experienced some weird behaviour with the BangGood Power Supply ?
Basically if I have the battery disconnected for a period of time or the device is off, it wont turn on until I plug in the charging cable. I caught this the other day and tested the voltage coming of the PowerSupply - 0.5V but as soon as I plugged in the Charging cable it shot up to 5v ?