CATEGORIES

My Account

CATEGORIES
Your Cart

DS18B20 Temperature Sensor

DS18B20 Temperature Sensor
DS18B20 Temperature Sensor
Orders placed before 16:30 on weekdays are sent on the same day. Free shipping over 150 RON.
5.06RON
Ex Tax: 5.06RON
  • Stock: In Stock
  • Model: A0301.DS18B20

DS18B20 Temperature Sensor

 

The DS18B20 is a digital temperature sensor that provides 9 to 12-bit (configurable) temperature readings over a 1-Wire interface. Here’s detailed information about the DS18B20 sensor:

 

Features:
 

  1. Temperature Range:
    • Operating: -55°C to +125°C
  2. Accuracy:
    • ±0.5°C from -10°C to +85°C
  3. Resolution:
    • Configurable from 9 to 12 bits, with the default being 12 bits.
  4. Interface:
    • Uses a 1-Wire interface, which allows multiple sensors to be connected on the same data line.
  5. Unique 64-Bit Serial Code:
    • Each DS18B20 has a unique 64-bit serial code, allowing multiple sensors to be connected and identified on the same 1-Wire bus.
  6. Power Supply:
    • Can be powered by an external power supply (3.0V to 5.5V) or parasitically from the data line.
  7. Alarm Functionality:
    • Programmable alarm triggers for upper and lower temperature limits.

 

 

Applications:
 

  • Temperature Measurement: Ideal for monitoring temperatures in a wide range of applications, including HVAC systems, environmental monitoring, and food processing.
  • Industrial Automation: Used for precise temperature control in industrial processes.
  • Consumer Electronics: Incorporated into home automation systems for climate control.
  • Data Logging: Suitable for temperature data logging applications.

 

Example Circuit:
 

Here's how you might connect a DS18B20 sensor to an Arduino:

  • VDD: Connect to 3.3V or 5V (depending on your Arduino model).
  • GND: Connect to ground.
  • DQ (Data Line): Connect to a digital pin on the Arduino (e.g., D2) with a 4.7k ohm pull-up resistor between DQ and VDD.

 

Arduino Sample Code:
 

You need to install the "OneWire" and "DallasTemperature" libraries in the Arduino IDE to interface with the DS18B20 sensor.

#include <OneWire.h>
#include <DallasTemperature.h>

// Data wire is connected to Arduino pin 2
#define ONE_WIRE_BUS 2

// Setup a oneWire instance to communicate with any OneWire devices
OneWire oneWire(ONE_WIRE_BUS);

// Pass our oneWire reference to Dallas Temperature.
DallasTemperature sensors(&oneWire);

void setup() {
  Serial.begin(9600);
  sensors.begin();
}

void loop() {
  sensors.requestTemperatures(); // Send the command to get temperatures

  // Print the temperature in Celsius
  Serial.print("Temperature: ");
  Serial.print(sensors.getTempCByIndex(0)); // We only have one sensor, so we use index 0
  Serial.println(" °C");

  delay(1000); // Wait for a second before taking another reading
}

 

Explanation:
 

  • Libraries: Include the OneWire and DallasTemperature libraries to communicate with the DS18B20 sensor.
  • Pin Definition: Define the digital pin (D2) connected to the DS18B20 data line.
  • Setup: Initialize serial communication and the DallasTemperature library.
  • Loop: Request temperature readings from the sensor and print the temperature in Celsius to the Serial Monitor every second.

This example demonstrates how to interface the DS18B20 sensor with an Arduino for accurate temperature measurement. Adjust the code and wiring as needed based on your specific setup and requirements.

Your orders placed before 16:30 on weekdays are dispatched the same day.

Write a review

Note: HTML is not translated!
Rating
Bad Good

Category Products

IRF740 N-Channel Power MOSFET in TO-220 PackageThe IRF740 is a high-voltage, N-channel power MOSFET engineered for swift switching applications. With ..
4.00RON
Ex Tax:4.00RON
Add to Cart
 Original Integrated Circuit TDA1022PTDA series integrated circuits (ICs) are a family of components designed for various functions such as audio ampl..
32.20RON
Ex Tax:32.20RON
Add to Cart
Brand: Philips
TDA2582 Integrated Circuit Original PhilipsTDA series integrated circuits (ICs) are a family of components designed for various functions such as audi..
14.72RON
Ex Tax:14.72RON
Add to Cart
0.0047uF 250VAC GPF - MKP X2 Polypropylene Film Capacitor  The 0.0047 µF 250V GPF - MKP X2 capacitor has specific characteristics and is sui..
20.70RON
Ex Tax:20.70RON
Add to Cart
0.1F 5.5V Super Capacitor: High-Performance Battery-Type Superfarad CapacitorIntroducing our high-performance 0.1F 5.5V Super Capacitor, a battery-typ..
11.09RON
Ex Tax:11.09RON
Add to Cart
0.1F 5.5V H-Type Super Capacitor: High-Performance Electronics ComponentIntroducing the 0.1F 5.5V H-Type Super Capacitor, a high-capacity, battery-lik..
10.81RON
Ex Tax:10.81RON
Add to Cart

WhatsApp Chat

Hi Guest! Please click one of our representatives Below To Chat On WhatsApp.