User avatar
gergnnud
Posts: 21
Joined: Tue Jul 29, 2014 4:19 am
Location: Sydney Australia

Microcontroller scheduled power on/off

Wed Jul 30, 2014 5:34 am

I want to complete a project using RPi to control a DSLR autonomously in remote locations. For a number of reasons including conserving solar power I would like to be able to send commands to a micro-controller that could shutdown and restart the Pi according to a script.

e.g.
7AM switch on Pi, take image, ftp/scp image via 4G, shutdown Pi.
7:15AM switch on Pi, take image, ftp/scp image via 4G, shutdown Pi.
...through to
5PM switch on Pi, take image, ftp/scp image via 4G, shutdown Pi until 7AM next morning.

I have the gphoto2 stuff working, looking into scp to replace ftp now, almost successful with 4G but I don't even know what keywords to Google for the micro-controller aspect.

Is there anybody that could at least point me in the right direction?
In a class of my own (facing the back corner with some stupid hat on).

ame
Posts: 3172
Joined: Sat Aug 18, 2012 1:21 am
Location: New Zealand

Re: Microcontroller scheduled power on/off

Wed Jul 30, 2014 5:58 am

Use an Arduino, and a DS3231 real time clock chip.

Use the narcoleptic library to save Arduino power during sleep.

Use two Arduino GPIOs to control the Pi power (to turn it on) and to signal an orderly shutdown before turning it off.

hampi
Posts: 223
Joined: Fri May 31, 2013 11:29 am
Contact: Website

Re: Microcontroller scheduled power on/off

Wed Jul 30, 2014 7:46 am

Something like this maybe

https://twitter.com/RPiAOne


User avatar
gergnnud
Posts: 21
Joined: Tue Jul 29, 2014 4:19 am
Location: Sydney Australia

Re: Microcontroller scheduled power on/off

Wed Jul 30, 2014 8:14 am

Sleepy-pi sounds like it is exactly what I need!

Thanks for your input. I will play and post my findings.
In a class of my own (facing the back corner with some stupid hat on).

User avatar
gergnnud
Posts: 21
Joined: Tue Jul 29, 2014 4:19 am
Location: Sydney Australia

Re: Microcontroller scheduled power on/off

Wed Jul 30, 2014 8:18 am

I did type another post to but it disappeared in the ether. Thanks to all responses. I will be following up all those leads.
In a class of my own (facing the back corner with some stupid hat on).

Return to “Advanced users”