DHT 11 Proteus Model
Download https://byltly.com/2tztsX
How to Simulate DHT 11 Sensor in Proteus
The DHT 11 sensor is a capacitive humidity sensor with two pins. It uses a 3.3V to 5.5V I2C interface, which allows it to operate with higher supply voltages than the common DHT devices[^1^]. It requires a pull-up resistor to be on the 5V supply, and needs the 5V supply to be connected when it is powered[^1^].
In this tutorial, we will learn how to simulate the DHT 11 sensor in Proteus, a software for designing and testing electronic circuits. We will use an Arduino Uno board as the microcontroller, and display the temperature and relative humidity readings on a serial monitor.
Step 1: Add the DHT 11 Library to Proteus
Before we can use the DHT 11 sensor in Proteus, we need to add its library file to the software. The library file contains the schematic symbol and the simulation model of the sensor. You can download the library file from this link. After downloading, extract the zip file and copy the DHT11TEP.LIB and DHT11TEP.IDX files to the Library folder of Proteus. You can find the Library folder in the installation directory of Proteus, usually C:\\Program Files (x86)\\Labcenter Electronics\\Proteus X Professional\\LIBRARY.
Step 2: Create a New Project in Proteus
Open Proteus and create a new project. Give it a name and a location of your choice. Then, select Arduino Uno as the device and click Next. In the next window, select ISIS as the schematic capture tool and click Next. In the final window, click Finish.
Step 3: Add Components to the Schematic
In the schematic editor, click on P (Pick devices) on the toolbar or press P on your keyboard. This will open a window where you can search for components. Type Arduino Uno in the search box and select it from the list. Then click OK to place it on the schematic.
Repeat this process for DHT 11 sensor and VIRTUAL TERMINAL. The virtual terminal is a component that simulates a serial monitor in Proteus. You can find it under System Models > Misc.
Connect the components as shown in the figure below:
The connections are:
VCC of DHT 11 to 5V of Arduino
GND of DHT 11 to GND of Arduino
Data pin of DHT 11 to pin 2 of Arduino
RX of virtual terminal to TX of Arduino
GND of virtual terminal to GND of Arduino
A 10k ohm resistor between VCC and data pin of DHT 11
Step 4: Write and Upload Code to Arduino
To read data from the DHT 11 sensor, we need to use a library that supports its protocol. One such library is DHT sensor library by Adafruit. You can install it from Arduino IDE by going to Sketch > Include Library > Manage Libraries and searching for DHT sensor library.
After installing the library, open a new sketch in Arduino IDE and copy-paste the following code:
```c
// Include DHT sensor library
#include \"DHT.h\"
// Define pin number for DHT sensor
#define DHTPIN 2
// Define type of DHT sensor
#define DHTTYPE DHT11
// Create an instance of DHT sensor
DHT dht(DHTPIN, DHTTYPE);
void setup() {
// Initialize serial communication at 9600 baud rate
Serial.begin(9600);
// Initialize DHT sensor 061ffe29dd