Camble's Safe Shutdown Switch compatible with ADS 1015?
-
- Posts: 5
- Joined: Sat Nov 10, 2018 1:43 pm
- Has thanked: 2 times
- Been thanked: 2 times
Camble's Safe Shutdown Switch compatible with ADS 1015?
I'm going to start a gbz build and I wanted to use Camble's Safe Shutdown switch V1.2, anyone know if it is compatible with the ads1115/1015?
- infinitLoop
- Posts: 536
- Joined: Mon Dec 24, 2018 11:46 am
- Location: Portland, OR
- Has thanked: 222 times
- Been thanked: 199 times
- Contact:
Re: Camble's Safe Shutdown Switch compatible with ADS 1015?
well, yes, they can be. i have gotten them both working in a build, but not without challenges. and they don't exactly work together.
camble's adafruit version watches for the "low bat" from the psu to trigger its low battery message - that's the extent of it's battery monitoring. otherwise, it uses config.txt to set at pin to stay active and another to trigger the shutdown that it watches for in its python job.
the minty battery monitor script and the ads use the analog-to-digital conversion to watch the voltage in the battery line and determine a "value" that falls into full, 3/4 full, half full, etc. that displays an appropriate icon. there is also a separate "shutdown" script with it that can map pins to hide the battery icon or initiate a shutdown. when i use a safe shutdown with it i point that to an unused pin, but you can also try configuring it to watch for the same shutdown pin that the camble board uses.
i believe you can use the safe shutdown without the battery monitoring, by setting it to the "generic" version of the code.
i don't think you can (easily, anyway) hook the ads directly into the safe shutdown scripts. you would have to have to hack together the minty script into camble's script, so it can read the ads values.
camble's adafruit version watches for the "low bat" from the psu to trigger its low battery message - that's the extent of it's battery monitoring. otherwise, it uses config.txt to set at pin to stay active and another to trigger the shutdown that it watches for in its python job.
the minty battery monitor script and the ads use the analog-to-digital conversion to watch the voltage in the battery line and determine a "value" that falls into full, 3/4 full, half full, etc. that displays an appropriate icon. there is also a separate "shutdown" script with it that can map pins to hide the battery icon or initiate a shutdown. when i use a safe shutdown with it i point that to an unused pin, but you can also try configuring it to watch for the same shutdown pin that the camble board uses.
i believe you can use the safe shutdown without the battery monitoring, by setting it to the "generic" version of the code.
i don't think you can (easily, anyway) hook the ads directly into the safe shutdown scripts. you would have to have to hack together the minty script into camble's script, so it can read the ads values.
Some of my builds...
BMO GBZ
Star Wars Millenium Falcon Challenge
Game Boy Color Zero
... and another Gameboy Color Zero with custom 3D-printed parts
"Ultimate" 3A+ Build
GlowBoy Zero
Some 3d designs I've done...
Soft Tactile Shoulder Buttons, for screw-hole, well mounting
Snap-in, Soft Tactile Shoulder Button insert, for screw-hole, well mounting
Pac-Man and Space Invaders Themed Rear Fan Holder
BMO GBZ
Star Wars Millenium Falcon Challenge
Game Boy Color Zero
... and another Gameboy Color Zero with custom 3D-printed parts
"Ultimate" 3A+ Build
GlowBoy Zero
Some 3d designs I've done...
Soft Tactile Shoulder Buttons, for screw-hole, well mounting
Snap-in, Soft Tactile Shoulder Button insert, for screw-hole, well mounting
Pac-Man and Space Invaders Themed Rear Fan Holder
-
- Posts: 5
- Joined: Sat Nov 10, 2018 1:43 pm
- Has thanked: 2 times
- Been thanked: 2 times
Re: Camble's Safe Shutdown Switch compatible with ADS 1015?
thank you, this makes things a lot clearer.
Who is online
Users browsing this forum: No registered users and 1 guest