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:09] – [TEMPERATURE + HUMIDITY (DHT11)] f1slsprojets:atb:sensor_temp_humid:index [2021/03/04 02:15] (Version actuelle) f1sls
Ligne 1: Ligne 1:
 ====== TEMPERATURE + HUMIDITY (DHT11) ====== ====== TEMPERATURE + HUMIDITY (DHT11) ======
 +{{:projets:atb:sensor_temp_humid:dht11-pinout-for-three-pin-and-four-pin-types-2.jpg?direct&400|}}
 ===== CHARACTERISTICS ===== ===== CHARACTERISTICS =====
   * Operating Voltage 3.3V to 5.5V   * Operating Voltage 3.3V to 5.5V
Ligne 12: Ligne 12:
  
 ===== ARDUINO WIRING ===== ===== ARDUINO WIRING =====
-{{:projets:atb:arduino_ky-015_keyes_temperature_humidity_sensor_module_connection_diagram.png?direct&400|}}+{{:projets:atb:sensor_temp_humid:arduino-dht11-tutorial-3-pin-dht11-wiring-diagram.png?direct&400|}} 
 + 
 +===== 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 SAMPLE ===== 
 <code c> <code c>
 int DHpin = 8; // input/output pin int DHpin = 8; // input/output pin
projets/atb/sensor_temp_humid/index.1614820175.txt.gz · Dernière modification : de f1sls