Wouldn’t it be useful to see how far your robot is from an obstacle? You wouldn’t have to plug into your computer! So helpful.
Your goal for this assignments is to program your robot so that it displays:
1. a message that changes depending on how close it is to an object.
2. two custom characters change depending on how close your robot is to an object.
You will need to attach and wire an LCD to your robot.
Like this:
HINT: if your program holds the distance from an object in the distance variable you can use these two lines code to show the measurement on the LCD:
lcd.print(“Distance: “);
lcd.print(distance);
Resources:
Arduino warning sensor
Creating a custom character

