4WD Chassis with Arduino Mega2560 board on two robots. In both cases only the Right Front (motor ) and Left Rear (motor ) operate.
All motors work if power is directly applied to them.
My wild guess is that the motors are somehow not defined in the library.
Any help is greatly appreciated.
Problem was resolved by changing the 4WDMotorTest as noted. I do not understand why this makes the difference it does.
AF_DCMotor Motor_Left_Front(4, MOTOR34_1KHZ); // Motor 4
AF_DCMotor Motor_Right_Front(3, MOTOR34_1KHZ); // Motor 3
AF_DCMotor Motor_Left_Rear(1, MOTOR12_1KHZ); // Motor 1
AF_DCMotor Motor_Right_Rear(2, MOTOR12_1KHZ); // Motor 2
AF_DCMotor Motor_Left_Front(4, MOTOR12_2KHZ); // Motor 4
AF_DCMotor Motor_Right_Front(3, MOTOR12_2KHZ); // Motor 3
AF_DCMotor Motor_Left_Rear(1, MOTOR12_2KHZ); // Motor 1
AF_DCMotor Motor_Right_Rear(2, MOTOR12_2KHZ); // Motor 2
Sorry Tai, I thought I was in the forum for the book, not OReilly in general.
Example 4-1. Initial motor test for 4WD
Margolis, Michael (2012-10-19). Make an Arduino-Controlled Robot (Make: Projects) (p. 68). Maker Media, Inc. Kindle Edition.
No problem at all. Thanks for the information about the fix! Would you mind posting that to the official errata page http://www.oreilly.com/cs/catalog/cre...
so that other people can benefit from your wisdom?
Customer Service Rep,