Motor Driving
Description
The micro:bit robot shield has built-in PCA9685PW and TB6612FNG
chips. To save the IO port resources, we can control the TB6612FNG
chip through PCA9685PW chip; then control the moving direction and
speed of two DC motors by TB6612FNG chip.
Pin LED1 and LED2 of PCA9685PW chip are separately used to
control the direction and speed of the left motor;
Pin LED3 and LED4 separately control the direction and speed of the
right motor.
In the code, LED1 and LED3 are setting the moving direction.
49
Need help?
Do you have a question about the Micro:bit Mini Smart Robot Car V2 and is the answer not in the manual?