| 数据搜索系统,热门电子元器件搜索 |
|
DFR0508 数据表(PDF) 11 Page - DFROBOT |
|
|
|||||||||||||||||||||||||||||
DFR0508 数据表(HTML) 11 Page - DFROBOT |
|
11 / 18 page ![]() void setup() { //initialize serial communication at 9600 bits per second: Serial.begin(115200); //join i2c bus (address optional for master) Wire.begin(); //Initialize drive chips of stepping motors (Group A and Group B) stepperA.init(); //Setting stepping motor Group A rotate in positive direction stepperA.start(0, 20, CW); } void loop() { //Stepping motor (Group A) rotate in reverse in every 2 seconds reverse_SA(); delay(2000); } Program Function: group A stepper motor (M1A(A+), M1B(A-), M2A(B+), M2B(B-)) reverse the rotation direction in every 2s. Functions: 1. Create a stepper motor object. 2. DFRobot_Stepper stepperA(SA) SA represents group A stepper motors (M1A(A+), M 1B(A-), M2A(B+), M2B(B-)) 3. Initiate the motor drive, read Product ID and Version ID, and print to the serial port. 4. init() 5. Set angle, speed, direction of the stepper motor rotation and start to rotate. 6. start(angle, speed, dir) 7. angle: set the rotation resolution. 8. The maximum resolution is 0.9°, which means the minimum rotate angle is 0.9° . |
|
|
链接网址 |
| 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 |