Home
JAQForum Ver 20.06
Log In or Join  
Active Topics
Local Time 23:22 29 Apr 2024 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : DS18B20 Error

Author Message
Phil23
Guru

Joined: 27/03/2016
Location: Australia
Posts: 1664
Posted: 03:51pm 02 Jan 2017
Copy link to clipboard 
Print this post

Seem to have one of my Spa sensors returning errors at the moment.

Chicken or the egg scenario.

Came back from a few days away to find 3 of the pipes in the solar panels literally melted, posted pics here.

Temp must have been well in excess of 100°C to achieve that.

But on replacing the pipes the output sensor is coincidently reading wrong.

Few times I saw valid temps, but it spends a lot of time at either -0.1°C or 85.0°C.
85 is 0000 0101 0101 0000 from the sensor, not sure about the -0.1.

Wondering if it's just a fluke or whether one lead to another.

Presume the panels could have generated superheated steam in the right conditions with no flow & maybe that cooked the sensor, which is a fair pipe run away, or the sensor stopped the flow & let the panel overheat.

Any thoughts? Do DS18B20's fail much or go out of spec?

Phil.
 
DaveC166
Regular Member

Joined: 13/09/2012
Location: New Zealand
Posts: 44
Posted: 07:04pm 02 Jan 2017
Copy link to clipboard 
Print this post

Hi Phill,
Ive just replaced a failed DS18B20 used to monitor the Duct temp of my Umite MK2 controlled ventilation system. The data pin had separated from the DS18B20 body.Most likely from the vibration of 5 years of air flow plus not actualy heat shrinking the heatshrink, plus the Hydrogen sulfide gas abundant in Rotorua NZ.
With regard to your varying temp readings I found a quirk with Umites, in that a UMITE MK2(VER 4.7) gave wildly varying readings from a DS18B20 running at 10MHz clock. Rock solid readings at 20Mhz and above.
Another problem ive found is that high temperatures affect the cable performance, resulting in either high or low temps being displayed. A 2.4k ohm or 2.7k ohm pullup resistor solved all problems



 
robert.rozee
Guru

Joined: 31/12/2012
Location: New Zealand
Posts: 2289
Posted: 04:31am 03 Jan 2017
Copy link to clipboard 
Print this post

i believe there is an upper temperature limit for the DS18B20 in 2-wire (parasitic power) configuration. the datasheet i have here states 100 degrees C, but i am sure that i have read elsewhere of a somewhat lower limit, somewhere in the mid 80's.

from the maxim datasheet:
"The use of parasite power is not recommended for temperatures above +100°C since the DS18B20 may not be able to sustain communications due to the higher leakage currents that can exist at these temperatures. For applications in which such temperatures are likely, it is strongly recommended that the DS18B20 be powered by an external power supply."

the abovementioned leakage is referring to normal leakage within the DS18B20 device itself, but my guess would be that the same issue may well apply to cables in a damp environment over extended periods of time.

in any 'mission critical' application it is a far better bet to use the 3-wire configuration (pin 3 connected to the micromite's 3v3 supply), as well as having some sort of backup sensor on the system and doing sanity checks on all readings.


cheers,
rob :-)
 
Phil23
Guru

Joined: 27/03/2016
Location: Australia
Posts: 1664
Posted: 12:00pm 03 Jan 2017
Copy link to clipboard 
Print this post

  robert.rozee said  
in any 'mission critical' application it is a far better bet to use the 3-wire configuration (pin 3 connected to the micromite's 3v3 supply)[quote]

Thanks Rob,

I'm running them in 3 wire configuration, but off the 5V rail, 4.7k pullup.

5 sensors on the bus, all terminated in parallel on some strip board.

1.- Water Temp
2.- Input Temp
3.- Output Temp

All on 3m cables, water temp is just hanging in the Spa, In & out are glued in brass plugs in poly T-pieces.

4.- Air, hangs in space on 2m of cable
5.- Panel temp is attached to the panel on the roof with about a 10 cable run.

Might experiment with the values for the pull-up, the DS18B is obviously functioning in some respect, so at this stage popping a different resistor is easier that drilling another brass plug & potting another sensor.

[Quote]as well as having some sort of backup sensor on the system and doing sanity checks on all readings.


Ah, Yeah....

There's a lot I need to polish up yet....
Still have a couple of manual interventions required, & code is far from complete.

Need to move it all to one of the CGMicro MM+'s I have waiting; all IO pins in use on the 28 pinner, hence the 3 remaining relays that can not be controlled.

Phil

Phil
 
Print this page


To reply to this topic, you need to log in.

© JAQ Software 2024