Page 1 of 1
Camble's Safe Shutdown Switch compatible with ADS 1015?
Posted: Thu Apr 11, 2019 12:13 pm
by AntaRobotics
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?
Re: Camble's Safe Shutdown Switch compatible with ADS 1015?
Posted: Thu Apr 11, 2019 2:34 pm
by infinitLoop
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.
Re: Camble's Safe Shutdown Switch compatible with ADS 1015?
Posted: Thu Apr 11, 2019 4:26 pm
by AntaRobotics
thank you, this makes things a lot clearer.