GPS + Camera fun with the Raspberry Pi
We had some fun with our Raspberry Pi last weekend on a road trip to Michigan. We mounted the Raspberry Pi Camera Module using a hacked up Multicomp case, and we also ran one of our GPS modules to track our position! We found this article to be quite helpful in getting our GPS to work.
First off, a bit about our setup. Here is a video showing the setup and the output from the GPS: To control the Pi in the car, we used on of our mini keyboards. Naturally we did not type as we drove! |
On the way out of Chicago, we had the camera mounted in the back window. Here is a timelapse showing our drive from Wilmette, IL all the way to Grand Blanc, MI. The video takes nearly 5 hours and compresses it to 1.5 minutes! |
When we arrived at our destination, we discovered that the GPS logging wasn't working. It turns out we started the logger before we started the GPS Daemon (I hate it when that happens). So no GPS data for the trip to Michigan.
The next day we fixed that problem and got some good GPS data for our initial drive from Grand Blanc to Lansing. Using the command "gpxlogger -d -f trip.log", you can log the data to a file. Then, just use a site like gpsvisualizer.com to process the data into a Google map like this one: |
Along that route we also logged our pictures into another timelapse, this time with the Raspberry Pi camera mounted in the front of the car. We used the program "mencoder" to encode the video into an .avi file right on the Pi. We probably need to play with the frame rate a bit to make this smoother, but not bad for a $35 computer! |
Comments
Leave a comment