Introduction: Sonar Range Finder
Sonar Range Finder How-To
Step 1: Get Materials
Materials Required for Sonar Range Finder:
-Arduino Breadboard
-Sonar Range Finder
-4 Wires
-Ruler (6-12 inches)
-Flar Surface
-Notebook and Pencil
-Computer with Arduino Program
Step 2: Place Sonar Range Finder in Arduino Breadboard
How to Set it Up:
-Get four wires for setup
-Place one wire TRIG in the Sonar and pin 9 on the Breadboard
-Place another wire ECHO in the Sonar and pin 10 on the Breadboard
-Place a third wire GND in the Sonar and the gnd input on the Breadboard
-Place the final wire VCC in the Sonar and 5V on the Breadboard
Step 3: Writing Correct Code
The code that was used for the Arduino Range Finder will be displayed as an image in the step
Step 4: Calibrate the Data
Convert the inches and sonar values that you have recorded and correlated with each other. Then once you have done that you can move on to the next stage with your correlated data.
Step 5: Record the Data and Create a Graph Within Logger Pro+
The data recorded from out experiment was written down in my notebook so I will display it within the step.
Also, Logger Pro+ is very good for recording data and finding the slope of the line. The formula for a slope of a line is y=mx+b. Our equation for the slope of the data we recorded was:
distance (the distance between range finder and flat surface) = -00070178 (duration) + 14.3
Step 6: Make Sure You Had Fun!
Remember this is for fun and to learn so keep it positive and stay smiling throughout the project!