Hello friends, hope you all are fine and having good health. In today's post I am gonna share an Ultrasonic Sensor Library for Proteus.Few days ago I have posted a tutorial on Arduino Library for Proteus which also has the Ultrasonic sensor in it but that's a quite basic library for Ultrasonic sensor, so here comes the new Ultrasonic Sensor Library for Proteus.
The wait is over Follow Simple Steps and Download Ultrasonic Sensor Library for Proteus Software for Free of cost. This will help beginners as well professional. Interesting thing is that now user can test their code and project related to Arduino on Proteus software for free without going to hardware side. The library download link is here. #include Ultrasonic.h #define ledPin 8. Arduino for proteus; arduino ultrasonic sensor,simple working library.
- Arduino Tutorial
- Arduino Function Libraries
- Arduino Advanced
- Arduino Projects
- Arduino Sensors
- Motor Control
- Arduino And Sound
- Arduino Useful Resources
- Selected Reading
The HC-SR04 ultrasonic sensor uses SONAR to determine the distance of an object just like the bats do. It offers excellent non-contact range detection with high accuracy and stable readings in an easy-to-use package from 2 cm to 400 cm or 1” to 13 feet.
The operation is not affected by sunlight or black material, although acoustically, soft materials like cloth can be difficult to detect. It comes complete with ultrasonic transmitter and receiver module.
- Power Supply − +5V DC
- Quiescent Current − <2mA
- Working Current − 15mA
- Effectual Angle − <15°
- Ranging Distance − 2cm – 400 cm/1″ – 13ft
- Resolution − 0.3 cm
- Measuring Angle − 30 degree
Arduino In Proteus
You will need the following components −
- 1 × Breadboard
- 1 × Arduino Uno R3
- 1 × ULTRASONIC Sensor (HC-SR04)
Follow the circuit diagram and make the connections as shown in the image given below.
Open the Arduino IDE software on your computer. Coding in the Arduino language will control your circuit. Open a new sketch File by clicking New. Utorrenz com free mac.
Code to Note
The Ultrasonic sensor has four terminals - +5V, Trigger, Echo, and GND connected as follows −
- Connect the +5V pin to +5v on your Arduino board.
- Connect Trigger to digital pin 7 on your Arduino board.
- Connect Echo to digital pin 6 on your Arduino board.
- Connect GND with GND on Arduino.
In our program, we have displayed the distance measured by the sensor in inches and cm via the serial port.
Arduino Library For Proteus 8
You will see the distance measured by sensor in inches and cm on Arduino serial monitor.