Raspberry Pi_Kor_25.8.2 digital sensor DS18b20를 이용한 온도 측정

25.8.2 digital sensor DS18b20를 이용한 온도 측정

25.8.2.1 DS18B20 sensor 특징

시중에는 온도를 측정하는 여러 가지의 센스가 있지만, Raspberry Pi는 ADC (Analog to Digital Converter) 장치가 없으므로 TMP36과 같은 analog 온도 sensor는 직접적으로 사용할 수 없다.

여기서는 digital sensor인 DS18B20을 Raspberry Pi와 직접 연결하여 온도를 측정할 것이다.

시중에서 판매되는 DS18B20 sensor에는 여러 가지가 있는데, 아래 그림과 같이 원래의 원형 sensor도 있고, 일반적인 DS18B20 sensor를 Arduino와 같은 실험용 interface board에서 용이하게 사용할 수 있도록 약간 변형한 것도 있다. 두 가지 모두 모든 성능과 특징은 동일하지만 connector의 배열 위치가 약간 다르게 되어 있다. 어떤 것을 사용하더라도 pin의 위치만 고려하면 모든 것이 동일하다.

Raspberry Pi_Eng_25.8.2 Measuring Temperature with Digital Sensor DS18b20

25.8.2 Measuring Temperature with Digital Sensor DS18b20

25.8.2.1 Features of DS18B20 Sensor

There are many sensors to measure temperature on the market, but Raspberry Pi does not have an ADC (analog to digital converter), so analog temperature sensors like TMP36 can not be used directly.

Here we will measure temperature by connecting the digital sensor DS18B20 directly to Raspberry Pi.