Page 1
USER MANUAL L293D motor drive expansion shield for Arduino® WPSH207 whadda.com...
Page 2
If in doubt, contact your local waste disposal authorities. Thank you for choosing Whadda! Please read the manual thoroughly before bringing this device into service. If the device was damaged in transit, do not install or use it and contact your dealer.
Page 3
What is Arduino® Arduino is an open-source prototyping platform based on easy-to-use hardware and ® software. Arduino ® boards are able to read inputs – light-on sensor, a finger on a button or a Twitter message – and turn it into an output – activating of a motor, turning on an LED, publishing something online.
Page 4
Pin Layout All 6 analogue input pins are available. They can also be used as digital pins (pins #14 through 19) digital pin function #2, #13 not used Following pins are only used if the DC/stepper is in use: digital pin function DC motor #1/stepper #1 (activation/speed control) DC motor #2/stepper #1 (activation/speed control)
Page 5
Example In this example, we will control a DC motor through port M3. ********Code begin******** // Adafruit Motor shield library // copyright Adafruit Industries LLC, 2009 // this code is public domain, enjoy! #include <AFMotor.h> //DO NOT forget to include this library by "Sketch->Include Library- >Add ZIP library "...
Page 6
motor.run(FORWARD); for (i=0; i<255; i++) { motor.setSpeed(i); delay(10); for (i=255; i!=0; i--) { motor.setSpeed(i); delay(10); Serial.print("tock"); motor.run(BACKWARD); for (i=0; i<255; i++) { motor.setSpeed(i); delay(10); for (i=255; i!=0; i--) { motor.setSpeed(i); delay(10); Serial.print("tech"); motor.run(RELEASE); delay(1000); ********Code end********...
Need help?
Do you have a question about the WPSH207 and is the answer not in the manual?
Questions and answers