I would like to drive TWO DC motors of the car. Front have gear to turn the car to LEFT or RIGHT depending on the HIGH/LOW signals to L298N pins. Back motor can take car to FORWARD or REVERSE depending on the rotation.
There are 5 digital Pins and One Analog. Is it possible to drive two motors through Bolt directly using L298N? Giving required signals from digital pins for clockwise and anticlockwise rotation of motors and supplying PWM signals from A0?
Will following code will drive the motor?
<button onclick=“digitalWrite(0, ‘HIGH’);” “analogWrite(A0, ‘200’);”>FORWARD