Arduino motor shield doesn't do anything

Hi everyone, I place an Arduino motor shield on my Arduino Uno, and I red the documentation about controlling motor using allocated pins. But when I plug a 12V jack, wire an electro magnet to A and run this program it does nothing...

void setup()
  pinMode(12,OUTPUT); //init dir pin

void loop()
  digitalWrite(12, HIGH); // set a dir
  analogWrite(3, 255); // run motor at full speed

An electromagnet is not a motor. What exactly are you using?

Also you seem to be writing to two pins but only one of them is set as OUTPUT. Why?


Please don't cross post.

even if it is in French..

Tom... :slight_smile: