Works with Raspbian hf Aug/Sept 2012 Under Pressure From previous blog posts, you’ll know I have a Raspberry Pi set up to read two temperature sensors and two light sensors (inside and outside) and log the data online at COSM Setting up temperature sensors and COSM feed But, as ever, “we want more than that!” So I thought it would be fun to add a barometric pressure sensor. Looking around, it seemed like the BMP085 was a good bet. Even better than that, Adafruit have written Python libraries for it and some setup instructions here. […more…]
Download Python Gertboard Programs ocol – Open Collector – Darlington Array Relay Driver I’ve managed to get the open collector ocol program written in Python. The ocol program drives the Darlington Array on the Gertboard. This can be used to switch up to 6 relays, each on a separate GPIO port. I’ve managed to write versions for both wiringpi for python (ocol-wp.py) and RPi.GPIO (ocol-rg.py) They are both included in the download link, which will always contain the most up to date versions. Here’s a comparison video of Gert’s ocol program running first, then my […more…]
Download Python Gertboard Programs I’ve been having a go at producing Python 2.7 versions of some of the Gertboard test suite. It’s partly as a learning experience for me and one which I hope will help others too. Which GPIO? Why not both? There’s two different ways to handle GPIO (General Purpose Input Output) in Python at the moment… Ben Croston’s RPi.GPIO Gordon Henderson’s WiringPi (Python Wrapper by Gadgetoid) The ultimate aim is to have versions of the Python programs using both systems. As a file naming convention, we’ll take the name from the original […more…]
I finally freed up one of my breadboards. I got my semi-permanent temperature sensing interface fully up and running with the Pi Cobbler – logging to COSM. So now I could take the components off my other breadboard and free up the Gertboard for other experiments. LCD Next The next thing I wanted to get working was a 16 x 2 LCD panel. (£6 from Tandy) Having seen other people get these working, I figured it couldn’t be all that hard and it wasn’t too bad actually. But I did make one small mistake along […more…]
You would Pi too if it happened to you :( Just as I was finishing up my last blog post, the review of Adafruit Pi Cobbler, my foot snagged on a network cable and hoiked my Pi onto the floor. It landed on the SD card and the feeble card slot took no prisoners. The card slot broke as it was predestined to do, the moment anyone looked at it harshly or in the wrong tone of voice. This Pi, my friend since 15th May 2012, is accustomed to living in a beautiful Yoctopuce case, […more…]