Temperature Sensor DS18B20 -Arduino Compatible View larger The picture may differ from the original

Temperature Sensor DS18B20 -Arduino Compatible

EC041849

New

Temperature Sensor DS18B20 -Arduino Compatible

More details

7,59 €

Add to wishlist

Description :

Different to thermometer, our digital temperature sensor based on DALLAS ' DS18B20 provides calibrated digital temperature readings directly and precisely without complicated calculation in code. It measures temperatures from -55°C to +125°C (-67°F to +257°F) with ± 0.5°C accuracy from -10°C to +85°C. Here below is a trial using this module. Firstly, connect the digital temperature sensor to digital pin of Sensor Shield, here we connected to digital pin 12.

This module can be used with Arduino Special Sensor Shield V4.0.

You can do some simple design about it,it support“plug and play”.



This module connect with Arduino Special Sensor Shield V4.0.

link the digital Temperature Sensor to No.12 of digital I/O .

Connecting Diagram :

 


This sensor module come with 3 Pin Dual-female Jumper Wire length 300mm as below :
 



 

Then download the corresponding software package,and to decompress into setup menu of Arduino's  hardwarelibraries


Restart Arduino , then use the code below to finish test :

#include <DallasTemperature.h>

DallasTemperature tempSensor;

void setup(void) {
  Serial.begin(9600);
  tempSensor.begin(12); // link DS18B20 to NO.12 pin of digital I/O port
}

void loop(void) {
    // test temperature weather working normally
    switch(tempSensor.isValid())
    {
        case 1:
            Serial.println("Invalid CRC");
            tempSensor.reset(); // reset temperature sensor
            return;
        case 2:
            Serial.println("Not a valid device");
            tempSensor.reset(); // reset temperature sensor                     return;
    }

  // read temperature data from DS18B20
  Serial.print(tempSensor.getTemperature());
  Serial.print("C");
  Serial.println();
}



Then open the Arduino serial port watching tool , and then you can see the data reading
from DS18B20