Question: 3. Write an Arduino program that measures the distance to an object using the Sharp IR sensor. a. Must include a function that when called
3. Write an Arduino program that measures the distance to an object using the Sharp IR sensor.
a. Must include a function that when called returns the distance in centimeters.
i. You will need to linearize the reading of the sensor. The following equation approximates the voltage (V) to the distance (R) for the sharp sensor and is valid for distances greater than10cm. More information about how it was obtained can be found at https://acroname.com/articles/linearizing-sharp-ranger-data
b. Output the distance to the serial port in 0.5second intervals
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
