Range Finder

2023

Arduino

Create a range finder with a set target distance 

  •   Use the IR range finder module to measure the distance 

  •   Use the potentiometer to set the target distance 

  •   Provide the following feedback:  

  •  A red LED is switched on if we are too far 

  •  A yellow LED is switched on if we are too close 

  • Yellow color can be generated using Red and Green; Yellow = Red + Green

  •  Brightness reflects how far the system is from the target distance 

  •  A tone is played when the system is at the target distance   

  • analogWrite () Range: 0 -255

  • analogRead() Rang: 0-4095

  • Has to use map() function

Deliverables:

  • A video demonstrating all system features

    • You need to show the system with two different target distances. 

Previous
Previous

Fan Control

Next
Next

LIDAR