| 数据搜索系统,热门电子元器件搜索 |
|
DFR0508 数据表(PDF) 14 Page - DFROBOT |
|
|
|||||||||||||||||||||||||||||
DFR0508 数据表(HTML) 14 Page - DFROBOT |
|
14 / 18 page ![]() //*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); DFRobot_Motor motor4(M4); void reverse_4() { motor4.start(!motor4.getDir()); } void reverse_SA() { stepperA.start(0, 12, !stepperA.getDir()); } void setup() { //initialize serial communication at 9600 bits per second: Serial.begin(115200); //join i2c bus (address optional for master) Wire.begin(); //Initialize motor drive chip of stepping motor (Group A) and ¾ group of D. C motor stepperA.init(); motor4.init(); //Set the initial direction motor4.start(CW); stepperA.start(0, 12, CW); delay(1500); } |
|
|
链接网址 |
| 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 |