Control DC Motors with Raspberry Pi Pico and Toshiba TB6612 Using Arduino Sketch @LeonAnavi
Control DC Motors with Raspberry Pi Pico and Toshiba TB6612 Using Arduino Sketch  @LeonAnavi
Uploaded September 2024 | Updated September 2026, 2 weeks ago
This video is sponsored by PCBWay. Only $5 for 10 PCBs and Only $4.98 for 3D Printing + Express 24 hour service on pcbway.com โญ
In this video, we'll guide you through controlling two DC motors using the Raspberry Pi Pico, paired with a custom-designed two-layer green printed circuit board (PCB) with white silkscreen built around the Toshiba TB6612 dual motor driver. The PCB is designed in KiCad and we'll take you step-by-step through the soldering process as we assemble the prototype board.

๐Ÿ› ๏ธ You'll learn how to wire the Raspberry Pi Pico to the breakout board, which leverages the Pico's 40 pins, including 26 programmable GPIO pins, all capable of Pulse-width modulation (PWM). This flexibility makes the Pico or the newer Raspberry Pi Pico 2 a powerful and low-cost option for motor control in robotics projects.

๐Ÿ”‹ Weโ€™ll use an Arduino sketch to program the Pico, focusing on controlling motor direction and speed. The motors are powered by a bank of 4 rechargeable AA batteries. The speed is configured using PWM with the analogWrite function, which accepts values from 0 to 255, where 0 is the minimum and 255 sets it to maximum speed. We'll demonstrate how to configure the code to adjust motor speed and direction in real-time.

๐Ÿค– This tutorial is ideal for anyone looking to build a DIY robot on a budget, powered by Raspberry Pi Pico or Pico 2, and designed for tasks like line-following or maze-solving challenges. By the end of the video, you'll have a fully functioning motor control system, perfect for powering your next robotics project!

๐Ÿ”— Useful Links
===
KiCad project for the PCB: github.com/AnaviTechnology/anavi-tb6612
Arduino sketch: github.com/AnaviTechnology/anavi-examples/tree/master/tb6612
Toshiba TB6612FNG datasheet: eu.mouser.com/datasheet/2/408/TB6612FNG_datasheet_en_20141001-708260.pdf
ANAVI Fume Extractor: https://anavi.technology/#products


๐Ÿ“š Chapters
===
0:00 Intro
2:18 Datasheet
2:33 PCB
2:56 Soldering
4:16 Wiring
5:49 Arduino Sketch
7:53 Conclusions
Control DC Motors with Raspberry Pi Pico and Toshiba TB6612 Using Arduino SketchAdd OLED Display to Meshtastic Dev Kit with XIAO nRF52840 and Wio-SX1262 LoRa #shorts #meshtasticVL53L0X Time-of-Flight I2C range sensor for Arduino, ESP32 and Raspberry Pi #shortsASUS Tinker Board Computer with Rockchip RK3288 and 2GB RAM from 2017 #shortsCollaborative Robot (cobot) Serving Coffee at Mouser Booth at #embeddedworld #robot  #shortsXIAO Family of Modules with Microcontrollers, including the latest XIAO ESP32C6 #shorts #IoTWayland and Weston on Raspberry Pi 5 & 7โ€ Raspberry Pi Touch Display 2 #linux #wayland #raspberrypiBlue Pill STM32 ARM Cortex-M3 Development Board STM32F103C8T6 #makerWestern Digital SN730 NVMe SSD 256GB PCIe Gen3 x4, NVMe v1.3, 3150MB/s #shortsHow to Connect Raspberry Pi Compute Module 5 (CM5) to Raspberry Pi IO Board #raspberrypi #linuxUnboxing Raspberry Pi Touch Display 2 #raspberrypi #shortsMeshtastic Firmware with Display and User Button on XIAO nRF52840 and Wio-SX1262 LoRa #meshtastic
Leon Anavi |

Control DC Motors with Raspberry Pi Pico and Toshiba TB6612 Using Arduino Sketch

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER