LabVIEW Interface for Arduino Discussions

取消
显示结果 
搜索替代 
您的意思是: 

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 项奖励
41 条消息(共 78 条)
9,613 次查看

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

0 项奖励
42 条消息(共 78 条)
9,613 次查看

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 项奖励
43 条消息(共 78 条)
9,613 次查看
0 项奖励
44 条消息(共 78 条)
9,613 次查看

Thankssssssssssss For you allllllllllllllllllll
it Works

0 项奖励
45 条消息(共 78 条)
9,613 次查看

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 项奖励
46 条消息(共 78 条)
9,613 次查看

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

0 项奖励
47 条消息(共 78 条)
9,613 次查看

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 项奖励
48 条消息(共 78 条)
9,613 次查看

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 项奖励
49 条消息(共 78 条)
9,613 次查看

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 项奖励
50 条消息(共 78 条)
9,613 次查看