Wish List 0

Ds18B20 Temperature Sensor

Rs. 64.00 Rs. 77.00

Where to use DS18B20 Sensor
-The DS18B20 is a 1-wire programmable Temperature sensor from maxim integrated.
-It is widely used to measure temperature in hard environments like in chemical solutions, mines or soil etc.
-The constriction of the sensor is rugged and also can be purchased with a waterproof option making the mounting process easy.
-It can measure a wide range of temperature from -55°C to +125° with a decent accuracy of ±5°C.
-Each sensor has a unique address and requires only one pin of the MCU to transfer data so it a very good choice for measuring temperature at multiple points without compromising much of your digital pins on the microcontroller.
-How to use the DS18B20 Sensor
-The sensor works with the method of 1-Wire communication.
-It requires only the data pin connected to the microcontroller with a pull up resistor and the other two pins are used for power as shown below.
-The pull-up resistor is used to keep the line in high state when the bus is not in use.
-The temperature value measured by the sensor will be stored in a 2-byte register inside the sensor.
-This data can be read by the using the 1- wire method by sending in a sequence of data.
-There are two types of commands that are to be sent to read the values, one is a ROM command and the other is function command.
-The address value of each ROM memory along with the sequence is given in the datasheet below.
-You have to read through it to understand how to communicate with the sensor.
-If you are planning to interface it with Arduino, then you need not worry about all these.
-You can develop the readily available library and use the in-built functions to access the data.

Applications:
-Measuring temperature at hard environments
-Liquid temperature measurement
-Applications where temperature has to be measured at multiple points

No:    Pin Name             Description
-         Ground         Connect to the ground of the circuit
-          Vcc                Powers the Sensor, can be 3.3V or 5V
-          Data              This pin gives output the temperature value which can be read using 1-wire method  
SPECIFICATIONS:
-Operating voltage  3V to 5V
-Temperature Range  -55°C to +125°C
-Accuracy  ±0.5°C
-Output Resolution  9-bit to 12-bit (programmable)
-Conversion time  750ms at 12-bit 
-Programmable alarm options
-Available as To-92, SOP and even as a waterproof sensor
-Communicates using 1-Wire method
-Programmable Digital Temperature Sensor
-Unique 64-bit address enables multiplexing

OVERVIEW:

-Unique 1-Wire® Interface Requires Only One Port Pin for Communication

-Reduce Component Count with Integrated Temperature Sensor and EEPROM

-Measures Temperatures from -55°C to +125°C (-67°F to +257°F)

-±0.5°C Accuracy from -10°C to +85°C

-Programmable Resolution from 9 Bits to 12 Bits

-No External Components Required

-Parasitic Power Mode Requires Only 2 Pins for Operation (DQ and GND)

-Simplifies Distributed Temperature-Sensing Applications with Multidrop Capability

-Each Device Has a Unique 64-Bit Serial Code Stored in On-Board ROM

-Flexible User-Definable Nonvolatile (NV) Alarm Settings with Alarm Search Command Identifies Devices with Temperatures Outside Programmed Limits

-Available in 8-Pin SO (150 mils), 8-Pin µSOP, and 3-Pin TO-92 Packages

PACKAGE INCLUDES:

1 PCS x Ds18B20 Temperature Sensor


//SOURCE CODE TAKEN FROM BELOW LINK

//https://lastminuteengineers.com/ds18b20-arduino-tutorial/

#include <OneWire.h>

#include <DallasTemperature.h>


// Data wire is plugged into digital pin 2 on the Arduino

#define ONE_WIRE_BUS 2


// Setup a oneWire instance to communicate with any OneWire device

OneWire oneWire(ONE_WIRE_BUS);


// Pass oneWire reference to DallasTemperature library

DallasTemperature sensors(&oneWire);


void setup(void)

{

  sensors.begin(); // Start up the library

  Serial.begin(9600);

}


void loop(void)

  // Send the command to get temperatures

  sensors.requestTemperatures(); 


  //print the temperature in Celsius

  Serial.print("Temperature: ");

  Serial.print(sensors.getTempCByIndex(0));

  Serial.print((char)176);//shows degrees character

  Serial.print("C  |  ");

  

  //print the temperature in Fahrenheit

  Serial.print((sensors.getTempCByIndex(0) * 9.0) / 5.0 + 32.0);

  Serial.print((char)176);//shows degrees character

  Serial.println("F");

  

  delay(500);

}

15 days

Write a review

Please login or register to review