From Waveshare Wiki
Jump to: navigation, search

DC Motor Driver Module For Raspberry Pi Pico, Driving Up To 4x DC Motors





This is a DC motor driver module for Raspberry Pi Pico, driving up to 4x DC motors


  • Standard Raspberry Pi Pico header, supports Raspberry Pi Pico series
  • I2C controlled, supports 32x different I2C addresses by setting the 5 address jumpers
  • Onboard PCA9685 chip, provides 12-bit hardware PWM to adjust motor speed
  • Onboard TB6612FNG dual H-bridge motor driver, high efficiency, low heating
  • Integrates 5V regulator, up to 3A output current, can be powered from battery through VIN terminal
  • Breakout unused pins of Pico for easy extension


  • Operating voltage: 6~12V (VIN terminals)
  • Logic level: 3.3V
  • Pwm driver: PCA9685
  • Motor driver: TB6612FNG
  • Control interface: I2C
  • Dimensions: 65 x 56mm



Hardware connection

Attach the Pico on the driver board, please take care of the direction according to the USB port silk screen printing.

Setup environment

Please refer to Raspberry Pi's guide: https://www.raspberrypi.org/documentation/pico/getting-started/

Raspberry Pi

1. Open a terminal of Raspberry Pi
2. Download and unzip the demo codes

sudo apt-get install p7zip-full
cd ~
sudo wget  https://www.waveshare.com/w/upload/5/5c/Pico-Motor-Driver-code.7z
7z Pico_pico-Motor-Driver-code.7z -o./pico-Motor-Driver-code.7z
cd ~/pico-Motor-Driver-code


1. Refer to Raspberry Pi's guides to setup Micropython firmware for Pico
2. Open the Thonny IDE, and drag the demo to IDE and run on Pico as below.
3. Click the "run" icon to run the MicroPython demo codes.


  • Download and unzip the demo to your Windows desktop, refer to Raspberry Pi's guides to set up the Windows software environment settings.
  • Press and hold the BOOTSEL button of Pico, connect the USB of Pico to the PC with a MicroUSB cable. Import c or python program into Pico to make it run.


Demo codes


If you require technical support, please go to the Support page and open a tickets.