MATLAB : Fourier transform
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:-
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.
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.
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.
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.
Really helpful 😊
ReplyDelete