This Arduino-based control system manages the movement of a brushing mechanism with both manual and automatic operation. The system uses analog input signals to detect user commands and limit switches to prevent over-travel. A noise filtering algorithm ensures reliable operation by requiring sustained button presses before activation. The movement is controlled via pulse-width modulation (PWM) outputs to drive the brush motors, with dedicated pins for direction and speed control. Additionally, an auto mode allows continuous operation in a predefined direction, dynamically adjusting based on limit switch feedback. A lockout mechanism prevents rapid state switching, ensuring smooth transitions. The implementation leverages real-time input polling and state tracking to maintain safe and efficient motor control.Â