Recent Post

MATLAB : Fourier transform

Image
By Nuno Nogueira, CC BY-SA 2.5, https://commons.wikimedia.org/w/index.php?curid=3912826 MATLAB has been  crucial programming language across worldwide that let us express matrix and array mathematics directly. In signal processing and communication it plays vital role in analysing and exploring time series data in time domain or frequency domain. For analysing non periodic signals in frequency domain we use Fourier transform instead of Fourier series ,which is used to express periodic signals in terms of infinite sum of sinusoidal terms .   Fourier transform can exist for :      1. Energy signals      2. Power signals       3. Impulse signals  That means absolutely integrable signals can have their Fourier transform only.  Formula for Fourier transform;   Then its come to use Fourier transform in MATLAB. So here is the code for Fourier transform of sinusoidal wave , for any other signal we ...

Simulation of DHT11 sensor using Arduino UNO in Proteus

Today, we will do a small but interesting project of measuring humidity with DHT11 (Humidity & Temperature Sensor) using an Arduino board. We will use Proteus 8 for simulating this project. Proteus is a very well-known software used mainly for electronic design automation. It works in real-time and is a very fun way for circuit simulation. So let's get started!!

First of all, you can find the DHT11 sensor in the proteus library but you will not find Arduino Uno there. So, we have to download Arduino Uno for Proteus. You can simply search for this on Google or you can download it from here

After downloading you will get a zip file. On unzipping the zip file, you will see three files:-

  1. .IDX File
  2. .LIB File
  3. .txt File

Copy the first two files and paste them into the Library folder inside the Proteus folder in the C drive of your computer. Windows users can follow this path: -

This PC -> C: -> Program Files (x86) -> Labcenter Electronics -> Proteus 8 Professionals -> LIBRARY.

After this, you can find Arduino UNO in the Proteus library.

Main components

  1. Arduino UNO board.
  2. DHT11 Temperature and Humidity sensor.
  3. Virtual Terminal
  4. Ground
  5. Power Pin
Now connect all these things as shown below:


Simulation process

  • Writing the code

Open the Arduino software and write the code. The code will be the same as used in hardware. You can try to write the code by yourself before proceeding further.

So, here is the code for measuring temperature and humidity using Arduino UNO. 



  • Compiling the code

We have to compile the code for generating the Hex file needed for the Proteus simulation. Before compiling you need to go to File -> Preferences and there you have to untick the upload option and tick the compile option in front of show verbose output.

After doing this compile the code. Once you are done compiling, you can find the location of a .hex file in the verbose output. This is the hex file created by Arduino software in a temporary folder of your Computer's C drive. It is normally found in the 6th or 7th line from the ending. Copy this hex file location.

  • Simulation in Proteus

Now open Proteus 8 Professional or whichever version you are using. Double click on the Arduino board. A new window will be opened. Paste the copied hex file location in the Program files row. Press OK.

 Now run the simulation. It's done!! You will see the output in the virtual terminal window just like as shown below.


Hopefully, this project helped you understand the interfacing of Arduino UNO with DHT11 and familiarize you with Proteus software.

See Also:-

Comments

Post a Comment

Popular posts from this blog

Chandrayaan : A glorious legacy

Voyager : Journey of the twin to interstellar space

ISRO: From bicycle to a billion dreams