Hi,
I bought a "2wd smart car kit"[1] along with a motor control shield L293D[2] from ebay.
I run into the following issues:
- the wheels have different speed.
- running one motor multiple times for a specified time results in different travel distances
I didn't find any information on that issue, maybe someone of you got an idea what's the problem.
Is it the controller, to cheap motors, code issues, are encoders[3] necessary, wrong type of motor, ...
thank you.
/** just a simplified version to show you my approach, not my actual code */
#include <AFMotor.h>
AF_DCMotor motorRight(1,MOTOR12_1KHZ);
AF_DCMotor motorLeft(3,MOTOR12_1KHZ);
void setup() {}
void loop() {
motorRight.setSpeed(180);
motorLeft.setSpeed(180);
delay(1000);
}
[1] 2WD 4WD Robot Smart Car Chassis Kits Speed Encoder 65x26mm Tire for Arduino | eBay
[2] L293d Motor Drive Shield Expansion Board for Arduino Duemilanove Mega UNO for sale online | eBay
[3] 2PCS HC 020K Double Speed Measuring Sensor Module And Photoelectric Encoders Kit | eBay