Pages: [1]   Go Down
Author Topic: Multiple temperature sensors.  (Read 802 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Full Member
***
Karma: 0
Posts: 111
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I'd like to add multiple temperature sensors to a project I have. Problem is I have a limited number of pins left to use. 4 Analogue pins and maybe a couple of digital pins.

I would like to use 8 sensors ( 2 lots of four).
 Simplest solution would seem to use the single wire type sensors. Can I use 8 of them on a single input pin? Any examples of this about?
Next could be 2 sensors per analogue pin and switching power to either one via a digital pin. Would this work?
Another way could be to use a second Arduino but I would rather avoid that.

Any suggestions?

Logged

Brunsbüttel, SH, F.Rep.GERM
Offline Offline
God Member
*****
Karma: 4
Posts: 596
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

I usually use a MUX (like 74hc4051), but that costs 3 control lines, so that i often use a 74hc595 in order to get more digital IO lines...  smiley-roll

but one-wire works fine, 2... but it seemed to be more expensive and less accurate to me (LM35/LM75)...
Logged

-Arne

Grand Blanc, MI, USA
Offline Offline
Faraday Member
**
Karma: 95
Posts: 4086
CODE is a mass noun and should not be used in the plural or with an indefinite article.
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

The Maxim DS18B20 one-wire thermometers along with this library have worked well for me. The datasheet says ±0.5°C Accuracy from -10°C to +85°C and that fits with my experience. I think I've had up to five running together on a single wire, although just on a breadboard.
Logged

MCP79411/12 RTC ... "One Million Ohms" ATtiny kit ... available at http://www.tindie.com/stores/JChristensen/

Global Moderator
Netherlands
Offline Offline
Shannon Member
*****
Karma: 217
Posts: 13742
In theory there is no difference between theory and practice, however in practice there are many...
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

3 x DS18B20 in a star with 2 meter cable (equal length) per sensor - don't forget a pull up! - ran for 5-6 months
Logged

Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)

Norway
Offline Offline
Sr. Member
****
Karma: 0
Posts: 344
Just dip it in mercury and power it up
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I use 8 pcs DS18B20, in a star network, NON-PARASITIC i.e. I use 3 wires (pwr, gnd, data) on all sensors total (only one pin used for data for 8 sensors, all wires of same colour just connected together with a screw-terminal + 1 resistor between data-and-power)
My sensors are encased in a stainless-probe-tube, actually idendical to Adafruit's sensors but cheaper smiley-wink
( http://www.aliexpress.com/product-fm/437071773-Waterproof-DS18b20-temperature-probe-temperature-sensor-Stainless-steel-package-Free-DS18b20-Technical-Manual-wholesalers.html )
about $4 a piece...

I did test all my 10 sensors together (bought spares) and it worked just fine. Only problem is that the sensors need some time to digitalize the temp readings (how much, depends on the accuracy you need or think you need)

I use address based calling to the sensors opposed to just ask for next, next....
the drawback is of course that if one sensor has to be replaced, I need to recode my program with the new sensor address...

D.
« Last Edit: September 17, 2011, 08:01:04 pm by ArduinoM » Logged

Sussex UK / CT USA
Offline Offline
Edison Member
*
Karma: 0
Posts: 1028
Forums forever
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

A more hardware intensive answer... which will spare you mastering advanced 1-Wire work!... is...

Peter Anderson's TM#129 (US$20 at 6/05)

... which you can read about at...

http://www.arunet.co.uk/tkboyd/e1dhw.htm#gotoPA

I bought one from him at eBay recently, $12 incl p&p... he has a stock of these KITS... no PCB, but few components to wire together, and good documentation if you are not a complete beginner...

http://www.ebay.co.uk/itm/OneWire-Controller-Basic-Stamp-and-PICAXE-/200641982290?pt=LH_DefaultDomain_0&hash=item2eb731af52
Logged

Pages: [1]   Go Up
Jump to: