DHT11 temp and humidity sensor


#1

hello, is it possible to make a DHT11 works this an UNO board ?

thank you


#2

Hi Weiss_Louis,

Could you make it a little clearer for your question.
Do you ask if the Me Temperature and Humidity Sensor can work with the Arduino uno board?
If yes, here is a link to you for ference: http://learn.makeblock.com/en/me-temperature-and-humidity-sensor/


#3

i want to use a program block like the Mbot ///temperature(port) slot1// for an arduino UNO,

how can i make it works?


#4

Hi Weiss_Louis,

To work with Arduino UNO, you need program with Arduino software yourself.
For the Graphical Programming, you may use the Me UNO Shield (http://learn.makeblock.com/en/me-uno-shield/) with the Arduino uno, then the Me Temperature and Humidity Sensor can work with Arduino uno with the graphical program block.


#5

I have a MegaPi and also wish to interface to a DHT11 sensor to get both temperature and humidity. For hardware I have the 3-pin sensor mounted on a board with a pullup resistor (http://www.uugear.com/portfolio/dht11-humidity-temperature-sensor-module/).

I started by using the MeHumitureSensorTest1.ino example in the Arduino IDE, which refers to “MeHumiture humiture(PORT_6);”. This code seems to

I’ve connected the GND, VCC and DAT from the DHT11 to the 3 pins on A6 (GND, VCC and SIG when I read them top to bottom). My code for MeHumitureSensorTest1 Sketch was modified to include megapi, temp and humidity header files:
#include MeMegaPi.h
#include MeHumitureSensor.h

MeHumiture humiture(PORT_6);

void setup()
{
Serial.begin(9600);
}

void loop()
{
humiture.update();
Serial.print(“Humidity (%) =”);
Serial.print( humiture.getHumidity() );
Serial.print(", Temperature (oC) =");
Serial.println( humiture.getTemperature() );
Serial.println("###########################");
delay(1000);
}

The code successfully compiles and I can see the following sent repeatedly over the Serial Monitor screen but the values are all zero:
###########################
Humidity (%) =0, Temperature (oC) =0

I suspect either I’ve:

  • got DHT11 wired improperly into A6
  • used incorrect sytax for addressing A6 port
  • using incorrect function call syntax for the MegaPi hardware

Any suggestions would be greatly appreciated - thanks!