This Arduino project allows you to control the speed of two DC motors using potentiometers and enable/disable each motor using slider switches. Additionally, it provides a Serial monitor interface to remotely control the motors.
- Individual speed control for left and right motors using potentiometers.
- Slider switches to enable/disable each motor independently.
- Serial monitor control with commands:
- Send 'L' to open the left motor.
- Send 'R' to open the right motor.
- Send 'S' to stop both motors.
- Arduino board
- 2 DC motors
- 2 potentiometers
- 2 slider switches
- Motor driver
- Breadboard and jumper wires
- Connect the left motor to the motor driver's left output.
- Connect the right motor to the motor driver's right output.
- Connect the potentiometer for the left motor to analog pin A0.
- Connect the potentiometer for the right motor to analog pin A1.
- Connect the slider switch for the left motor to digital pin 2.
- Connect the slider switch for the right motor to digital pin 3.
For detailed wiring, refer to the wiring_diagram.png
file in the repository.
- Upload the Arduino sketch (
motor_control.ino
) to your Arduino board. - Open the Serial monitor.
- Control the motors using the following commands:
- Send 'L' to open the left motor.
- Send 'R' to open the right motor.
- Send 'S' to stop both motors.
/arduino_motor_control
|-- motor_control.ino # Arduino sketch file
|-- wiring_diagram.png # Wiring diagram image
|-- README.md # Project documentation
|-- .gitignore # Git ignore file
Contributions are welcome! If you find any issues or have suggestions for improvement, please open an issue or create a pull request.
This project is licensed under the MIT License.