It's possible connect to one EmonTh a second DHT22 (umidity and temp. sensor) and 3 o more DS18B20 temp sensor?
Archived Forum |
|
EmonTh and multiple sensorSubmitted by truzzman on Sun, 22/02/2015 - 08:19It's possible connect to one EmonTh a second DHT22 (umidity and temp. sensor) and 3 o more DS18B20 temp sensor?
» |
Re: EmonTh and multiple sensor
Multiple ds18b20 can be connected on the same one wire bus. Firmware will need to be modified to handle more then two ds18b20. To add another dht22 you will need to use another free digital input see port map on the wiki
http://wiki.openenergymonitor.org/index.php?title=EmonTH
Dig 2 would be a good choice since this is already broken out on terminal block. You will need 10k pull up and obviously modify the firmware to handle reading from additional sensor.
Re: EmonTh and multiple sensor
Thanks for this. I was wondering the same thing.
Re: EmonTh and multiple sensor
See firmware sketch example for multiple DS18B20:
https://github.com/openenergymonitor/emonTH/tree/master/emonTH_DHT22_mul...
Re: EmonTh and multiple sensor
I tried this multiple sketch with 2 and 3 external sensors but for some reason the output of sensor 0 is 85.00C? With the dual external sensor sketch the readings are ok so the sensor should be ok.
sensor 0 = 85.00C
sensor 1 = 21.80C
sensor 2 = 22.30C
Re: EmonTh and multiple sensor
I changed the delay to 750ms and now it seems to work.
const int ASYNC_DELAY = 750;