DS18B20 temperature sensor connected to MCU
DS18B20 is a commonly used digital temperature sensor. It outputs digital signals, has the characteristics of small size, 낮은 하드웨어 오버헤드, 강력한 간섭 방지 능력, 높은 정밀도, and is widely used.
DS18B20 is a commonly used digital temperature sensor. It outputs digital signals, has the characteristics of small size, 낮은 하드웨어 오버헤드, 강력한 간섭 방지 능력, 높은 정밀도, and is widely used.
DS18B20 is a digital temperature sensor that uses a single bus timing to communicate with the host. Only 1 Wire is needed to complete the temperature data reading;
DS18B20 has a built-in 64-bit product serial number for easy identification. Multiple DS18B20 sensors can be connected to 1 철사, and through 64-bit identity authentication, the temperature information collected from different sensors can be read separately.
Today I will show you how to use the DS18B20 digital temperature sensor with an Arduino so you can measure the temperature of air, liquids such as water, and the ground.
To connect the DS18B20 digital temperature sensor to Arduino, you need to do the following steps:
Hardware connection:
Connect the VCC pin of DS18B20 to the 3.3V power pin of Arduino.
Connect the GND pin of DS18B20 to the ground pin of Arduino.
Connect the data pin of DS18B20 to the GPIO pin of Arduino (예를 들어, GPIO4).
Connect a 4.7kΩ pull-up resistor between the data pin and the 3.3V power pin.