Home
JAQForum Ver 20.06
Log In or Join  
Active Topics
Local Time 14:52 07 May 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 : Quick DS18B20 question....

Author Message
Grogster

Admin Group

Joined: 31/12/2012
Location: New Zealand
Posts: 9066
Posted: 04:36pm 21 Aug 2014
Copy link to clipboard 
Print this post

As the Micromite manual states on page 17, these temp sensors are available cheaply on eBay, and I have found some nice encapsulated ones here.

The manual states that the sensor can work on parasitic power from the I/O pin, but I also assume I can run the sensor in the "Normal" way, with just the data line coming back to the I/O pin.

QUESTION: Do you still need the 4k7 pull-up resistor if you are using the more standard(non-parasitic) power?

EDIT: Manual says:
  Quote  
The DS18B20 can be powered separately by a 3V to 5V supply or it can operate on parasitic power from the Micromite as shown on the right. Multiple sensors can be used but a separate I/O pin and pullup resistor is required is required for each one.


That's fine, but does that mean you have to use separate pull-ups for each sensor only when used with parasitic power, or separate pull-ups no matter what?Edited by Grogster 2014-08-23
Smoke makes things work. When the smoke gets out, it stops!
 
WhiteWizzard
Guru

Joined: 05/04/2013
Location: United Kingdom
Posts: 2794
Posted: 10:23pm 21 Aug 2014
Copy link to clipboard 
Print this post

For each I/O pin used with a single DS18B20, you need a single pull-up on the I/O pin.

I would advise against using the one-wire search function to address multiple one-wire devices on a single I/O (via bit-banging). The OWSEARCH was dropped (and for good reason IMHO).

As the manual suggests, for multiple sensors, use a single sensor on it's own I/O pin and include one pull-up on that I/O.

If you need a large number of sensors then I would use a dedicated MM and then I2C the data to the main MM (I2C example given in manual App B). This way you could have upto 31 sensors on a 44-pinner and talk to a Master MicroMite with all the necessary data.

For sensors spaced further apart I would recommend a wireless link - currently working on a lower power version of that (but having a few 'teething' issues.

EDIT: And yes, you do need the resistor whether you are using parasitic power or normal power to the sensor.

WW
Edited by WhiteWizzard 2014-08-23
For everything Micromite visit micromite.org

Direct Email: whitewizzard@micromite.o
 
Grogster

Admin Group

Joined: 31/12/2012
Location: New Zealand
Posts: 9066
Posted: 10:47pm 21 Aug 2014
Copy link to clipboard 
Print this post

Understood - thanks.
Smoke makes things work. When the smoke gets out, it stops!
 
Print this page


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

© JAQ Software 2024