Posts

Showing posts from March, 2013

Raspberry Pi and DS18B20

Image
  This is just a test of the Raspberry Pi hooked up to a DS18B20 temperature sensor.  Using LadyAda's tutorial, this was up-and-running in about 5 minutes and sending out highly accurate temperature data over the network.  As it is much more expandable and easy to use than the LM75, I think this will have to be the weapon of choice for the heating control system.  My only concern is whether the Raspberry Pi can really be used for a 'mission critical' application, bearing in mind that today the there has been an ice storm raging across the UK which has been particularly bad here in Northern Ireland.  This would not be a day to have the heating control fail due to an OS crash!

Improved Thermometer

Image
An improvement on the thermometer, this is a lot more practical. I connected up my big 7-segment LED module, added the Arduino library and one extra procedure and very quickly had this thermometer with a big bright display and accurate to 2 decimal places.  I took the picture with the flash which is why the display doesn't look so bright, but trust me, it is. The pint milk carton is to give an idea of size.  Looks like we need milk too. A better photo without the flash showing the LED display in all its glory.

Massively over-engineered thermometer

Image
Went a bit daft tonight and tried out the Arduino TV Out library along with the 1-Wire library to make a slightly mental video screen thermometer.  The temperature here is 17.68 ℃ expressed as 1768 hundredths of a degree.  The DS18B20 has a very impressive 12-bit resolution so it is accurate to 0.625 degrees Celsius allegedly.   It works well enough for a bit of fun, but the TV Out library relies on accurate interrupts to get the video signal timing right and while it is fine on its own, the complex polling of the 1-wire bus must be disabling the interrupts because the screen flickers badly each time a temperature update is performed. The flickering screen reminds me of the ZX80 or the ZX81 in 'fast' (i.e. rubbish-looking) mode, which isn't surprising because the Arduino is in a similar class to the Z80, except twice as fast and with a lot more memory than either of the original Sinclair computers. I'm thinking of converting one of the 7" LCD moni...

One Wire is all you need

Image
I ordered up a handful of DS18B20 1-wire temperature sensors and here is one interfaced to my DIY Arduino board.  There are some nice sample programs available to demonstrate the capabilities of the 1-wire (Dallas/Maxim) interface bus with the DS18B20 and this one is outputting the data to a PC via the serial port (USB) The odd thing beside the sensor is a re-usable plastic ice-cube I'm using to cool the sensor down for testing! This is the output on the PC via the serial monitor. The beauty of these sensors is that they can be chained together on the one bus as each one has a unique laser-etched hex serial number to distinguish each one.  This seems to be the way to go for the heating control system as it will have 4 sensors positioned on the water pipes and the hot water cylinder for monitoring.

I Have Wood

Image
Just a quick photo of our ecologically sound recycled wood pile. This is roughly 2 loads, each load being a fill of one of those big builder's sand bag (a big bag, not a big builder, well it might be a big builder...). This should last us well into April hopefully. The wood is heavily compressed chips used to make big industrial pallets for machine parts. It doesn't soak up water much so stays dry under the tarpaulin. Warm and toasty.