Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 07:46 17 Sep 2025 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 : Parasitic power for DS18B20...

Author Message
Grogster

Admin Group

Joined: 31/12/2012
Location: New Zealand
Posts: 9641
Posted: 03:21pm 01 Mar 2015
Copy link to clipboard 
Print this post

Hi folks.

Manual, page 17 talks about using 18B20 temperature sensors.
You can use external supply or parasitic power.

Is it perfectly acceptable to use parasitic power, or is the PREFERRED method to use the pullup resistor and an external supply?

IE: Do you only use parasitic power if you are desperate - you should use external whenever you can?
Smoke makes things work. When the smoke gets out, it stops!
 
robert.rozee
Guru

Joined: 31/12/2012
Location: New Zealand
Posts: 2447
Posted: 05:59pm 01 Mar 2015
Copy link to clipboard 
Print this post

http://datasheets.maximintegrated.com/en/ds/DS18B20.pdf :
"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."

so in applications where the measured temperature is likely to be high, parasitic power should be avoided. i would suggest this includes solar power applications, or when operated in australia

there are also several limitations on what features of the DS18B20 can be used when parasitically powered (one not available being end-of-conversion notification), and i assume that geoff has written the mmbasic routines to work around these limitations. it is possible to detect programmatically if the device is parasitically powered, so some of these features could, in theory, be made available in future mmbasic firmwares.


i'm afraid that a detailed reading of the datasheet is required to get the whole picture.


cheers,
rob :-)
 
ajkw
Senior Member

Joined: 29/06/2011
Location: Australia
Posts: 290
Posted: 09:26pm 01 Mar 2015
Copy link to clipboard 
Print this post

I use external power in my application. Works fine as expected. Parasitic by name parasitic by nature, I think as you say,
  Quote  Do you only use parasitic power if you are desperate - you should use external whenever you can?

My 2 cents.
 
redrok

Senior Member

Joined: 15/09/2014
Location: United States
Posts: 209
Posted: 08:51am 04 Mar 2015
Copy link to clipboard 
Print this post

Hi Robert'
  robert.rozee said   http://datasheets.maximintegrated.com/en/ds/DS18B20.pdf
so in applications where the measured temperature is likely to be high, parasitic power should be avoided. i would suggest this includes solar power applications, or when operated in australia

there are also several limitations on what features of the DS18B20 can be used when parasitically powered (one not available being end-of-conversion notification), and i assume that geoff has written the mmbasic routines to work around these limitations. it is possible to detect programmatically if the device is parasitically powered, so some of these features could, in theory, be made available in future mmbasic firmwares.


i'm afraid that a detailed reading of the datasheet is required to get the whole picture.

cheers,
rob :-)

I agree.
In reading the section called "POWERING THE DS18B20":
There is a method where the device can be delivered more power through the 1 wire buss without using resorting to the the use of a extra Vdd power wire.
In figure 4 they show the use of an external FET.
However, the Micro has a strong pullup when the pin is set to the digital output mode. The timing of this sounds to be a bit critical but could easily supply the 1.5mA required during the conversions. Then switch back to normal open drain mode for the data transfers.
I don't know if Geoff is doing this in his code. It would be cool if he is.
Does anyone know?
Another method is to use a storage capacitor connected to the Vdd pin. A diode, probably a Schottky diode, charges this from the DQ line. Since the DS18B20 conversion takes 200mS and consumes a max of 1.5mA a 1000uF cap would probably be sufficient.
redrok
 
Print this page


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

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025