JKim1594:
I have succeded in being able to run the wheels individually, however, I cannot stop the wheels from moving once I do get them to move in my code.
As far as I can see this code
void loop()
{
myservo0.write(10);
{
mforwardLF();
delay(2000);
mforwardRF();
delay(2000);
}
}
tells the motors to start but never tells them to stop.
Explain exactly what this function (as an example) is intended to do and how it relates to one of your L298s
void mforwardLF()
{
analogWrite(ENA, ABS);
analogWrite(ENB, ABS);
analogWrite(ENA1, ABS);
analogWrite(ENB1, ABS);
digitalWrite(in1, HIGH);
digitalWrite(in2, LOW);
Serial.println("ForwardLF");
}
It might be much easier to understand if it dealt with one section of the L298 at a time rather than, apparently, mixing them up.
...R