01-06-2015 10:10 AM - edited 01-06-2015 10:12 AM
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
01-06-2015 12:59 PM
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.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
09-22-2015 04:37 PM
Any luck connecting the sensor to the MyDaq?