Friday, November 7, 2014

DHT11 Interfacing with MATLAB and Arduino

Abstract: In this project we are going to interface digital Humidity and temperature sensor (DHT11) with Arduino Uno board and with MATLAB. we are going to display the temperature and Humidity data, received from DHT11, in LCD screen and also plotting them in MATLAB simultaneously.

From the datasheet it mentioned that DHT11 outputs 40bits of data. It contains 8-bits integral RH data+ 8-bits Decimal RH data+8-bits Integral Temperature data+8-bits decimal Temperature data+8-bits check sum. Read datasheet[3] for more details. The library for DHT11 sensor is available in the resources. Add the library[4] in this path "C:\Program Files (x86)\Arduino\libraries\DHT11" (In my case). 

Connect DHT11 sensor to the Arduino Uno board as shown in the below figure and also plug your Arduino board to PC/Laptop.
Now open Arduino IDE tool and run DHT11_Arduino_code[1] and upload it on to the board.
Open MATLAB and run the DHT11_MATLAB_code[2].  
                                                         Working Video