DFRduino L298p Shield Reverse Problems by jakfourie
[May 18, 2013, 08:08:19 pm]


GPS/GPRS/GSM Module V3.0 (SKU:TEL0051) SIM and Online Connection by csmith04
[May 18, 2013, 01:35:40 am]


KIT0015 - MiniQ Motor Wheel Set with Encoder Issue by GastonLagaffe
[May 17, 2013, 05:29:00 pm]


10 DOF Problems ?? by nestor
[May 17, 2013, 05:06:37 pm]


RoMeo V2 [R3] + DF-BluetoothV3 by Jose
[May 17, 2013, 12:54:51 pm]


2A Motor Shield + Graphic LCD4884 Shield?? by Jose
[May 17, 2013, 12:51:20 pm]


USB host shield not working by Giri
[May 16, 2013, 05:06:19 pm]


GPS/GPRS/GSM Shield 3.0 by csmith04
[May 16, 2013, 04:53:11 am]


Romeo V2 Voltage issue. by Jane
[May 15, 2013, 05:51:02 pm]

Sorry, this shoutbox does not exist.

Author Topic: DFrobot DHT11-Module not working  (Read 1609 times)

arduinofish

  • Full Member
  • ***
  • Posts: 27
  • Karma: +0/-0
DFrobot DHT11-Module not working
« on: April 19, 2012, 01:16:46 am »
Hello,

i just got a Mega Sensor Shield V2.1 and a DHT11-Module. I plugged the modul o Analog-Pin 15. Copied the code of the wikipage, just altered the pin to 15 as it should be............ and got:

"dht11 start condition 1 not met"

What happen? i have just no clue. The cables are connected right.


thanks
Peter

Hector

  • Not an
  • Hero Member
  • *****
  • Posts: 788
  • Karma: +21/-2
    • Follow us on Twitter for coupons and product updates!
Re: DFrobot DHT11-Module not working
« Reply #1 on: April 19, 2012, 10:29:30 am »
Hi Peter,


Which code are you using? The first sample code on the wiki or the second one contributed by Camel? I think it would be easier to modify the code contributed by Camel since it is more Arduino friendly. The first sample code also relies on Port C, which you would need to look at the datasheet for the MCU to be able to change the port to the appropriate port for the MEGA.


http://www.dfrobot.com/wiki/index.php?title=DHT11_Temperature_and_Humidity_Sensor_(SKU:_DFR0067)
-Hector

Follow us on TWITTER for announcements of specials and product updates! Along with interesting open source robotics news!

arduinofish

  • Full Member
  • ***
  • Posts: 27
  • Karma: +0/-0
Re: DFrobot DHT11-Module not working
« Reply #2 on: April 19, 2012, 08:07:58 pm »
actually i changed to that DHT11Lib (DHTLib) from arduino.cc. There i get an time out error. I'll give the Camel-Code a try :)

arduinofish

  • Full Member
  • ***
  • Posts: 27
  • Karma: +0/-0
Re: DFrobot DHT11-Module not working
« Reply #3 on: April 19, 2012, 08:13:25 pm »
lol.... just copied camels' code... changed the port to 55 (for Analog 1) and it works.

i tried to get it work for 5h yesterday evening.........


Thanks a lot

Hector

  • Not an
  • Hero Member
  • *****
  • Posts: 788
  • Karma: +21/-2
    • Follow us on Twitter for coupons and product updates!
Re: DFrobot DHT11-Module not working
« Reply #4 on: April 20, 2012, 09:47:04 am »
Hey,


Glad it worked!


Next time I recommend you have a look through our wiki's. We provide Arduino sample codes, and connection diagrams for most of our sensors, modules, and shields. Its a good starting point. Plus, it will be easier for us to trouble shoot any problems you might be having, since we are more familiar with our sample codes.

-Hector

Follow us on TWITTER for announcements of specials and product updates! Along with interesting open source robotics news!

 

SimplePortal 2.3.4 RC1 © 2008-2011, SimplePortal