| Electronic Components Datasheet Search |
|
DFR0508 Datasheet(PDF) 7 Page - DFROBOT |
|
|
|||||||||||||||||||||||||||||
DFR0508 Datasheet(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(); |
|
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List 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 |