Intro: ARDUINO SONAR /w Servo and Hc-sr04
Hey there! Today we are going to do most Arduino project! Sonar (originally an acronym for SOund Navigation And Ranging) is a technique that uses sound propagation to navigate, communicate with or detect objects on or under the surface of the water, such as other vessels. But we use this out of water :)
1 - 5110 screen;
2 - 1 x hc-sr04
3 - 1 x Servo Motor
4 - And of course Arduino
Step 1: Connections;
You can see the connections in the picture. You must connect true. This is a very hard project and we will have a lot of problem and bug. You can scan 2cm to 4m.
Step 2: Assembly of Parts
We are going to paste the hc-sr04 to servo; because servo will move and turn hc-sr04.
Step 3: Arduino Code
WARNING!!! WHEN YOU ARE UPLOADING THE CODE TO ARDUINO, YOU MUST STORAGE SNR.C AND CODE IN SAME FILE! SO YOU MUST STORAGE IN THE SAME FILE(snr.c and sonar)
ONCE AGAIN WARNING; YOU MUST CREATE A FILE AND FILE MUST CONTAIN THESE TWO THINGS; snr.c and sonar.
CODE DOWNLOAD LINK;
Step 4: Video;
I would recommend to you watch the video. I expect your comments..:)