I'm using an Arduino Mega2560 with the Adafruit MotorShield I connected the following: I supply power through a laptop power adapter with 19V & 3.42A. Starting all three motors results something strange. The two motors run as they should. The single motor increases speed for ~2s and then suddenly shuts down, as if it would lose power. We meassured the current and it actually seems to break down towards zero. If we're using only the problematic motor and detach the other objects it works fine.
Simplifyed as much as possible the simplest setup without sensors/servo the following code results the problem:
Code: Select all
#include <AFMotor.h>
#include <Servo.h>
AF_DCMotor motor1(2);
AF_DCMotor motor2(3);
AF_DCMotor maeh_motor(4);
void setup()
{
motor1.setSpeed(250);
motor2.setSpeed(250);
maeh_motor.setSpeed(170);
}
void loop()
{
maeh_motor.run(FORWARD);
motor1.run(FORWARD);
motor2.run(FORWARD);
}
Vinschni