Data Sheet

9/9/2015 MeStepperDriverMakeBlock
http://wiki.makeblock.cc/index.php?title=Me_Stepper_Driver 6/7
3.DownloadtheMelibraryMakeblock_library.zip;4.UnzipitintothelibrariesfileofArduinoIDEbythepath(usually
/Users/username/Documents/Arduino/librariesonOSX,MyDocuments/Arduino/librariesonWindows).5.Createan
Arduinosketchandpastethefollowingcodestoitoropenthecodedirectlybythepath:File>Example>
Me_StepperMotor/TestStepperDriver
/*************************************************************************
*FileName:TestStepper.ino
*Author:xiaoyu
*Version:V1.0.0
*Date:5/27/2014
*Partsrequired:MeStepperDriver,Steppermotor
*Description:GettingstaredwithMeStepperDriverV1.0.
*License:CCBYSA3.0
*Copyright(C)2013MakerWorksTechnologyCo.,Ltd.Allrightreserved.
*http://www.makeblock.cc/
**************************************************************************/
//StepperDriverconnection
//connect 1Aand1Btosteppercoil1nornallyblackandgreenwire
//connect 2Aand2Btosteppercoil2nornallyredandbluewire
#include<Makeblock.h>
#include<SoftwareSerial.h>
#include<Wire.h>
intdirPin=mePort[PORT_1].s1;//thedirectionpinconnecttoBaseBoardPORT1SLOT1
intstpPin=mePort[PORT_1].s2;//theSteppinconnecttoBaseBoardPORT1SLOT2