Data Sheet

12/30/2015 4WDMobilePlatformSKU:ROB0022RobotWiki
https://www.dfrobot.com/wiki/index.php?title=4WD_Mobile_Platform_SKU:ROB0022 17/24
digitalWrite(directionPin_M2,HIGH);
}
voidcarTurnRight(intleftSpeed,intrightSpeed){//TurnRight
analogWrite(speedPin_M2,leftSpeed);
digitalWrite(directionPin_M1,LOW);
analogWrite(speedPin_M1,rightSpeed);
digitalWrite(directionPin_M2,LOW);
}
voidcarBack(intleftSpeed,intrightSpeed){//Movebackward
analogWrite(speedPin_M2,leftSpeed);
digitalWrite(directionPin_M1,LOW);
analogWrite(speedPin_M1,rightSpeed);
digitalWrite(directionPin_M2,HIGH);
}
voidcarAdvance(intleftSpeed,intrightSpeed){//Moveforward
analogWrite(speedPin_M2,leftSpeed);
digitalWrite(directionPin_M1,HIGH);
analogWrite(speedPin_M1,rightSpeed);
digitalWrite(directionPin_M2,LOW);
}
STEP3InstallUpperPlate
1.FixedUltrasonicSensorPosition
PleaseseetheInstallationManual
2.FixedServoPosition