Monday, May 12, 2014

Hardware

In my last post I discussed how to log into the Pi with SSH, and start taking data. Today, we will dig into the code and see what this program is actually doing.

We start by importing Adafruit libraries for these sensors. This allows us to use basic functions to talk to and control the sensors and not have to "reinvent the wheel" every time we need to do something. I have taken screenshots of the rest of the code, and I have made comments in red describing what the program is doing.


And that's how it works! Here is a link to the data log
However, as I look at this, I realize that I need to do more work to get useful information from the accelerometer and magnetometer.With some work you can do some pretty cool things with this information. 

Here are some leads...



No comments:

Post a Comment