Close

PipeCam: Low-Cost Autonomous Underwater Camera

Back to overview

Low cost autonomous underwater camera for long term deployments and exploration

Discussions

djgraff1 wrote 06/09/2019 at 20:20 point

I am working on this project. I use a tp5110 but I don't think it makes much difference for my purposes. Basically I found some errors in your code involving the path being wrong and also as you mentioned the shutdown process is a bit sloppy. I also changed the time to localtime for the timestamp.

As for the shutdown process I followed this process:

https://raspberrypi.stackexchange.com/questions/89732/run-a-script-at-shutdown-on-raspbian

the first answer that is there. It allows the pi to turn off power with the TPL5111/TPL5110 without ignoring the shutdown. I made a bash script to put pin 17 to high and then followed that answer on stackoverflow using systemd to include it as part of the shutdown process. I believe this helps make sure the camera doesnt mess up when getting a signal to shutdown as I was getting corrupted images before.

cheers,

David

  Are you sure? yes | no