SONAR Height Measuring Instrument 2





Introduction: SONAR Height Measuring Instrument 2

About: Hello there,I'm a teenager from India. My hobbies include Electronics and programming,so i decided to get an Instructables account,as it is a great platform to learn and share innovative ideas,hope you like ...

version 1.0:

Want To build a PC:


This Project is a height measuring tool which is based on the arduino and of ultra sonic sensing.

Measuring accurate height of any object or product accurately & precisely in industries is very important and crucial to maintain quality and the desired function. This Instrument is based on the above principle; it is user friendly, one just needs to place the object in the box.

Advantages over other measuring tools:

(i)Can Measure Compressible object While measuring of a compressible or soft object with some common distance or height measuring tools like Venire caliper, screw gauge we get an inappropriate measurement as all of them have jaws which compresses the object. But in case of SONAR height measuring instrument there are no jaws to compress the object, hence we can accurately measure distance or height of compressible objects in it.

(ii)Doesn’t require special skills: To measure height of an object with most of the height/ distance measuring tools like Venire caliper, Screw gauge, it requires some special skill and experience to measure the object accurately and precisely. But it is very easy to use SONAR height measuring instrument, all you need to do is place your object in it. (iii)Increase in precession and accuracy: Sophisticated Ultra Sonic sensors can be used to measure height of objects more accurately, and lot more precisely, than other common height measuring tools like Venire caliper, screw gauge. (


For more information :

Step 1: Material Required

1.A rigid box,

here I've used a simple wooden box,which is build by our neighbor carpenter uncle.

2. Electronics Components Used

(i) Arduino UNO:

(ii )HC-SR04 Ultrasonic Sensor:

(iii) LCD Display Screen:

(iv)Jumper Cables:

NOTE: It is highly recommend that,to buy components from my link,as they're sold by reliable dealers and in best price.

(i) Arduino UNO: The Arduino board actually is a specially designed circuit board for programming and prototyping with Atmel microcontrollers building digital devices and interactive objects that can sense and control objects in the physical world. I’ve used it to calculate the height of the object and to display it on the LCD screen.

(ii )HC-SR04 Ultrasonic Sensor: The HC-SR04 ultrasonic sensor uses sonar to determine distance to an object like bats or dolphins do. It offers excellent non-contact range detection with high accuracy and stable readings in an easy-to-use package, from 2cm to 400 cm or 1” to 13 feet. It operation is not affected by sunlight or black material like Sharp rangefinders are (although acoustically soft materials like cloth can be difficult to detect). It comes complete with ultrasonic transmitter and receiver module.

(iii) LCD Display Screen: Here I’ve used a 16X2 LCD display as a medium of interface between the micro controller and the user.

(iii) LCD Display Screen:

Step 2: Wiring

As simple as that.

Step 3: Program and Header File

If your Box if not 31 cm tall then look for the height displayed then change 31 to the height displayed,in:

" Height=31-(ultrasonic.Ranging(CM)); "(in the program) if you are getting irrelevant results check if any wire is lose or not.



    • Oil Contest

      Oil Contest
    • Creative Misuse Contest

      Creative Misuse Contest
    • Clocks Contest

      Clocks Contest

    6 Discussions


    7 weeks ago

    hye pratyay can I ask you something and it is out of this project but it is still regarding coding for arduino..actually im going to do project for gyro stabilizer and after compile the coding and there is occur some error...and I have download the libraries but it still error..can you tell me why? or the file library that I download is place at wrong folder....


    2 months ago

    here your coding that you provided I have copy it and after compile it there some error..maybe you could help me?

    2 replies

    I have gone through the program,there was a minor spacing error,i have rectified that.Now you can test it out,I hope that you have installed the required header file.In case if you still face any problem,let please let me know,

    Good day


    I have acknowledged it,please give me a day to two to rectify it.


    2 months ago

    i have copy your coding but there are some error..which it indicated error for compile arduino uno

    1 reply

    I regret for the inconvenience caused,I will look after & rectify it,I hope that you are using the same parts that I have listed.