Go Down

Topic: Arduino MotorShield Programming (Read 1 time) previous topic - next topic

vek11

Hey, I recently bought an Adafruit Motor Shield 1.1 for my Arduino UNO. Lately, I've been trying to program it but it hasn't been working(because of serial port). However, I want to make sure that I have a very simple program that properly lets a motor spin forward. That's it. Because of so many different types of motor shield programs, its confusing to figure out which one works. So, if it isn't any trouble, can anyone send me a sample sketch for an Adafruit Motor Shield 1.1 that turns on 1 DC motor?

Louis Davis

Here is one of the examples from the Adafruit Motor Shield Library:
https://github.com/adafruit/Adafruit-Motor-Shield-library/blob/master/examples/MotorTest/MotorTest.pde

You will need to download and install the Adafruit Motor Shield Library:
https://github.com/adafruit/Adafruit-Motor-Shield-library

I have used this example with my Motor Shield and it works as advertised.

vek11

Is the installation for the 1.1 version?

Go Up