For this project, I combined my previous work with servos and a joystick to create a remote-controlled ball maze using an accelerometer instead of a joystick. When I move the remote control, the maze tilts in the same direction, causing the ball to roll through the maze based on the tilt angle. I programmed the system using MPLAB X, where the accelerometer inputs were read and mapped to control two servo motors—one for the X-axis and one for the Y-axis tilt. This setup creates a real-time control system that lets me guide the ball through the maze just by tilting the remote.
You can watch a video of the completed maze using the link: https://youtu.be/xWIxy0mNYBE
Recent Comments