[VinciBot Python #06] Edge Detection with Reflected-Light Sensor + Event Decorators

2 days ago

In this sixth VinciBot Python lesson, we stop the robot from falling off a table by detecting the edge with the reflected-light sensor and reacting in real time. You’ll learn how to pick a boundary (threshold) value, monitor it in a while True loop, and trigger actions—stop, warning sound, red LEDs, and a short backup—only when the triangle button is pressed using a decorator.

What you’ll learn:

Measuring reflected-light values (table vs. edge) and choosing a threshold

Writing a simple function and calling it

Event decorators: @event.button_triangle_pressed → run code on button press

Control flow: while loop + if…else

RGB LED and motion control APIs

Loading comments...