Τεχνολογία αισθητήρων θερμοκρασίας

Ψηφιακός αισθητήρας θερμοκρασίας DS18B20 Σύνδεση Arduino

Κατασκευάστε ένα απλό κύκλωμα συνδέοντας τον ψηφιακό αισθητήρα DS18B20 στο Arduino

The DS18B20 digital temperature sensor is a one-bus digital temperature sensor produced by DALLAS, USA. It has a wide temperature measurement range (-55℃~+125 ℃) and an inherent temperature measurement resolution of 0.5℃. DS18B20 supports multi-point networking function, and multiple DS18B20 can be connected in parallel on the only three wires to achieve multi-point temperature measurement. The measurement results are transmitted serially in 9~12-bit digital quantity.

Let’s connect the DS18B20 to the Arduino. The connections are straightforward. Begin by connecting VDD to the Arduino’s 5V pin and GND to ground.

Για να συνδέσετε τον ψηφιακό αισθητήρα θερμοκρασίας DS18B20 στο Arduino, πρέπει να κάνετε τα παρακάτω βήματα:

Pin functions of DS18B20 digital temperature measurement chip

Pin functions of DS18B20 digital temperature measurement chip

Σύνδεση υλικού:
Συνδέστε τον ακροδέκτη VCC του DS18B20 στον ακροδέκτη τροφοδοσίας 3,3 V του Arduino.
Συνδέστε τον ακροδέκτη GND του DS18B20 στον πείρο γείωσης του Arduino.
Συνδέστε τον ακροδέκτη δεδομένων του DS18B20 στον ακροδέκτη GPIO του Arduino (για παράδειγμα, GPIO4).
Συνδέστε μια αντίσταση έλξης 4,7 kΩ μεταξύ της ακίδας δεδομένων και της ακίδας τροφοδοσίας 3,3 V.

‌Software Configuration‌:
Make sure you have installed the Arduino IDE and installed the supporting libraries for the Arduino development board in the IDE.
Write code in the Arduino IDE to read the temperature data from the DS18B20 sensor.

The DS18B20 sensor is unique in that its unique 1-Wire® interface requires only one port pin for communication, and each device has a unique 64-bit serial code stored in the onboard ROM. Εξάλλου, it supports power supply via the data line, with a power supply range of 3.0V to 5.5V, making it highly flexible in a variety of applications. Applications for DS18B20 include thermostats, industrial systems, consumer products, θερμόμετρα, or any thermal sensitive systems, και τα λοιπά

The DS18B20 is a 1-Wire digital temperature sensor from Maxim IC. Reports degrees Celsius from -55 να 125 (+/-0.5) με 9 να 12 digits of accuracy. Each sensor is engraved with a unique 64-bit serial numberallowing a large number of sensors to be used on one data bus.

Functional components of connecting the DS18B20 digital temperature sensor to Arduino

Functional components of connecting the DS18B20 digital temperature sensor to Arduino

Χαρακτηριστικά:
Unique 1-Wire® interface requires only one port pin for communication;
Each device has a unique 64-bit serial code stored in onboard ROM;
Multidrop capability simplifies distributed temperature sensing applications;
No external components required;
Can be powered via the data line.
Το εύρος τροφοδοσίας είναι 3,0V έως 5,5V;
Measures temperature from –55°C to +125°C (–67°F to +257°F) ±0.5°C Accuracy is –10°C to +85°C;
Thermometer resolution is user selectable from 9 να 12 κομμάτια;
Converts temperature to a 12-bit digital word in 750 milliseconds (max);
User definable nonvolatile (NV) alarm settings;
Alarm search command identifies and addresses devices with temperatures outside programmed limits (temperature alarm condition);
Applications include thermostats, industrial systems, consumer products, θερμόμετρα, or any heat sensitive system.

Βήμα 2: What You Need:
To build the thermometer, you will need the following items:
An Arduino board (UNO, DUE, Μικρο, και τα λοιπά.).
A waterproof DS18B20 sensor and a 4.7k resistor.
Jumper wires to connect everything together.
Some stores sell sensors with a 4.7k resistor.

Κατασκευάστε ένα απλό κύκλωμα συνδέοντας τον ψηφιακό αισθητήρα DS18B20 στο Arduino

Κατασκευάστε ένα απλό κύκλωμα συνδέοντας τον ψηφιακό αισθητήρα DS18B20 στο Arduino

Βήμα 3: Build a simple circuit
To print the data from the DS18B20 on the serial monitor of the IDE, you have to build the circuit as per the schematic.
First plug the sensor into the breadboard and connect its pins to the Arduino using jumpers in the following order: καρφίτσα 1 to GND; καρφίτσα 2 to any digital pin (καρφίτσα 2 in our case); καρφίτσα 3 to +5V or +3.3V and finally the pull-up resistor.