Documentation for Raspberry Pi/MCP3008/Cosm datalogging project
Install Adafruit Occidentalis 0.2 on Raspberry Pi
Plug RasPi into router, log into router to find IP address, ssh into RasPi
Install python SPI library. We learned to do this from this blog post
git clone git://github.com/doceme/py-spidev cd py-spidev sudo python setup.py install
Download and install python packages for the Cosm API
git clone git://github.com/petervizi/python-eeml
Download this script.
git clone git://github.com/bergey/berrybasket.git
Sign up for Cosm account, create a new feed, fill out config file:
Fill in the blanks in config.json
API_URL appears in the URL of the feed webpage. It's the number in http://cosm.com/feeds/84597
We're using the MCP3008 chip to convert analog measurements to digital. The pins down one side of the chip are analog inputs; the other side connect to the computer. The aforementioned blog post has good pictures of which pins go to which Raspberry Pi connections. The Pi T-Cobbler breakout board from Adafruit is a great help in connecting the Raspberry Pi to a breadboard. Adafruit also sells the MCP3008.
- Allow measurement frequency to be specified in config file
- Specify channels to log in config file
- Add examples with specific sensors (thermistor, photoresistor)