Categorías

  • DHT22/ AM2302 MODULO SENSOR DE TEMPERATURA Y HUMEDAD
Ref. AKC-108.MD0024

Dht22/ am2302 modulo sensor de temperatura y humedad

Stock: 3  
Ref. AKC-108.MD0024
Precio (IVA inc.) 4,30 €
Unidades ≥ 5 ≥ 10 ≥ 15 ≥ 20
DescuentoDescuentoprecio-3%-0,134,17-5%-0,214,08-7%-0,303,99-10%-0,433,87
Si tienes dudas envíanos un WhatsApp
Métodos de pago aceptados

Envío Rápido
en 14h o 24/48h

Pago Seguro
Tarjeta, Bizum...

Garantía
Calidad asegurada

Especialistas
Consulta tus dudas

Especificaciones


El DHT-22 es un dispositivo de bajo costo para medir la humedad y la temperatura. Los sensores DHT están hechos de dos partes, un sensor de humedad capacitiva y un termistor. El dispositivo requiere una fuente de alimentación de 3 a 5V. Utiliza un solo hilo de datos para comunicarse con el Arduino. Tiene una velocidad de actualización bastante lenta y sólo se debe muestrear cada 2 segundos.

Sample code:
// Example sketch for DHT22 humidity - temperature sensor
2 // Written by cactus.io, with thanks to Adafruit for bits of their library. public domain
3
4 #include "cactus_io_DHT22.h"
5
6 #define DHT22_PIN 2 // what pin on the arduino is the DHT22 data line connected to
7
8 // For details on how to hookup the DHT22 sensor to the Arduino then checkout this page
9 // http://cactus.io/hookups/sensors/temperature-humidity/dht22/hookup-arduino-to-dht22-temp-humidity-sensor
10
11 // Initialize DHT sensor for normal 16mhz Arduino.
12 DHT22 dht(DHT22_PIN);
13 // Note: If you are using a board with a faster processor than 16MHz then you need
14 // to declare an instance of the DHT22 using
15 // DHT22 dht(DHT22_DATA_PIN, 30);
16 // The additional parameter, in this case here is 30 is used to increase the number of
17 // cycles transitioning between bits on the data and clock lines. For the
18 // Arduino boards that run at 84MHz the value of 30 should be about right.
18
19 void setup(){
20 Serial.begin(9600);
21 Serial.println("DHT22 Humidity - Temperature Sensor");
22 Serial.println("RH\tTemp (C)\tTemp (F)\tHeat Index (C)\tHeat Index (F)");
23
24 dht.begin();
25 }
26
27 void loop(){
28 // Reading temperature or humidity takes about 250 milliseconds!
29 // Sensor readings may also be up to 2 seconds 'old' (its a very slow sensor)
30 dht.readHumidity();
31 dht.readTemperature();
32
33 // Check if any reads failed and exit early (to try again).
34 if (isnan(dht.humidity) || isnan(dht.temperature_C)) {
35 Serial.println("DHT sensor read failure!");
36 return;
37 }
38
39 Serial.print(dht.humidity); Serial.print(" %\t\t");
40 Serial.print(dht.temperature_C); Serial.print(" *C\t");
41 Serial.print(dht.temperature_F); Serial.print(" *F\t");
42 Serial.print(dht.computeHeatIndex_C()); Serial.print(" *C\t");
43 Serial.print(dht.computeHeatIndex_F()); Serial.println(" *F");
44
45 // Wait a few seconds between measurements. The DHT22 should not be read at a higher frequency of
46 // about once every 2 seconds. So we add a 3 second delay to cover this.
47 delay(3000);
48 }

Información adicional

Datos técnicos

  • Medición: Temperatura y humedad
  • Voltaje: 3-5V
  • Protocolo: Comunicación de un solo hilo
  • Frecuencia muestreo: Cada 2 segundos

Preguntas frecuentes

¿Qué mide el módulo DHT22/AM2302?

Mide temperatura y humedad ambiental.

¿Cuál es el voltaje de operación del sensor DHT22?

Funciona entre 3V y 5V.

¿Cada cuánto tiempo debe muestrear el sensor?

Debe muestrearse cada 2 segundos para evitar errores.

¿Es compatible con Arduino y cómo se comunica?

Sí, usa comunicación con un solo hilo de datos.

¿Tiene código de ejemplo para Arduino?

El paquete incluye código de ejemplo para facilitar su uso.

OTROS PRODUCTOS RELACIONADOS