Arduino Mega 2560 & ladyada Motorshield

Hi,
im trying to run the Ladyada Motorshield on my Arduino Mega 2560 without sucsess.

I solderd the shield and everything looks ok for me.
For the power supply I added an 12V 2AMP DC Powersupply and the Green LED (LED1) indicated that everythink is ok.
Then I tried to power up all DC Motors (just for testing)

#include <AFMotor.h>

AF_DCMotor motor0(1);
AF_DCMotor mtoro1(2);
AF_DCMotor mtoro2(3);
AF_DCMotor mtoro3(4);
void setup() {
 // turn on motor
  motor0.setSpeed(250);
  mtoro1.setSpeed(250);
  mtoro2.setSpeed(250);
  mtoro3.setSpeed(250);
  

}

void loop() {
 
}

But I cant messure any voltage @ M1,M2,M3 or M4.
(also tested with an 12V 0.21A Brushless Fan)

So I started to check the Power supply @ the Motor Driver ICs and thery are @ the expected levels

Please help me with ne next step to debug my Shield correctly

The setSpeed() function sets up the speed that will be used when you use the run() function. You never call the run() function, so of course the motors don't run (and the pins reflect that).

I modified my code in That way still without any succsess ... :cry:

#include <AFMotor.h>

AF_DCMotor motor0(1);
AF_DCMotor mtoro1(2);
AF_DCMotor mtoro2(3);
AF_DCMotor mtoro3(4);
void setup() {
 // turn on motor
  motor0.setSpeed(250);
  mtoro1.setSpeed(250);
  mtoro2.setSpeed(250);
  mtoro3.setSpeed(250);
  motor0.run(FORWARD);
  mtoro1.run(FORWARD);
  mtoro2.run(FORWARD);
  mtoro3.run(FORWARD);

}

void loop() {
 
}

It's time to take a picture of your setup then, host it somewhere, and post a link to the picture.

Using pin1 is not really a good idea, since that is one of the pair of pins used by Serial.

Thats the way the my setup looks like ...
http://mac.piffpaffpuff.net/arduino/

am I using pin 1??

thx for helping PaulS

thats the scematic http://www.ladyada.net/images/mshield/mshieldv1-schem.png
and thats the motor driver Chip
http://3.bp.blogspot.com/_wjf-Tq36wfc/SwXosF7PubI/AAAAAAAAAHI/e82JImtBzeU/s1600/hbridge_labpinout.jpg

I messured the Motor enable pins after starting the Programm an everything is LOW .... Bulling the pins to 1 with an pice of wire diddend change anythink on the L293DNF Output ...
so I think there is an Problem with the PWM also .... :-/

Have you tried the example included with the library and just one motor?

I thried the Motortest example ....
no advantage the Enable pins are @ 4V
but the logic pins are still @ some mV

bridging Pin 15 (M4A) with Pin 16 ( 5V Vcc) was also without succsess ...
I think... the PWM is the Problem ...

I don't suppose that you have another Arduino (non-Mega) sitting around, do you? I wonder of the shield is compatible with the Mega, or if there is something in the library that isn't compatible?

Have you asked on the LadyAda forums?

I have some Microprozessors arround me ...
but they are runnig @2V ... so I cant use them ...

I think Ill go to the Electronics shop next week and buy some stuff to run the LD293 appart from the motor shield ...

The ladyada forum is an god idea thx :slight_smile:

http://forums.adafruit.com/viewtopic.php?f=31&t=17664

I modified firmware so it supports mega 2560. Just go and see topic in the post above.