All things Raspberry Pi and Time Lapse

Posts tagged ‘RaspberryPi’

Sparkfun Electronics

I was sitting around today wishing that my Gertboard was here… But its not. One of the things I am planning on doing is messing around with temperature and humidity sensors. It is possible to do this without a Gertboard, but I would like to have that hardware experience before I try anything directly on the GPIO pins. There is a very good forum discussion on the Raspberrypi site here.

There is a temperature sensor and a humidity sensor on SparkFun that look like they would work. There is also a waterproof temperature sensor on SparkFun as well. These sensors are different in that some are a 1 wire interface and others are a 2 wire interface. These sensors would be extremely helpful for the case of a timelapse camera. The current case turns the heater on at a certain temperature and the fan on at a certain temperature. This works, but I cannot change/edit that temperature. One of the major problems is humidity, especially in a greenhouse environment. If I could control the fan I could have the fan cycle every X minutes no matter what the temperature.

Currently when I need to download the pictures from the timelapse project I plug in the Ethernet cable. This works, but would not work for the v2.0 case. I am thinking of building a case similar to these here. However these cases are very expensive, and do not offer much flexibility for a Raspberry Pi and other electronics. And so I would need another way to connect to the Raspberry Pi. As mentioned on this forum/article the Edimax adapter looks like it is a good choice.

Hoping to have some more pictures, maybe a short timelapse of the project so far up soon!

Advertisements

RaspLapse Update

It was a little disappointing yesterday because my Raspberry Pi was supposed to ship from Newark/Element14 and it didn’t happen. The new ship date is July 5th July 12. But since this is the second third (or third fourth? I am losing track…) time they have moved the ship date I am not expecting it to ship on the 5th 12th of July.

An update on the Canon Powershot A510 is necessary as well. When the camera arrived it would not keep the date/time when the batteries were removed. This lead me to believe that the date/time battery was dead. After searching online I confirmed my suspicions. So I bought a pack of them from Amazon. It is really important that the camera can keep time when the power is off so when the Raspberry Pi starts it can get the time from the camera. And now with the new battery that will be possible.

Really looking forward to getting the Raspberry Pi and start testing! (Maybe someday I will get one….)

 

EDIT (June 02) – Just finished an online chat with Newark/Element 14 asking about the ship date being moved farther and farther back. His reply was that there was an unexpected development issue and it pushed ship dates back about 1-2 weeks.

Raspberry Pi System Clock

The Raspberry Pi does not have a battery to keep time when it is powered off. This means that every time the Raspberry Pi starts up, it has to get the time from a network server or from the user at boot time. Here is a Raspberry Pi forum confirming that there is no System Clock and how to set the time using NTP (Network Time Protocol). Unfortunately this is a major problem for my time lapse project and using NTP will not work because I will not be connected to the network/Internet. If you have internet a good tutorial on how to use NTP for RedHat/Fedora based systems is here, and a good tutorial for Debian/Ubuntu based systems is here. Over the course of a year there is a very good chance that the power will be off or flicker enough cause the Raspberry Pi to reboot at least once or multiple times. Since it is very important that the pictures be taken at the right time each day, if this is messed up it could cause major problems.

One option would be to connect the Raspberry Pi to a battery of some sort to provide power while the main source of power is down. I do not want to go that route because that adds expense and complexity. The other problem with a battery is what if the power is off long enough to drain the battery? If this happens then the Raspberry Pi would power down and time would be lost.

After some searching online, I think I have found a solution. And that solution is to set the Canon Powershot A510 time and then when the Raspberry Pi starts it will get the time from the camera to set the system time. The camera has a small battery to keep the system time, and it should last for several days without power.

So why did they build the Raspberry Pi without a System Clock? The reason is because that added cost and complexity and they were trying to keep the design cheap and simple. And most people are going to be using their Raspberry Pi’s where there is a network easily available, or  where time is not critical.

After I receive the camera I will post my script on how to get the system time from the camera and set the system clock using that time. However, all cameras function a little different so it may not work for all cameras.

Tag Cloud