Hi - I bought an emonTH with a DS18B20 temperature sensor and an external DS18B20 sensor, together with a Raspberry Pi Base station, back in early October, but have only just got around to setting it up.
I've attached a screenshot of the inputs (from a local copy of emoncms 8.4.0 and emonhub running on the Raspberry Pi) that I am getting. I can see the onboard temperature, and the battery level, but I can't see the external temperature input anywhere.
Any ideas what I need to do to get this please?
Re: Missing value from emonTH - SOLVED
I don't know, but my (saved) emonTH sketch doesn't transmit the external temperature. However, two sketches that I've looked at on GitHub do, emonTH_DHT22_dual_DS18B20 and emonTH_DHT22_DS18B20, and the rest might do too, so without checking both that and the change notes, I think you need to load a (later) sketch to your emonTH.
Re: Missing value from emonTH - SOLVED
Thanks for the suggestion. I looked at the emonTH_DHT22_dual_DS18B20 sketch, and this appears to do what I want. But first it says that I need to find out the addresses of the two sensors. So I loaded the sensor test sketch, and I am confident that I have got the addresses.
However, when I compile the emonTH_DHT22_dual_DS18B20 sketch, it uses the RFu_JeeLib: https://github.com/openenergymonitor/RFu_jeelib library, which the documentation says is "(OLD emonTH V1.4)".
I have got an emonTH V1.5 Any idea what needs to be done to upgrade the sketch?
Also, I tried to upload a 'factory' sketch, and chose emonTH_DHT22_DS18B20_RFM69CW, but it doesn't work. I notice that there is a new firmware planned for units shipped from December, but this also requires changes to the base station. Any idea which sketch I can load to get me back to where I was?
Re: Missing value from emonTH - SOLVED
I've had a look at emonTH_DHT22_dual_DS18B20, and all I think you need to do here, if you have a V1.5 with a surface-mount processor on the main board and not the RFu328 piggy-back board, is replace "#include <RFu_JeeLib.h>" with "#include <JeeLib.h>".
If you're using "emonTH_DHT22_DS18B20_RFM69CW" and you have the RFM12B radio (see "RFM Radio Modules - Identifying different types" in Resources), then change "#define RF69_COMPAT 1" to "#define RF69_COMPAT 0" like it says in the comment.
Re: Missing value from emonTH - SOLVED
Thanks again for your suggestions, but I've not had much success....
I've made the following changes to emonTH_DHT22_dual_DS18B20
I've attached a screen shot of the serial monitor output.
- Why am I getting all the corrupt characters? (When I run the sensor test sketch, I don't get any of these, so I think it must be to do with the sketch. I've also played around with BAUD rates, but it made no difference)
- The sketch pauses for a minute after displaying sensor 1 and before displaying sensor 2. Looking at the sketch, this doesn't make sense to me.
- None of the readings are getting back to my Raspberry Pi. :-(
Also, I can't seem to find a 'factory' sketch that works.
Thanks for any help.
P.S. I'm using Arduino IDE 1.6.6 - don't know if that is significant - but everything compiles OK.
Re: Missing value from emonTH - SOLVED
I have now solved the problem (with some help from Glyn and Robert).