Camble's Safe Shutdown Switch compatible with ADS 1015?

Having trouble with your GBZ build? Ask your questions here!
Post Reply
AntaRobotics
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?

Post by AntaRobotics » Thu Apr 11, 2019 12:13 pm

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?

User avatar
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?

Post by infinitLoop » Thu Apr 11, 2019 2:34 pm

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.

AntaRobotics
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?

Post by AntaRobotics » Thu Apr 11, 2019 4:26 pm

thank you, this makes things a lot clearer.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest