2

I am currently using these motors and driving them off these drivers and an arduino uno, and alternatively trying to make them turn using the setup in step 6 (both with l298n and without) in this instructable. I have 4 motors and all are exhibiting the same behaviour.

Using the drivers, I just sent a constant PWM via PWM pin, and the motor would only spin at high values around 255, but even then only when I touch the motor does it start spinning. This spinning is then not even smooth, it pauses a bit every second or so and results in a sort of jittering. After a bit more, plugging the motors in it now just makes an increasingly louder whining noise, kind of like it's getting ready to take off but doesnt really spin. Code used here is just basic as below:

void setup () {

pinMode(9, OUTPUT);

}

void loop (){

analogWrite(9, 255);

}

Using the instructable setups, I've wired exactly the same way (wiring for l298N version is in step 10, wiring for discrete steps is just directly pwms to the motor), but the motors will not spin like theirs do (same poles and slots, 12n14p). Mine just jitters back and forth in tiny steps and looks like it's just twitching. Code used is exactly as at the end of 'step 6'.

Imgur album of issues

2
  • sounds like the power supply is running out of juice – jsotola Nov 6 '20 at 17:19
  • put the analogWrite into setup() ... remove it from loop() – jsotola Nov 6 '20 at 17:21

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.