TEMPERATURE + HUMIDITY (DHT11) []

Outils pour utilisateurs

Outils du site


TEMPERATURE + HUMIDITY (DHT11)

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentesRévision précédente
Prochaine révision
Révision précédente
projets:atb:sensor_temp_humid:index [2021/03/04 02:10] – [TEMPERATURE + HUMIDITY (DHT11)] f1slsprojets:atb:sensor_temp_humid:index [2021/03/04 02:15] (Version actuelle) f1sls
Ligne 13: Ligne 13:
 ===== ARDUINO WIRING ===== ===== ARDUINO WIRING =====
 {{:projets:atb:sensor_temp_humid:arduino-dht11-tutorial-3-pin-dht11-wiring-diagram.png?direct&400|}} {{:projets:atb:sensor_temp_humid:arduino-dht11-tutorial-3-pin-dht11-wiring-diagram.png?direct&400|}}
-===== CODE SAMPLE =====+ 
 +===== HOT TO USE A DHTXX ===== 
 +  * https://learn.adafruit.com/dht/using-a-dhtxx-sensor 
 + 
 +===== CODE SAMPLES ===== 
 + 
 +<code c> 
 +#include <dht.h> 
 + 
 +dht DHT; 
 + 
 +#define DHT11_PIN 7 
 + 
 +void setup(){ 
 +
 + 
 +void loop(){ 
 +  int chk DHT.read11(DHT11_PIN); 
 +  delay(1000); 
 +
 +</code> 
 <code c> <code c>
 int DHpin = 8; // input/output pin int DHpin = 8; // input/output pin
projets/atb/sensor_temp_humid/index.1614820211.txt.gz · Dernière modification : de f1sls