Sunday, 7 April 2013

Raspberry Pi energy monitor

The pi now fixed to the wall with a ribbon cable to the module containing LCD and analog to digital circuits for data capture.







The chip on the left is a PCF8574 I2C expander to allow the pi to drive the HD44780 LCD screen using only 2 data lines.

The chip on the right is a MCP3008 8 channel analog to digital converter connected to the SPI interface on the pi.






The boiler status is derived from an LDR attached to the pilot light window on the front of the boiler.  It was originally connected to a transistor circuit to convert the LDR resistance to an on-off digital state.  But calibration was easier to do in software after connecting the LDR to the MCP3008 and getting a value between 0 and 1023.


The outside temperature is sampled from a Maplins 100k thermistor (CR05F).  The thermistor is also connected to a channel on the MCP3008 and the resistance value (here 258) is read and converted to centigrade.

1 comment:

  1. Thanks on your marvelous posting! I quite enjoyed reading it,you're a great author.I will be sure to bookmark your blog and will come back sometime soon. I want to encourage you to ultimately continue your great job, have a nice day!

    Energy Management System



    ReplyDelete