LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Humidity and Temperature sensing using sensor DHT11 Sensor using NI myDAQ

Hello,

 

I am using sensor DHT11 for Humidity and Temperature measurement using NI myDAQ. How do I measure the same using LabVIEW VI.

 

I see that the Data format is :


The 8bit humidity integer data + 8bit the Humidity decimal data +8 bit temperature integer data +
8bit fractional temperature data +8 bit parity bit

 

For Example 1: 40 data is received:
0011 0101             0000 0000                   0001 1000                     0000 0000         0100 1101
High humidity       Low humidity               High temp                       Low temp          Parity bit
8                                 8                                  8                                       8                          8
 
Calculate :


0011 0101+0000 0000+0001 1000+0000 0000= 0100 1101
Received data is correct

Humidity : 0011 0101=35H=53%RH
Temperature :0001 1000=18H=24 °C

0 Kudos
Message 1 of 3
(5,120 Views)

Several libraries have been written for the DHT sensors.  Here is one.

 

http://playground.arduino.cc/main/DHT11Lib

 

Post what code you have.  I have a DHT sensor, but no myDAQ.  If you run into problems you'll likely want a signal analyzer, or at least a scope to see what the signal looks like.

0 Kudos
Message 2 of 3
(5,094 Views)

Any luck connecting the sensor to the MyDaq?

0 Kudos
Message 3 of 3
(4,807 Views)