DS18B20 Digital Temperature Sensor | Botshop

DS18B20 Digital Temperature Sensor

R25.00

5 in stock

Purchase this product now and earn 25 Bot Points!
SKU: ds18-L28 Categories: , Tags: ,

Description

While there are many types of temperature sensors available in the market, the DS18B20 Temperature Sensor form DALLAS is the best choice in applications which require high accuracy and high reliability. Its ultra-small size, low hardware overhead, strong anti-interference capability and high accuracy, together with other additional features makes DS18B20 even more popular among users. For electronic enthusiasts and hobbyists, the DS18B20 is a good start for learning and developing temperature-dependent prototypes.

FEATURES

  • Digital temperature conversion and output
  • Advanced single-bus data communication
  • Maximum 12-bit resolution, accuracy up to ±0.5 degrees Celsius
  • Parasitic mode available
  • Temperature detection range: -55 ° C ~ +125 ° C (-67 ° F ~ +257 ° F)
  • Built-in EEPROM and temperature limit

Example Sketch & Diagram

Library: DallasTemperature.zip

DS18S20-hookup

Code

#include <OneWire.h>
#include <DallasTemperature.h>
#define ONE_WIRE_BUS 2
OneWire oneWire(ONE_WIRE_BUS);
DallasTemperature sensors(&oneWire);

void setup(void){
 Serial.begin(9600);
 Serial.println("Dallas Temperature IC Control Library Demo");
 sensors.begin();
}

void loop(void){ 
 Serial.print("Requesting temperatures...");
 sensors.requestTemperatures(); 
 Serial.println("DONE");
 Serial.print("Temperature for the device 1 (index 0) is: ");
 Serial.println(sensors.getTempCByIndex(0)); 
}

 

Additional information

Weight 0.10 kg

Reviews

There are no reviews yet.

Only logged in customers who have purchased this product may leave a review.