CDC Pi Weather Station Has A New Sensor The 1Wire DS18B20
Second setup of the CDC Pi Weather Station
Time to tackle the 1Wire sensor
After the furore of last weeks success we’re back down to earth with a bit of a bang. We’re now trying to code the Raspberry Pi so it will read, and more importantly broadcast the readings from the 1Wire sensors to Plot.ly, the MET office or an alternative means of hosting the data online. The 1Wire sensor is already waterproof and designed to run in series with other 1Wire sensors which would greatly help with the expansion plans for the project. Although the Bosch BMP180 and the associated code worked, the sensor isn’t designed to be outdoors and nor does it measure water temperature. So I’ve turned to the 1Wire system.
CDC: First Test is a Success!
It’s taken two days of fault finding but we succeeded!
Success is a great word! Admittedly this is only the first stage and not even the sensor I eventually hope to use. But success it is! Main issue was an error using SSH with Python Version 2.7.3 which comes preinstalled on the Pi. It took a long time for this bit of code to work.
sudo pip install pyopenssl ndg-httpsclient pyasn1
I then found some other errors – but with line numbers I worked out I’d simply entered an extra digital in the AWS key. It’s hard to explain how excited I am!!
CDC Weather Station Is Coming To Life
I’ve been waiting on a simple bit of ribbon cable. I could have just ordered some, but my partner in crime the fabulous Jon San, had some spare. I was unashamedly excited to receive this simple bit of kit and immediately put it to use. Although I have to admit I didn’t notice or consider the relevance of the pink, zig-zag patten on one side of the ribbon. Although it didn’t slow me down, I’m pleased to now know that’s pin 1!
26 Pin Ribbon Cable used to connected the sensor to the GPIO pins on the Raspberry Pi.
CDC Pi Weather Station Build
The Creekside Discovery Centre Weather Station
Following the excellent work already done by Romilly Close, who setup the Sheffield Pi Station, I’m now embarking on my own ‘Deptford Pi Station’ at the Creekside Discovery Centre (CDC). The image captures some of the basic hardware I’ve invested in. Added to this will be a ribbon cable and perhaps a breadboard to help connect everything. The Pi will feed the data via ethernet back to a server and onto the web. Everything will be photographed, labeled and uploaded soon. But so far there’s…
Beginnings of the ‘Deptford Pi Weather Station’