Product | Sensors | Environment Sensor | Temperature Sensor DS18B20
Temperature Sensor DS18B20
Temperature Sensor DS18B20
41849
More than 10
 
US$3.58 Loading ...
 
Share/Save/Bookmark

                    
Arduino Temperature Sensor DS18B20




We can build electronics projects just as easy as piling bricks. Arduino and community have made the programming much easier than ever before. How about some elixir on hardware part? Maybe it is not yet convenient to make complex interfaces, but we can at least start from the most commonly used modules.

By using electronic bricks, you may connect Arduino compatible boards easily with various digital, analog and I2C/Uart interfaces. These the breadboard-less firm connection are prepared to extensive modules like poteniometers, sensors, relays, servos...even buttons, just plug and play.

Each terminal module has buckled port with VCC, GND and Output, which has corresponding port on the sensing board, with a plain 2.54mm dual-female cable you may start playing already. Buckled brick cables are like cement for bricks, make the connections easier, secure and more professional looking.

It is very interesting Electronic Brick Module

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






Write a review
*Review title
Please enter subject.
*Your review
Please enter review.
*Rating
(Click star icon to comment)
 
Display name
*Enter security code

CAPTCHA

Please enter code
Loading ...

Newsletter

Join our newsletter today, to get latest product information and promotion code.

Join
Loading ...