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

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 31: Line 31:
{| class="wikitable" border="1"
{| class="wikitable" border="1"
|-
|-
!MKL-S13 / Cổng tín hiệu 1-Wire
!MKL-S15 / Cổng tín hiệu 1-Wire
!Ghi chú
!Ghi chú
|-
|-
Line 46: Line 46:
{| class="wikitable" border="1"
{| class="wikitable" border="1"
|-
|-
!MKL-S13 / Cổng kết nối cảm biến
!MKL-S15 / Cổng kết nối cảm biến
!Ghi chú
!Ghi chú
|-
|-
Line 61: Line 61:
==Hướng dẫn sử dụng với Arduino==
==Hướng dẫn sử dụng với Arduino==
===Các phần cứng sử dụng:===
===Các phần cứng sử dụng:===
* Cảm biến độ ẩm nhiệt độ MKL-S14 DHT11 temperature and humidity sensor
* Cảm biến nhiệt độ MKL-S15 DS18B20 waterproof temperature sensor
* [[Mạch Vietduino Uno (Arduino Uno Compatible)]]
* [[Mạch Vietduino Uno (Arduino Uno Compatible)]]
* [[Mạch MakerEDU Shield]]
* [[Mạch MakerEDU Shield]]
Line 74: Line 74:
# Kết nối Vietduino Uno với máy tính bằng cáp Micro USB, cài đặt Driver theo [[Cách cài đặt Driver cho mạch Arduino Compatible (CP210x / CH34x)|hướng dẫn tại đây]] (có thể bỏ qua bước này nếu đã thực hiện).
# Kết nối Vietduino Uno với máy tính bằng cáp Micro USB, cài đặt Driver theo [[Cách cài đặt Driver cho mạch Arduino Compatible (CP210x / CH34x)|hướng dẫn tại đây]] (có thể bỏ qua bước này nếu đã thực hiện).
# Tiến hành cấu hình Vietduino Uno với phần mềm Arduino IDE tại: '''''Tools>Board>MakerLabVN AVR Boards>Vietduino Uno.'''''
# Tiến hành cấu hình Vietduino Uno với phần mềm Arduino IDE tại: '''''Tools>Board>MakerLabVN AVR Boards>Vietduino Uno.'''''
# Mở chương trình mẫu '''''"MKL-S14_DHT11_temperature_and_humidity_sensor_Serial"''''' trong bộ thư viện: '''''File>Examples>MakerLabVN>Sensors>MKL-S14_DHT11_temperature_and_humidity_sensor''''' trên phần mềm Arduino IDE và nạp chương trình vào Vietduino Uno.
# Mở chương trình mẫu '''''"MKL-S15_DS18B20_waterproof_temperature_sensor_Serial"''''' trong bộ thư viện: '''''File>Examples>MakerLabVN>Sensors>MKL-S15_DS18B20_waterproof_temperature_sensor''''' trên phần mềm Arduino IDE và nạp chương trình vào Vietduino Uno.
# Ngắt kết nối giữa Vietduino Uno và máy tính (tháo cáp Micro USB) để chuẩn bị kết nối với các phần cứng còn lại.
# Ngắt kết nối giữa Vietduino Uno và máy tính (tháo cáp Micro USB) để chuẩn bị kết nối với các phần cứng còn lại.
# Kết nối MakerEDU Shield với Vietduino Uno.
# Kết nối MakerEDU Shield với Vietduino Uno.
# Kết nối Cảm biến độ ẩm nhiệt độ MKL-S14 DHT11 temperature and humidity sensor với MakerEDU Shied qua cổng (D9).
# Kết nối Cảm biến nhiệt độ MKL-S15 DS18B20 waterproof temperature sensor với MakerEDU Shied qua cổng (D9).
# Kết nối Vietduino Uno với máy tính bằng cáp Micro USB để cấp nguồn trở lại cho hệ thống.
# Kết nối Vietduino Uno với máy tính bằng cáp Micro USB để cấp nguồn trở lại cho hệ thống.
# Nhấn nút Reset trên Vietduino Uno hoặc MakerEDU Shield để thấy hệ thống bắt đầu hoạt động.
# Nhấn nút Reset trên Vietduino Uno hoặc MakerEDU Shield để thấy hệ thống bắt đầu hoạt động.
Line 86: Line 86:
{| class="wikitable"
{| class="wikitable"
! style="text-align:left;" |Arduino/Vietduino
! style="text-align:left;" |Arduino/Vietduino
!Cảm biến độ ẩm nhiệt độ MKL-S14 DHT11 temperature and humidity sensor
!Cảm biến nhiệt độ MKL-S15 DS18B20 waterproof temperature sensor
|-
|-
|GND
|GND

Navigation menu