USER MANUAL EN L293D motor drive expansion shield for Arduino® WPSH207 whadda.
Introduction To all residents of the European Union Important environmental information about this product This symbol on the device or the package indicates that disposal of the device after its lifecycle could harm the environment. Do not dispose of the unit (or batteries) as unsorted municipal waste; it should be taken to a specialized company for recycling. This device should be returned to your distributor or to a local recycling service. Respect the local environmental rules.
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. You can tell your board what to do by sending a set of instructions to the microcontroller on the board.
Pin Layout All 6 analogue input pins are available.
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 //DO NOT forget to include this library by "Sketch->Include Library>Add ZIP library " This library can be downloaded from the Velleman website. AF_DCMotor motor(3); void setup() { Serial.begin(9600); // set up Serial library at 9600 bps Serial.
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.
whadda.com Modifications and typographical errors reserved - © Velleman Group nv. WPSH207_v01 Velleman Group nv, Legen Heirweg 33 - 9890 Gavere.