MoonCampaign by Crisanto (13 years)
Ultrasonic Sensor
Crisanto
Show and Tell
Show n Tell
Coming Soon
Crisanto, a passionate young innovator, created an interactive project using an ultrasonic sensor and LEDs to visually represent distance. His design measures how far an object is from the sensor and lights up a series of LEDs depending on the distance: the closer the object, the more LEDs turn on. Through hands-on troubleshooting and simulation using Tinkercad, he explored coding challenges, sensor limitations, and the logic behind triggering outputs. Despite encountering a few bugs, [Name] demonstrated curiosity and resilience by debugging, adjusting thresholds, and understanding serial output behavior. His project effectively showcases real-world applications of sensors and conditional programming in a simple, creative way. This work reflects his growing skills in electronics, coding, and problem-solving, showing promising potential as a future engineer or inventor.
In this project, Crisanto designed a distance-based LED lighting system using an ultrasonic sensor. The sensor detects how far an object is from it, and depending on that distance, different numbers of LEDs are turned on. When an object is very close, all the LEDs light up. As the object moves farther away, fewer LEDs remain lit. This project uses the basic principles of how ultrasonic sensors emit a sound wave and calculate distance based on how long it takes for the sound to bounce back.
The code begins with triggering the ultrasonic sensor and reading the duration it takes for the sound wave to return. The measured value is converted into centimeters or inches using a standard formula. Then, based on the distance calculated, a set of if statements turns on specific LEDs. For example, if the distance is less than a certain value, all LEDs are turned on. If it's more, fewer are lit.
During testing, [Name] used Tinkercad simulation to check if the system worked correctly. He encountered a few bugs — one LED stayed on due to a possible error in the code logic, and the distance readings capped at 350 cm. Even with those challenges, the serial monitor showed that the sensor was detecting changes accurately, and the LED response worked well within the expected range.
This project is a great example of integrating sensors with conditional programming logic to create interactive hardware. It also demonstrates troubleshooting in real time, making it a valuable learning experience. Through it, [Name] learned more about electronics, sensor behavior, serial output, and debugging — skills that are essential in robotics and engineering.
©️ Copyright, Moonpreneur Inc.
3031 Tisch Way, 110 Plaza West PMB # 138, San Jose, CA 95128, USA
Likes
Rating
42 days left
Ultrasonic Sensor