Go Down

Topic: Multiple Temperature Sensors (Read 2474 times) previous topic - next topic


Hello People!
Can anyone help me with a doubt ?
I can use multiple temperature sensors in one arduino board ?

I have a datacenter and I need control temperature of room.
I need put multiple sensors around the room.
It's possible ? Or I need 1 arduino board for one sensor ?

Thanks !

André Otta


I think this solved my problem...


I'm right ?
André Otta


Check the DS18B20 sensor  - http://milesburton.com/Dallas_Temperature_Control_Library -

enough samples to get you up and running!
Rob Tillaart

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


Check the DS18B20 sensor  - http://milesburton.com/Dallas_Temperature_Control_Library -

enough samples to get you up and running!

And it should be pointed out that many of them can be strung together on one OneWire bus and use only one Arduino pin for the lot!

Despite being called the OneWire bus you need Vcc and GND too, so its three wires (there is a parasite mode which uses only 2 wires, but its trickier to get working well I think.)
[ I will NOT respond to personal messages, I WILL delete them, use the forum please ]


Thanks for your help! :)

When you say "use only one Arduino pin for the lot", the exit of data is all 3 temperatures ?
Because the arduino use serial data, it's right ?
Thanks again!

André Otta


Each DS18B20 has a serial number, so the temperatures from each are reported separately.


1-wire is also called Microlan by the manufacturer... the idea being that each device uses a unique serial number and behaves like a slave "HOST" on the 1-wire network bus... (LAN).  Therefore, you can  have multiple sensors and only use 1 arduino signalling pin.


André Otta


Take a look at Rik's blog here:

He goes through the whole process of setting up and using multiple temperature sensors with Arduino, lots of code examples etc..

Also some How-To here:  http://arduino-info.wikispaces.com/Brick-Temperature-DS18B20 
At the bottom you will also see a waterproof version of the same sensor.
Regards, Terry King terry@yourduino.com  - Check great prices, devices and Arduino-related boards at http://YourDuino.com
HOW-TO: http://ArduinoInfo.Info

Go Up

Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

via Egeo 16
Torino, 10131