| 전자부품 데이터시트 검색엔진 |
|
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° . |
|
|
링크 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 |