I would be very interested to know how much power your camera would use without the Arduino controlling it but with CHDK configured to "idle in playback mode" with the LCD disabled via the set_lcd_display( ) function.
No problem. I will see if I can figure out and give it a whirl today.
This method is attractive because it eliminates the lens actuator wear and tear.
If the camera draw is low enough, it might work well as a slight variation on the
optional workflow that I outline below
So the next trick is to power cycle the Pi so it only starts a few times a day maybe? Be careful to allow it to power down itself via software prior to actually cutting power.
That part is easy, scheduling a shutdown is a simple 'cron' task, or can be added as a line at the end of a task in a bash script.
If you are handy enough to mod the camera internals..
Fraid not! These cameras are a miracle of compact design. I might hazard a tear down once I have a dead one.. or if I see one on Gumtree selling for parts only
Yesterday I found an interesting add on device for the Raspberry Pi (or HAT as they're known in Pi world).
It's called a
Sleepy Pi and seems to offer most of what I'm looking for in an affordable and nicely integrated manner
https://spellfoundry.com/product/sleepy-pi-2/Optional workflowI woke up this morning wondering if this might work...
- Following the scheduled daily, image interval (say every 60 seconds) the Arduino powers up the camera
- The camera autoruns a script which then awaits a pulse signal at the USB port
- During normal shooting, the Arduino initiates a pulse (on the 5V lines) which tells the camera to fire up the OneShot script
- The script causes the camera to shoot one shot and shuts down (or, idles in playback mode perhaps)
- The Arduino shuts the power off to the camera (saving that small draw due to the power button being constantly down)
- Once an hour, or whatever, the Arduino powers up the Raspberry Pi and the camera
- The camera autoruns the listening script
- The Arduino initiates a different pulse, telling the camera to go into PTP mode
- The Raspberry Pi connects with CHDKPTP and does it's business file transferring then shuts both itself and the camera down