| Electronic Components Datasheet Search |
|
DFR0508 Datasheet(PDF) 10 Page - DFROBOT |
|
|
|||||||||||||||||||||||||||||
DFR0508 Datasheet(HTML) 10 Page - DFROBOT |
|
10 / 18 page ![]() * @author [LiXin] * @version V1.0 * @date 2017-7-31 * @https://github.com/DFRobot/DFRobot_MotorStepper */ #include "Arduino.h" #include "Wire.h" #include "DFRobot_MotorStepper.h" /*****************Keywords instruction*****************/ //SA--->Stepper_Group_A--->[M1A(A+),M1B(A-),M2A(B+),M2B(B-)] //SB--->Stepper_Group_B--->[M3A(A+),M3B(A-),M4A(B+),M4B(B-)] //CW: rotate in positive direction //CCW: rotate in reverse //A0: Chip Selection Address 1 //A1: Chip Selection Address 2 //A2: Chip Selection Address 3 //A3: Chip Selection Address 4 /*****************Function instruction*****************/ //void start(float angle, uint16_t speed, uint8_t dir) //*This function can be used to start the motor //*angle: Set the Angle Min:0°(If the Angle is equal to 0°,The motor will not stop spinning) //*speed: Set the speed Min:8 //*dir: Set Orientation CW or CCW //void getDir() //*This function can get the current rotation direction of the motor DFRobot_Stepper stepperA(SA); void reverse_SA() { stepperA.start(0, 12, !stepperA.getDir()); } |
|
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |