- Motorisé
- Outils
-
Outils de dev.
-
Electronique
-
Puissance et Energie
- Connecteurs et Fils
- Grove
- Périphériques USB
- Moteur et servo-moteurs
- LEDs & Lampes
- Assembly kits
- Domotique
- Break-out Boards
- Réseau
- Bases de l'électronique
- Circuits imprimés (PCB)
- Son
- Circuits intégrés (Chips, puces, ICs)
- Connectivité sans fil
- Senseurs
- Interface Homme-Machine
- CMS / SMD
- Autres
-
Puissance et Energie
- Prototypage
DHT ProShield DHT-22 - (Wemos D1 Mini)
11,00 €
DHT Pro Shield is a digital temperature and humidity sensor shield based DHT22.
Features:
The temperature and humidity data read from sensor is the result of the last measurement (the sensor will measure after you read).
To get real-time data, you need read twice.
But not recommended to repeatedly reading sensor, reading interval should be more than 2 seconds.
Technical specs:
- Temperature: -40~80°C (±0.5°C)
- Humidity: 0-99.9%RH (±2%RH)
Pin:
D1 mini | Shield |
D4 | Data out |
Arduino Code:
- Install DHT sensor library
- Find code in Arduino IDE:
File->Sketchbook->libraries->D1_mini_Examples->04.Shields->DHT_Shield
NodeMCU Code:
- Build firmware from Marcel’s NodeMCU custom build cloud service.
- Flash firmware by esptool-ck
- Example
pin = 4
status, temp, humi, temp_dec, humi_dec = dht.read(pin)
if status == dht.OK then
-- Integer firmware using this example
print(string.format("DHT Temperature:%d.%03d;Humidity:%d.%03drn",
math.floor(temp),
temp_dec,
math.floor(humi),
humi_dec
))
-- Float firmware using this example
print("DHT Temperature:"..temp..";".."Humidity:"..humi)
elseif status == dht.ERROR_CHECKSUM then
print( "DHT Checksum error." )
elseif status == dht.ERROR_TIMEOUT then
print( "DHT timed out." )
end
SENWEMDHT22
1 Produit
Nouveau
Vous aimerez aussi