JSumo Wing Arduino Robot Controller - one side of the dual motor driver doesn’t work.
I thought it was related to too low input voltage since I was feeding it only 7.2V and the spec sheet says 8+ V input and I noticed one side wasn’t switching direction as programmed as soon as I increased the current load. So I attached a 9.6V battery. Now the Left Motor works as it should (using Digital Pins 3PWM & 12direction), but nothing from the Right Motor (which uses DP 11PWM & 13direction) --on a side note, why on earth would JSumo have used pin 13 when it’s also connected to the on-board LED on the Nano.
Hi @KKleinsasser and welcome to our forum!
Could you post few pictures of your wiring setup?
Thank you.
Here is a photo of the wiring. There’s really nothing to mess up since the Nano fits in the JSumo socket. The Vin terminal is clearly marked, and my Vin source white is + and black is -.
And here is my code. In case I made a typo that I’m not seeing. It’s just supposed to switch the motor direction back and forth with a small speed change as well.
int PWML = 3;
int DirL = 12;
int PWMR = 11;
int DirR = 13;
void setup() {
// put your setup code here, to run once:
pinMode(PWML, OUTPUT); // sets PWM pin for Left Motor
pinMode(DirL, OUTPUT); // sets Direction pin for Left Motor
pinMode(PWMR, OUTPUT); // sets PWM pin for Right Motor
pinMode(DirR, OUTPUT); // sets Direction pin for Right Motor
}
void loop() {
// put your main code here, to run repeatedly:
analogWrite(PWML, 255); // Send PWM signal to L298N Enable pin Left Motor
digitalWrite(DirL, HIGH); //Left motor forward
analogWrite(PWMR, 255); // Send PWM signal to L298N Enable pin Right Motor
digitalWrite(DirR, HIGH); //Right motor forward
delay(3000);
analogWrite(PWML, 0); // Send PWM signal to L298N Enable pin Left Motor
analogWrite(PWMR, 0); // Send PWM signal to L298N Enable pin Right Motor
delay(3000);
analogWrite(PWML, 200); // Send PWM signal to L298N Enable pin Left Motor
digitalWrite(DirL, LOW); //Left motor forward
analogWrite(PWMR, 200); // Send PWM signal to L298N Enable pin Right Motor
digitalWrite(DirR, LOW); //Right motor forward
delay(2000);
}
Hey @KKleinsasser,
Which motors are you using?
Are the direction LEDs working properly on both sides?
I’m using Pololu 100:1 Micro Metal Gearmotor.
No. The direction LEDs are not working on both sides. On the “working side” the direction LEDs work fine. On the other side, they are not coming on at all. However, the first few times I tried it, they came on intermittently. So I’m wondering if the onboard motor driver may be blown.
@KKleinsasser and if you swap sides, swap motors, does the same thing still happens on that one side?
The one side is completely non-functioning. The motor direction LEDs do not light up, regardless of whether or not a motor is connected.
The other side, the LEDs light up as they should, with or without a motor, and regardless which of the motors I connect.
Therefore, the motors are functioning as they should, the one side driver is functioning as it should, the other side is not.
OK @KKleinsasser, thanks for the explanation.
Have you bought this product from RobotShop?
If so, what is your order ID?
Order #700119177
We will transfer this to our internal support so you can obtain your warranty.
This topic was transferred to internal RobotShop Support.