Troubleshooting Issue with RoboClaw 2x5A Motor Controller - Emmanuel Katto
Posted: Fri Aug 30, 2024 11:55 am
Hello everyone,
My name is Emmanuel Katto. I'm having trouble getting my RoboClaw 2x5A motor controller to work properly with my robot. I've connected the motors to the controller and powered it on, but I'm not seeing any movement or feedback from the controller.
Here are some details about my setup:
Here's my code:
#include <RoboClaw.h>
RoboClaw roboclaw = RoboClaw(10); // initialize the motor controller on pin 10
void setup() {
Serial.begin(9600);
}
void loop() {
// set the speed of motor 1
roboclaw.SpeedM1(100); // set speed to 100 (value between 0 and 255)
delay(1000);
// set the speed of motor 2
roboclaw.SpeedM2(100); // set speed to 100 (value between 0 and 255)
delay(1000);
}
Are there any specific settings or configurations that I need to adjust on the motor controller?
Are there any known issues with using the RoboClaw library with an Arduino Uno?
I'd appreciate any help or guidance you can offer!
Best,
Emmanuel Katto
My name is Emmanuel Katto. I'm having trouble getting my RoboClaw 2x5A motor controller to work properly with my robot. I've connected the motors to the controller and powered it on, but I'm not seeing any movement or feedback from the controller.
Here are some details about my setup:
- RoboClaw 2x5A motor controller (version 2.5)
Two DC motors (12V, 500RPM)
Arduino Uno as the microcontroller
Jumper wires for connecting the motors to the controller and the controller to the Arduino
Here's my code:
#include <RoboClaw.h>
RoboClaw roboclaw = RoboClaw(10); // initialize the motor controller on pin 10
void setup() {
Serial.begin(9600);
}
void loop() {
// set the speed of motor 1
roboclaw.SpeedM1(100); // set speed to 100 (value between 0 and 255)
delay(1000);
// set the speed of motor 2
roboclaw.SpeedM2(100); // set speed to 100 (value between 0 and 255)
delay(1000);
}
Are there any specific settings or configurations that I need to adjust on the motor controller?
Are there any known issues with using the RoboClaw library with an Arduino Uno?
I'd appreciate any help or guidance you can offer!
Best,
Emmanuel Katto