I would recommend removing the indicated *** lines in setup, Compile and run, the motor should go on 4 seconds and then off 4 seconds, on 4, off 4. Then in loop() just change the leftMotors()s to rightMotor(). You're just making sure the motor works here.Also see if you can add the lines in the loop, to test the reverse: right fwd full delay right fwd 0 (stop) delay right reverse full delayModify for both motors fwd, 1 fwd 1 reverse, half speed (128), etc.Make sure you understand the concept that setup runs once, first-- and loop then runs forever, over and over.Cheers,John
You could bury a powered cable under the lawn and use a magnetic field sensor or two on the mower to follow that like a toy line-follower robot. You'd get a perfect path every time regardless of wheel slip, etc. No map or mapping required, just one long piece of single conductor wire and some time making and filling very thin, shallow trenches.Could probably run something like that with a Tiny.
Okay, I did all that and got the motors working, not both at the same time, but I got each motor to go forward and backward, and switching back and forth.