Hello everyone, I was suggested to make a obstacle avoidance car but I thought it to be too common and impractical to make one..., so I thought to make a sonar using the concept of obstacle avoidance car's servo and HC-SR04 sensor.
I didn't had a tft lcd screen due to which I didn't know how to display the sonar's output.Then I thought to use processing IDE as it enabled to display the sonar's output on my pc that too with nice resolution ! but as I was new to processing IDE I didn't know to use it so for practice I used p5 web editor (just for practice) than I used processing Ide and some libraries to read output of sonar and display on pc !
This is how the servo and HCSR04 sensor looks after assembling .
I have attached ultrasonic sensor on servo motor using hot glue gun so that the ultrasonic sensor rotates with servo and covers a range of 180 degrees and then the output whether a object is detected or not is shown on processing IDE and I wrote some more code which accurately displays the distance and angle !
This is how the output is shown on processing IDE .
Friends I have also shared how the output on processing IDE looks like you can use the image as reference with your project :)
As we know how the assembly and output looks like the only thing remaining is the video of output watch the video till end to understand the output much more properly.