![]() In theory I think it should make the bigtrak move forwards for two seconds ad backwards for two seconds at half speed, but when I connect the motor enable pins to the PWM signals the motors don't move. Here is the code I'm using: int B1Out = 4 I would like to be able to use PWM to control the speeds of the two motors. ![]() Even when I connect it to the Arduino's 5V pin it doesn't move. However, when I replace the jumber with a connection to an Arduino PWM pin the motor does not move, no matter what duty cycle I use. When I attach the motor enable jumpers the motors run normally, and the robot moves forward. ![]() I'm using a 5v power bank to power the Arduino Mega and the motors from different USB ports. I've been trying to use the L298N dual H-bridge motor driver board like this one to drive the two motors on a bigtrak. I'm new to Arduino and motor control so I apologise if I've made a silly mistake.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |