Pages

▼

Saturday, 18 January 2014

emonTH Multiple DS18B20 Sensors

Thanks to Dave McCraw it's now possible to connect multiple DS18B20 digital temperature sensors to the emonTH on the one-wire bus.

Two External DS18B20 temperature sensor + internal DHT22 temp + humidity on emonTH

Multiple DS18B20 sensors can be (optionally) used alongside an internal DHT22 temperature and humidity sensor. Dave's sketch which is now up in the emonTH GitHub repo supports two DS18B20 sensors but can easily be extended to include more.

Dave's multiple sensor sketch requires the unique hardware addresses of the DS18B20 sensors hard-coded in the sketch, the 'emonTH temperature search' utility sketch can be used to discover the addresses.  Hardcoding the hardware addresses guarantees Emoncms inputs won't flip around if you replace or add sensors.

The multiple DS18B20 sketch includes all the low power saving tricks, the sensors are only switch on when required and the ATMega328 goes to sleep in-between readings switching off all unnecessary functions. Obviously running more than one sensor will consume more power but I would still expect battery life to be in the region of 12 months.

Using multiple DS18B20 external temperature sensors on the emonTH as lots of exciting possibilities, a few ideas include:


emonTH main getting started page: http://openenergymonitor.org/emon/modules/emonTH


1 comment:

  1. This is excellent. An ideal tool for checking room radiator performance, to record flow, return and room temperature. With 4 or 6 of these in a house, you can learn a great deal. It can verify TEV performance, and also, by studying graphs over a few days, it can help improve control strategy (timing etc) so as to achieve the lowest flow temperatures and still be comfortable; hence better COP. Ideal commissioning tool. Also can check any flow/return dt to pinpoint faults and fine-tune (circ. pump speed etc).
    Also great for air-air heat pump, checking DHW performance over a charge period etc. All sorts of uses for diagnosis and learning how systems operate over time. Every installer should have this sort of kit to leave on systems for a week or so. compliments nicely with a real-power emontx to see input power profiles.

    ReplyDelete

Note: only a member of this blog may post a comment.