-
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的電阻
-
-
Raspberry Pi 3 Model B 與 1-Wire DS18B20 之應用 - 妖恫程式部落 (2017-11-15) 中間電路圖提到 "此為 DS18B20 電路板模組之接線方法,如果是 DS18B20 元件,須使用上拉電阻"。
-
YD-TECH 源達科技股份有限公司 - #32 傳感器 Temp 18B20 溫度感測器 模組 Arduino可用 KITK193732 範例程式用到
OneWire.h
#ril -
PChome Online 商店街 - 飆機器人電子商城 - Arduino電子積木 防水DS18B20 溫度傳感器轉換模組 NT$63 不含防水 DS18B20 溫度感測器
-
DS18B20 數位溫度感測器模組 (PDF) 用了電路板模組,但程式還是得用
DallasTemperature.h
(背後引用OneWire.h
) #ril -
DS18B20 水溫感測模組 – Motoduino 有轉換器,但接頭是 RJ11。
- 多加了一層,溫度感覺有誤差?
參考資料:
- DS18B20 防水溫度感測器 SparkFun 原廠 NT$389 #ril
- 防水型 DS18b20 溫度感測器 100CM 長度 帶不鏽鋼探頭 - 台灣智能感測科技 NT$70
- 100cm長度 / 1米防水探針型熱電偶溫度感測器 不銹鋼封裝 防水型 DS18b20溫度感測器 - 台灣物聯科技 TaiwanIOT Studio NT$62 下方電路圖資料線有接上拉電阻 4.7K
- DS18B20 Datasheet (PDF)
相關:
- TMP36 是另一個溫度傳感器,從類比輸出就能推算出溫度,使用上較簡單 -- 沒有 1-Wire 協定、不用上拉電阻。