Lab 6: Ultrasonic Sensor
In this lab, you will implement an ultrasonic distance sensor using the clock’s capture functionality and a corresponding ISR.
You will need to refer to the:
Modify your existing work to display both the on-board and external temperatures simultaneously on the LCD, along with the distance in units of your choosing
Bonus: Calculate the speed of sound based on the measured temperature, for a more accurate distance measurement!
Example LCD output:
Distance 5cm
Indoor 25C
Outdoor 10C