| 전자부품 데이터시트 검색엔진 |
|
DFR0508 데이터시트(PDF) 7 Page - DFROBOT |
|
|
|||||||||||||||||||||||||||||
DFR0508 데이터시트(HTML) 7 Page - DFROBOT |
|
7 / 18 page ![]() //*This function can be used to start the motor //*dir: Set Orientation CW or CCW //void speed(uint16_t val) //*This function is used to set the motor speed //*val: Set the speed 0<=val<=4096 //void stop() //*This function is used to stop the motor turning DFRobot_Motor motor1(M1,A0); void setup() { //initialize serial communication at 9600 bits per second: Serial.begin(115200); //join i2c bus (address optional for master) Wire.begin(); //Initialize D.C motor drive chip (Group1) motor1.init(); } void loop() { //Setting initial velocity(Min:0 Max:4096) motor1.speed(4096); //Motor1 rotate in positive direction motor1.start(CW); delay(2000); //All motors rotate in reverse motor1.start(CCW); delay(2000); //All motors brake and stop rotating motor1.stop(); |
|
|
링크 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 |