Cảm biến nhiệt độ MKE-S15 DS18B20 waterproof temperature sensor: Difference between revisions

From MakerLab Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
[[image:mkl-s15_ds18b20_waterproof_temperature_sensor.jpg|thumb|400x400px|MLK-S15 DS18B20 waterproof temperature sensor|link=Special:FilePath/mkl-s15_ds18b20_waterproof_temperature_sensor.jpg]]
[[image:mkl-s15_ds18b20_waterproof_temperature_sensor.jpg|thumb|400x400px|MLK-S15 DS18B20 waterproof temperature sensor|link=Special:FilePath/mkl-s15_ds18b20_waterproof_temperature_sensor.jpg]]
==Giới thiệu==
==Giới thiệu==
Cảm biến nhiệt độ MLK-S15 DS18B20 waterproof temperature sensor được sử dụng rất phổ biến hiện nay để đo nhiệt độ của môi trường không khí, dung dịch hoặc vật thể, cảm biến có khả năng chống nước, sử dụng giao tiếp 1-Wire với chỉ duy nhất 1 dây tín hiệu Digital.
Cảm biến nhiệt độ MLK-S15 DS18B20 waterproof temperature sensor được sử dụng rất phổ biến hiện nay để đo nhiệt độ của môi trường (không khí, dung dịch) hoặc nhiệt độ của vật thể tiếp xúc với cảm biến, cảm biến có khả năng chống nước, sử dụng giao tiếp 1-Wire với chỉ duy nhất 1 dây tín hiệu Digital.


Cảm biến nhiệt độ MLK-S15 DS18B20 waterproof temperature sensor được thiết kế để có thể sử dụng trực tiếp an toàn với các board mạch giao tiếp ở mức điện áp 3.3/5VDC: Arduino, Raspberry Pi, Jetson Nano, Micro:bit,....
Cảm biến nhiệt độ MLK-S15 DS18B20 waterproof temperature sensor được thiết kế để có thể sử dụng trực tiếp an toàn với các board mạch giao tiếp ở mức điện áp 3.3/5VDC: Arduino, Raspberry Pi, Jetson Nano, Micro:bit,....
Line 13: Line 13:
*Chuẩn giao tiếp: Digital 1-Wire
*Chuẩn giao tiếp: Digital 1-Wire
*Điện áp giao tiếp: 0~3.3VDC
*Điện áp giao tiếp: 0~3.3VDC
*Dòng sử dụng: 2.5mA max (khi truyền dữ liệu).
*Khoảng đo nhiệt độ: (-55) ~ 125°C
*Khoảng đo độ ẩm: 20 - 90% RH (sai số 5% RH)
*Sai số: 0.5°C trong khoảng từ (-10°C) ~ 85°C.
*Khoảng đo nhiệt độ: 0-50°C (sai số 2°C).  
*Tần số lấy mẫu tối đa: 1Hz (1 giây 1 lần)
*Kích thước: 27.6 x 35.5mm
*Kích thước: 27.6 x 35.5mm
==Các chân tín hiệu==
==Các chân tín hiệu==
Line 40: Line 38:
* 1 x [[Mạch Vietduino Uno (Arduino Uno Compatible)]]
* 1 x [[Mạch Vietduino Uno (Arduino Uno Compatible)]]
*1 x [[Mạch MakerEDU Shield]]
*1 x [[Mạch MakerEDU Shield]]
*1 x Cảm biến độ ẩm nhiệt độ MLK-S14 DHT11 temperature and humidity sensor
*1 x Cảm biến nhiệt độ MLK-S15 DS18B20 waterproof temperature sensor
'''Bước 2:''' Cắm MakerEdu Shield vào mạch Vietduino Uno.
'''Bước 2:''' Cắm MakerEdu Shield vào mạch Vietduino Uno.


Line 46: Line 44:


'''Bước 4:''' Kết nối Vietduino Uno với máy tính thông qua cáp USB.
'''Bước 4:''' Kết nối Vietduino Uno với máy tính thông qua cáp USB.
[[File:MLK-S14 DHT11 temperature and humidity sensor with MakerEDU Shield.jpg|alt=MLK-S14 DHT11 temperature and humidity sensor with MakerEDU Shield|none|thumb|500x500px|MLK-S14 DHT11 temperature and humidity sensor with MakerEDU Shield]]
[[File:MLK-S15 DS18B20 waterproof temperature sensor with MakerEDU Shield.jpg|alt=MLK-S15 DS18B20 waterproof temperature sensor with MakerEDU Shield|none|thumb|500x500px|MLK-S15 DS18B20 waterproof temperature sensor with MakerEDU Shield]]
 


{{kxninfo
{{kxninfo
Line 55: Line 54:
{| class="wikitable"
{| class="wikitable"
! style="text-align:left;" |Arduino/Vietduino
! style="text-align:left;" |Arduino/Vietduino
!Cảm biến độ ẩm nhiệt độ MLK-S14 DHT11 temperature and humidity sensor
!Cảm biến nhiệt độ MLK-S15 DS18B20 waterproof temperature sensor
|-
|-
|GND
|GND

Revision as of 03:06, 6 August 2021

MLK-S15 DS18B20 waterproof temperature sensor

Giới thiệu

Cảm biến nhiệt độ MLK-S15 DS18B20 waterproof temperature sensor được sử dụng rất phổ biến hiện nay để đo nhiệt độ của môi trường (không khí, dung dịch) hoặc nhiệt độ của vật thể tiếp xúc với cảm biến, cảm biến có khả năng chống nước, sử dụng giao tiếp 1-Wire với chỉ duy nhất 1 dây tín hiệu Digital.

Cảm biến nhiệt độ MLK-S15 DS18B20 waterproof temperature sensor được thiết kế để có thể sử dụng trực tiếp an toàn với các board mạch giao tiếp ở mức điện áp 3.3/5VDC: Arduino, Raspberry Pi, Jetson Nano, Micro:bit,....

thumb
Cảnh báo:

Xin nạp (upload) chương trình trước khi kết nối cảm biến vào mạch Arduino để chắc chắn rằng các chân giao tiếp với cảm biến đã được cấu hình đúng!

Thông số kỹ thuật

  • IC chính: DS18B20 waterproof temperature sensor
  • Điện áp hoạt động: 5VDC
  • Chuẩn giao tiếp: Digital 1-Wire
  • Điện áp giao tiếp: 0~3.3VDC
  • Khoảng đo nhiệt độ: (-55) ~ 125°C
  • Sai số: 0.5°C trong khoảng từ (-10°C) ~ 85°C.
  • Kích thước: 27.6 x 35.5mm

Các chân tín hiệu

MLK-S15 DS18B20 waterproof temperature sensor back
MKL-S13 Ghi chú
GND Chân cấp nguồn âm 0VDC
5V Chân cấp nguồn dương 5VDC
SIG Chân tín hiệu Digital 1-Wire

Kết nối phần cứng

Bước 1: Chuẩn bị phần cứng:

Bước 2: Cắm MakerEdu Shield vào mạch Vietduino Uno.

Bước 3: Kết nối cảm biến vào Port (D9) của MakerEDU Shield.

Bước 4: Kết nối Vietduino Uno với máy tính thông qua cáp USB.

File:MLK-S15 DS18B20 waterproof temperature sensor with MakerEDU Shield.jpg
MLK-S15 DS18B20 waterproof temperature sensor with MakerEDU Shield


thumb
Lưu ý:

Nếu không có sẵn MakerEDU Shield, bạn có thể kết nối trực tiếp cảm biến với Arduino/Vietduino như bảng dưới đây.

Arduino/Vietduino Cảm biến nhiệt độ MLK-S15 DS18B20 waterproof temperature sensor
GND GND
5V 5V
SIG D9

Chương trình mẫu

Template:AnalogExampleCode

Kết quả

Template:Kxndone