CATEGORIES

My Account

CATEGORIES
Your Cart

DS18B20 Temperature Sensor

DS18B20 Temperature Sensor
Out of Stock
DS18B20 Temperature Sensor
Orders placed before 16:30 on weekdays are sent on the same day. Free shipping over 150 RON.
5.40ron
100 or more 3.68ron
1000 or more 2.65ron
  • Stock: Out of Stock
  • Model: SNA007.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.

There are no reviews for this product.

Write a review

Note: HTML is not translated!
Bad           Good

Category Products

0.0047uF 250VAC GPF - MKP X2 Polypropylene Film Capacitor  The 0.0047 µF 250V GPF - MKP X2 capacitor has specific characteristics and is sui..
22.10ron
Add to Cart
Electrolytic CapacitorElectrolytic capacitors are common components used in various electronic applications for tasks such as storing electrical energ..
0.69ron
Add to Cart
Electrolytic CapacitorElectrolytic capacitors are common components used in various electronic applications for tasks such as storing electrical energ..
0.20ron
Add to Cart
0.33 uF 250V Polyester Capacitor
Out of Stock
0.33 uF 250V Polyester CapacitorOur 250V polyester capacitors are designed for a variety of electronic applications, providing reliable performance an..
0.49ron
Out of Stock
0.47 uF 250V Polyester CapacitorOur 250V polyester capacitors are designed for a variety of electronic applications, providing reliable performance an..
0.74ron
Add to Cart
Electrolytic CapacitorElectrolytic capacitors are common components used in various electronic applications for tasks such as storing electrical energ..
0.20ron
Add to Cart

WhatsApp Chat

We are currently out of business hours, you can send a message from the contact section for support.