| 전자부품 데이터시트 검색엔진 |
|
DFR0508 데이터시트(PDF) 10 Page - DFROBOT |
|
|
|||||||||||||||||||||||||||||
DFR0508 데이터시트(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()); } |
|
|
링크 URL |
| ALLDATASHEET 가 귀하에 도움이 되셨나요? [ DONATE ] |
Alldatasheet는? | 광고문의 | 운영자에게 연락하기 | 개인정보취급방침 | 링크 투 데이터시트 | 링크교환 | 제조사별 검색 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 |