[Raspberry] Raspberry Kết Nối Cảm Biến Độ Ẩm, Nhiệt Độ

Các thiết bị:
Dây Cắm Test Board Đực Cái 30cm (40 Sợi)
Cảm Biến Độ Ẩm, Nhiệt Độ DHT22
Test Board Cắm MB-102
+ Điện trở 10kOhm

Sơ đồ:
Sơ đồ


Hình 1

Hình 2
Hình 3

Sử dụng:
+ Mở ternimal: wget https://github.com/adafruit/Adafruit_Python_DHT/archive/master.zip
+ Gõ vào terminal:unzip master
+ Gõ vào termianl: cd Adafruit_Python_DHT/
+ Gõ vào terminal: sudo python setup.py install
+ Gõ vào terminal: cd examples/
+ Gõ vào terminal: python AdafruitDHT.py 2302 17

OK. See you soon.

Bài đăng phổ biến từ blog này

Stack And Queue Trong Python

AutoSub File MP4 in Linux By Python Autosub Library

Sửa lỗi Server Error in '/' Application. WebForms UnobtrusiveValidationMode requires a ScriptResourceMapping for 'jquery'. Please add a ScriptResourceMapping named jquery(case-sensitive).