I am using the Espruino WiFi board to control an "L298N Dual H-Bridge Stepper Motor Driver Board".
I want to control the speed of each motor independently, so I decided to apply a different PWM signal to the motor speed control pins "EnA" and "EnB".
I randomly chose two pins on the the Espruino WiFi, which are both documented as PWM-capable: A0 and A7.
But when I use the following commands to set the speeds of the 2 motors they run at different speeds.
analogWrite(A0,0.5, {freq:500});
analogWrite(A7,0.5, {freq:500});
If I use only A0 as the control input to EnA and EnB then the motors run at identical speeds.
Am I misinterpreting the PWM features of the Espruino WiFi board?
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Hi.
I am using the Espruino WiFi board to control an "L298N Dual H-Bridge Stepper Motor Driver Board".
I want to control the speed of each motor independently, so I decided to apply a different PWM signal to the motor speed control pins "EnA" and "EnB".
I randomly chose two pins on the the Espruino WiFi, which are both documented as PWM-capable: A0 and A7.
But when I use the following commands to set the speeds of the 2 motors they run at different speeds.
analogWrite(A0,0.5, {freq:500});
analogWrite(A7,0.5, {freq:500});
If I use only A0 as the control input to EnA and EnB then the motors run at identical speeds.
Am I misinterpreting the PWM features of the Espruino WiFi board?
Thanks
Frank