This is a great practical project that can teach you how to use a lot of different components with your Arduino. It’s a high-tech version of the “hanging tennis ball” found in many garages so that you know your car is far enough inside to safely close the garage door. Of course, you could use in any situation where an object needs to be in the proper position.
This project is clearly explained in get detail and the code for the Arduino is included, so you can see exactly what is happening and how you might make your own modifications.
In this project you learn how to use:
- Arduino Uno (or similar)
- Ultrasonic Distance Sensor (to sense how close the object it)
- Relays (to control the 120v mains powered lights)
- Potentiometer (to set the distance)