Skip to content

Latest commit

 

History

History
56 lines (31 loc) · 4.58 KB

ds18b20.md

File metadata and controls

56 lines (31 loc) · 4.58 KB

DS18B20 1-Wire Digital Temperature Sensor

  • DS18B20 Digital temperature sensor + extras ID: 374 - $3.95 : Adafruit Industries, Unique & fun DIY electronics and kits 搭配 4.7k 上拉電阻 #ril

    • These 1-WIRE digital temperature sensors are fairly precise (±0.5°C over much of the range) and can give up to 12 bits of precision from the onboard DIGITAL-TO-ANALOG CONVERTER.

      They work great with any microcontroller using a SINGLE DIGITAL PIN, and you can even CONNECT MULTIPLE ONES TO THE SAME PIN, each one has a UNIQUE 64-BIT ID burned in at the factory to differentiate them. Usable with 3.0-5.0V systems.

      對外走 1-Wire Protocol,難怪可以帶這麼多資訊。

    • The only downside is they use the DALLAS 1-WIRE PROTOCOL, which is somewhat complex, and requires a bunch of code to parse out the communication. There's a great Arduino library for 1-Wire, but some microcontrollers do not have support for 1-Wire so be sure to check!

    • We toss in a 4.7k resistor, which is required as a PULLUP from the DATA to VCC line when using the sensor. We don't have a detailed tutorial up yet but you can get started by using the Dallas Temperature Control Arduino library which requires also the OneWire Library.

      市面上 DS18B20 轉換模組,就是內建立上拉電阻而已。

  • 葉難: Arduino練習:溫度感測DS18B20 (2013-01-06) #ril

  • 阿簡生物筆記: Arduino+兩個DS18B20溫度感應器的應用 (2015-01-03) #ril

    • 溫度感測器,選擇這種DS18B20的不鏽鋼防水測線的產品,一條在100元以內。選擇它的原因是因為可以用很簡單的方式接多個DS18B20。

    • 接線方式 -- 溫度感測器

      • DS18B20--Arduino、藍線(Data)--D2、紅線--5V、黑線--GND --> 資料為什麼不是接 analog??
      • 還要在紅線藍線之間再加一個4.7k的電阻
  • ds18b20测温电路图详解 - 电子发烧友网 #ril

轉換模組 ??

防水型 ??

  • 多加了一層,溫度感覺有誤差?

參考資料:

參考資料 {: #reference }

相關:

  • TMP36 是另一個溫度傳感器,從類比輸出就能推算出溫度,使用上較簡單 -- 沒有 1-Wire 協定、不用上拉電阻。