My project is about measurement and how you can use ultrasonic sensors to measure faster than a ruler. I decided to make it because the idea popped into my head while making another project. It works by measuring the distance the ultrasonic sensor senses, subtracting by 20, then converting the number to the absolute value, and Voila! It works, but how? The reason I have this complicated formula is that when it subtracts by 20 I place a board 20 centimeters (yes the ultrasonic sensor is measuring in centimeters) it displays the number "0" on the LCD. So let's say I place an object that is 5 centimeters long what distance does the ultrasonic sensor measure? well it measures 15 centimeters (because 20-5=15) so then following my program it will do the following math |15-20| which calculates to 5! (because 15-20=-5 and the absolute value of -5 is 5) There you go the what my project is about, why I decided to make it and how it works.
DIY Ultrasonic Sensor Measurement
Uses an ultrasonic sensor with an LCD to measure objects.
Read more
Comments