Pages: [1]   Go Down
Author Topic: arduino + sensor ds18b20  (Read 2416 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 8
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi!
Today, I need your help about a digital sensor. I know to use an analogic sensor but I present to the group of TPE in school a sensor ds18b20 that is a digital Sensor.
I need make an arduino program for exploit the data of this sensor to show the temperature.
Please help me, the datasheet of the componnent don't help me.
Thank for your answer !
Logged

Offline Offline
Edison Member
*
Karma: 58
Posts: 2078
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

It uses the OneWire library, and a special protocol. That is not something you (or me) is able to write from scratch.

You need to use a library, and a 4k7 pull-up resistor to 5V. You can attach more than one DS18B20 to the same "OneWire".

The OneWire library, http://playground.arduino.cc/Learning/OneWire
The DallasTemperature library, http://milesburton.com/Dallas_Temperature_Control_Library

Most use the OneWire library with the DallasTemperature library.
I used only the OneWire library, and I used the included example code for the DS18B20.
Logged

Pages: [1]   Go Up
Jump to: