The ACRobotics_SumoBots project is a program designed for controlling two motors on a SumoBot using an Arduino board. The code includes functionality for testing motor speeds and direction, suitable for SumoBot applications.
- Arduino board
- Motor driver (compatible with PWM for speed control)
- Two DC motors
- Arduino IDE installed on your computer
-
Clone this repository to your local machine:
git clone https://github.com/your-username/ACRobotics_SumoBots.git
-
Open the Arduino IDE and load the
ACRobotics_SumoBots.ino
file from the cloned repository. -
Connect your Arduino board and upload the code to the board.
-
Motor Pins:
- Motor 1:
- Positive:
M1p
- Negative:
M1n
- Positive:
- Motor 2:
- Positive:
M2p
- Negative:
M2n
- Positive:
- Motor 1:
-
Speed Control Pins:
- Motor 1:
SM1
- Motor 2:
SM2
- Motor 1:
-
Sensor Pin:
- Sensor 1:
sensor1
- Sensor 1:
-
Connect the motors and motor driver according to the pin configuration.
-
Power up the Arduino board.
-
Open the Arduino IDE Serial Monitor to view output messages.
-
Upload the code to the Arduino board.
-
Observe the behavior of the motors at different speeds.
Contributions are welcome! Please follow the contribution guidelines.
This project is licensed under the MIT License.