Kid-Friendly Distance Sensor Starter Project
Get an LED to light up when something is detected within a specified distance. Super easy starter project or good for troubleshooting parts.
Parts List:
HC-SR04 UltraSongic Distance Sensor
Arduino UNO
Breadboard, half size
1K Resistor
Red LED
This is a very simple project. Follow this sketch:
LED: 11
Echo: 12
Trig: 13
Then upload the attached code. The distance is in centemeters and in the code is set to 50cm. Change to your desired distance and you should be good to go!
Check out this YouTube video for additional info:
https://www.youtube.com/watch?v=SFpB119EbhM
This is intended to be an MVP for a much larger robot project. I will be building on this to make a robot that can recognize faces and greet people by name. Subscribe to my YouTube channel to follow along:
https://www.youtube.com/channel/UCKdO71PFGB2IMcvtnNWkMrQ