Strange Behaviour from EmonTX temperature node

I've noticed some strange behaviour from one of my EmonTX Low Power Temperature Nodes.  All has been working perfectly for a few months, but then one node started sending exactly the same temperature for a period four hours.  When seeing this in emoncms I thought this was unlikely to be a true measurement of actual temperature, but as the data then went back to the normal pattern I just dismissed it as a fluke.  However a day or so later I noticed large gaps appearing in the data recorded in emoncms.

Gaps in the data could be a problem with reception, but four hours of the same data seems to be a problem with the emontx node.  The battery voltage is stable at 2.95v.  For now I have just removed and replaced the battery to allow the node to reset and at the moment the data is coming in consistently every minute.

I wondered if anybody else has experienced this issue and what the problem might be.

Jérôme's picture

Re: Strange Behaviour from EmonTX temperature node

This might sound silly, but are you sure it did send the same data all along ?

If the radio link fails (too much noise) and no data is received, this can be displayed as a flat curve in the charts.

Just asking.

john.b's picture

Re: Strange Behaviour from EmonTX temperature node

Hi Jérôme,

Thanks for responding.

I'm positive its data received, I've exported to CSV and checked there is data for every minute during the period and it's four hours of exactly the same temperature.  Also I looked at the battery voltage data for the same node / period and every minute there is data, which is NOT all the same.  So I don't think this issue is to do with the radio link, but perhaps a read error to the temperature sensor?

As for the subsequent gaps in the data; this has never happened before.  I have had consistent data every minute for three months with only the very occasional missed data point.

Interestingly and I think / hope unconnected there is someone else (obviously local) who is transmitting data that showed in my inputs.  The nodes where different and it disappeared thereafter as I assume they changed their network group.  This was a week or so earlier than my problem so I don't think it is connected, but what's your view?

Robert Wall's picture

Re: Strange Behaviour from EmonTX temperature node

"The battery voltage is stable at 2.95v."

There is your problem. The DS18B20 has a minimum supply voltage of 3.0 V, so it is not guaranteed to work at 2.95 V.

(And if your meter is reading high, the true voltage could be less than that).

I suspect what is happening is this: it has an internal scratchpad memory that stores the reading. It's possible that the scratchpad is supplying a stored reading but not getting updated due to the low supply voltage.

 

john.b's picture

Re: Strange Behaviour from EmonTX temperature node

Robert,
I take your point about the voltage and thanks for the feedback, but I'm now confused about the battery life of the low power temperature node.  If 3.0 V is the minimum reliable voltage for the DS18B20 and the data sheet confirms that’s the minimum, then how can the batteries last 138 days with data taken every 10 seconds as implied by the sketch.  When I started out on this I assumed 2.2 volts was the minimum voltage as that is the low battery level set in the sketch.

I vaguely remember reading something on this site about using the sensor at low voltages (2.7 V if my memory serves) specifically to show the validity of the low power temperature node, however I can't find that page anymore.

I have now measured the voltage with a meter as 2.95V the same as that reported by the node.  For reference the same meter measures 3.17V on brand new batteries with no load.  Since I'm only switching the sensor on once a minute and not every 10 seconds I would expect better life than 70 days.

If the voltage is indeed the issue then would it not be better to design the low power temperature node around three AA batteries?  And I guess the next question would be, is that as simple as it sounds, can I just power it with three batteries? At least then the voltage would have some margin to drop from 4.5V before hitting the minimum of that required by the sensor.

Incidentally since I pulled the batteries and re-inserted them the node is working perfectly, but I have now modified the sketch so I can detect when the temp variable is not being updated.

Robert Wall's picture

Re: Strange Behaviour from EmonTX temperature node

"Incidentally since I pulled the batteries and re-inserted them the node is working perfectly,"
That says to me you had some corrosion on the battery contacts, and you had an excessive drop across the resulting contact resistance when it turned on to measure the temperature and transmit. So in the period it was active, the actual working voltage would have been somewhat less than 2.95 V.

You can't use 3 cells because of the upper voltage limit of the RFM12B radio module at 3.8 V, so you're stuck with 2, I'm afraid. I didn't design the sketch, so I can't comment specifically, but my guess is it was found to work down to 2.2 V. That doesn't affect what the data sheet says in any way: it is only guaranteed to work within spec (in all respects) down to 3.0 V. I've no idea which aspects of its performance go out of spec as the voltage reduces, it may well be things that are not important in this application.

john.b's picture

Re: Strange Behaviour from EmonTX temperature node

There is no sign of any corrosion on the contacts and I guess for now I need to monitor the issue and see if it reoccurs.  If it does continue to be a problem I will have to rethink what I’m doing.  I have a Nanode RF running as a web accessible PID temperature controller and it’s using the inside, outside and boiler temperatures from battery powered nodes as process variables, so I don’t want these failing this early in their battery life.

I was toying with the idea of buying an ononGLCD, so one more reliable solution could be to use that to monitor the inside temperature with mains power and re-write my controller so it will still work if either the outside or boiler temperature nodes go down.

Robert Wall's picture

Re: Strange Behaviour from EmonTX temperature node

My digital camera has the same problem: no visible corrosion but when the rechargeable NiMH cells aren't freshly charged, it says 'low battery'. Flip the cover open and twiddle the cells a bit and it's quite happy.

The only thought that might help: take a look at JeeLabs. I think it's there I've seen about using a single cell and a step-up regulator. I can't tell you any more than that - it was many months ago I saw it.

You could also try a large capacitor across the 3.3 V supply - it might help if it really is contact resistance that is causing the problem.

john.b's picture

Re: Strange Behaviour from EmonTX temperature node

Just thought about using 2 Nickel oxyhydroxide batteries such as Duracell Power Pix they're obviously more expensive than alkaline at £1 each, but with 1.7V nominal they should have a longer life before reaching the minimum voltage for the sensor.  Might actually be cheaper than potentially having to ditch alkaline batteries every time the node gets down to 3.0V.

Worth trying if the problem persists.

john.b's picture

Re: Strange Behaviour from EmonTX temperature node

Sorry Robert,

I didn't see your last post before I made my comment about alternative chemistry batteries.  You make a valid point I've had a similar problem with TV remote controls, just twiddle the batteries and it starts working again.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.