LabVIEW Interface for Arduino Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

DHT11

I just follow this instruction:

http://www.hobbyist.co.nz/?q=documentations/wiring-up-dht11-temp-humidity-sensor-to-your-arduino

I think like this I can just read the serial port with visa, or not?

0 Kudos
Message 41 of 78
(6,665 Views)

If you don't want to use LIFA you can just create a serial monitor if that is all you need. 

0 Kudos
Message 42 of 78
(6,665 Views)

After a long time trying, now I can read data from DHT11 by serial port. I reinstalled the VISTA drivers and now it's working as I want.

0 Kudos
Message 43 of 78
(6,665 Views)
0 Kudos
Message 44 of 78
(6,665 Views)

Thankssssssssssss For you allllllllllllllllllll
it Works

0 Kudos
Message 45 of 78
(6,665 Views)

For some reason I couldn't read Analog inputs after reading the DHT sensor no matter what I try. So I updated the LIFA firmware with DHT code from the Arduino site: http://playground.arduino.cc/Main/DHTLib, which is a much cleaner implementation than the Adafruit's.

Now it works fine! Check the attached 'DHT_Test.lvproj', after you upload the modified LIFA_Base, of course.

Best regards,

Samir

0 Kudos
Message 46 of 78
(6,665 Views)

thank you Very much Sambo for you effort and the good work it have been very helpfull thank you sooooooo much again

0 Kudos
Message 47 of 78
(6,665 Views)

Hi Sambo,

First of all I'd like to applaud you for all the provided material. I have a slight problem however when using the code:

Sometimes at the start or mid-way of running the program I get extremely high spikes as shown in the following picture:

DHT11-Spikes.png

Note* those two peaks corresponds to the point in time where I began the program. 

This doesn't happen on a consistent basis, but provided that I require data coming from the DHT11 to maintain absolute accuracy (clashes with other programming if otherwise), it occurs too frequently. Are there any reasons you can think of as to why these spikes are being generated?

My initial thoughts:

1. Programming error

2. Faulty wiring

3. Faulty DHT11

4. EMI (Electro-magnetic interference)

Any thoughts or suggestions would be greatly appreciated!

0 Kudos
Message 48 of 78
(6,665 Views)

I wonder if it just the fact that the DHT11 is extremely slow and the first data point sent out is garbage data.  To test this, you can put a delay before acquiring the first data point.

Alternatively, or maybe in addition to, if the garbage data is always outside of the range of the sensor, you can discard such data points (since they are not possible with the sensor anyways).

0 Kudos
Message 49 of 78
(6,665 Views)

That probably explains why I see those spikes as soon as I run the program. But what about the spikes I see randomly appearing mid-way?

0 Kudos
Message 50 of 78
(6,665 Views)