I have just added a new EmonTX to my home EmonPi monitoring network. I am hoping to use the EmonTX with 3x CTs to measure energy consumption in my cylinder cupboard (immersion heater, solar thermal pump, central heating/DHW pump) and 6x DS18B20 on the breakout to measure various temperatures (cylinder, solar thermal flow/return, heating flow/return, DHW return). I have just turned the system on for the first time. The emonTX data are showing up OK on node 10 on my emonPi with the node firmware showing as V1.6. The CT power data looks OK. However, I am getting no data for any of the 6x temp sensors and instead am seeing accumulating data on the pulse channel. I am presuming that I need to do something with the firmware on the emonTX to be able to see the temperature data.
Grateful for any help on this - be aware I have no previous experience in writing or sending sketches - indeed the last programming I did was in Fortran77 over 30 years ago. I did get the USB to serial programmer just in case I needed it.
Cheers
Jez
Re: DS18B20 Sensors on EmonTX
What sort of emonTx do you have? Presuming it is a V3.4, the default software should be sending 4 powers, rms voltage, then your 6 temperatures, and finally the pulse count - all as integers, which the default emonHub configuration should be interpreting correctly. So something is not as it should be.
Have you restarted your emonTx after connecting all the sensors?
Do you get anything with just one temperature sensor?
Do you have an external 5 V supply powering it? (The internal supply from the ac adapter may not be able to supply enough current for the RFM69CW at maximum power and 6 temperature sensors.)
The first step will be to see if the emonTx is seeing the sensors. Load up the Arduino IDE (instructions) on your computer and using the serial monitor (top right on the IDE window), a USB cable, the programmer and the FTDI port on the EmonTx, see what it says when you reset it.
[Psst... I started with Fortran 4.]
Re: DS18B20 Sensors on EmonTX
Robert
Yes it a brand new EmonTX v3.4.
I have tried restarting with the sensors plugged in but that did not help.
I am using a decent Belkin USB 5v DC power supply for the TX with the separate AC supply for the voltage sampling, I have removed jumper 2 on the board.
I have tried a single temperature sensor directly connected to the RJ45 on the EmonTX, i.e. without the breakout (sensor is the one that came with the emonPi) and that worked fine. I have also checked the 6 temperature sensors wired to the breakout by connecting them to the RJ45 port on the EmonPi and they all work OK on the Pi - with very good correlation between the values on the 6sensors at +/- 0.1deg
I will have a go with your suggestion on seeing what the emonTX says via arduino IDE and get back.
My back up plan is to move the emonPi to the cylinder cupboard and use that to get the data for my 6 temperature locations and the power for the 2 circulation pumps. I can then use the emonTX at my main distribution board to get the power for the immersion heater plus the solar PV and electric import/export that I am currently getting from the Pi - added benefit is that would give me a spare CT to use for another circuit on the consumer unit.
cheers
Jez
Re: DS18B20 Sensors on EmonTX
Just be aware that the emonTx 'sniffs' the inputs at start-up and then does not re-scan again - so you must reset if you change the number of sensors - voltage, CTs and temperature.
Re: DS18B20 Sensors on EmonTX
Tried again by disconnecting everything, reconnecting to the TX and then powering up - didn't do a reset. And this time the 6 temperatures are all working and being seen by the Pi. Not sure why. Didn't do anything different from last time - perhaps a loose RJ45 connection?
Jez
Re: DS18B20 Sensors on EmonTX
It seems as if you had a visitation from the Marcolins. (These are the electrical cousins of Gremlins.)
FWIW, powering up and resetting amount to the same thing as far as the emonTx is concerned - the sketch starts from the beginning and initializes in exactly the same way for each.
Re: DS18B20 Sensors on EmonTX
Strange indeed - but at least it is working now and I am getting good temperature data from my solar thermal system.
Next question is whether there is any logic to the order of the temperature channel No's in the TX relative to the position of the sensor on the breakout board. Checking the sensors on my board gives channel numbers T1,T5,T2,T3,T4,T6 going clockwise starting from the RJ45 ports. So if the power to the TX is lost or the system reset, will these channel assignments be retained on restart?
Jez
Re: DS18B20 Sensors on EmonTX
I think the order in the breakout is irrelevant. What it depends on (I believe, I'm not sure about this) is the order in which the sensors are discovered by their library, and (again I'm not sure) that depends on the order in which they answer the discovery request.
If you go back to the older sketches, there is a utility sketch that gets the serial number, you then manually plugged that into an array in the main sketch. That way, the identity of each was immutable.