透過將 DS18B20 數位感測器連接到 Arduino 來建構一個簡單的電路

DS18B20 數位溫度感測器連接 Arduino

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 (for example, GPIO4).
Connect a 4.7kΩ pull-up resistor between the data pin and the 3.3V power pin.

繼續閱讀