DOWNLOAD LINKS FOR THE PROJECT FILES AT THE END OF THE POST
ULTRASONIC SENSOR SIMULATION IN PROTEUS
To perform the simulation in Proteus, it is necessary to download and install a library, the link to download the library can be found at the end of this post, this library includes not only the ultrasonic sensor model but also models of some Arduino boards such as Arduino UNO, Mega, Lilypad, and Nano.
STEPS TO INSTALL THE LIBRARY IN PROTEUS
1.- Download the library and copy the file
2. Go to the Proteus icon, right-click and open the file location.
3.- Click on where it says Proteus 8 Professional.
4.- Open the LIBRARY folder and paste the file.
This window will appear, click continue and that's it.
To find the sensor in Proteus, simply search for it by name. (ULTRASONIC OR HC-SR04)
To simulate this sensor in Proteus, it is necessary to select a potentiometer that should be configured as a voltage divider and with which the distance variation will be simulated, the potentiometer must be connected to the sensor terminal called SimPin as shown below.
Before simulating, it is necessary to load the .HEX file to the sensor, for this, follow the usual steps to load a program into a microcontroller in Proteus, double-click on the device and in the pop-up window select the option UltraSonicSensor.HEX and select the path where the .HEX file is located, the download link for this file can be found at the end of the post.



Post a Comment
Hello! We're so glad you've made it this far and are reading this article on Edeptec.
This form is an open space for you: you can leave a comment with your questions, suggestions, experiences, or simply your opinion on the topic discussed.
» Did you find the information helpful?
» Do you have any personal experiences you'd like to share?
» Do you have any topics you'd like to see covered in future articles?
Remember that this space is for learning and sharing, so we encourage you to participate respectfully and constructively. Your comments can help other readers who are on the same path, whether in electronics, programming, sports, or technology.
Thank you for being part of this learning community! Your participation is what makes this project grow.