Simulation of Ultrasonic sensor HC SR04 in Proteus

Published: 29 May 2021
on channel: ETSolutions
2,128
6

This video explain about how to simulate the HC-SR04 code in proteus.

Install Proteus 8.11 including Arduino and HC-SR04 Libraries.
   • Video  


arduino Code:

#include "HCSR04.h"
byte triggerPin = 4;
byte echoPin = 3;
void setup () {
Serial.begin(9600);
HCSR04.begin(triggerPin, echoPin);
}
void loop () {
double* distances = HCSR04.measureDistanceCm();
Serial.print("1: ");
int x= distances[0];
Serial.print(x);
Serial.println(" cm");
delay(250);
}








How do you simulate ultrasonic sensor in Proteus?
How do you interface ultrasonic sensor with Arduino in Proteus?

How do I add a sensor library to Proteus?

How do I add an Arduino library to Proteus?

How does ultrasonic sensor work in Proteus?

How do you use the IR sensor in Proteus?

How do I know if my ultrasonic sensor is working?

What is ultrasonic sensor Arduino?

What is ultrasonic sensor used for?

What will happen if we supply a voltage of 25v to the Vcc of the ultrasonic sensor?

How do I add a Virtual Terminal in Proteus?


Watch video Simulation of Ultrasonic sensor HC SR04 in Proteus online without registration, duration hours minute second in high quality. This video was added by user ETSolutions 29 May 2021, don't forget to share it with your friends and acquaintances, it has been viewed on our site 2,12 once and liked it people.