Motor Board v2 - ESP32 Motor Board
My ESP32 Motor Board is able to drive four DC motors, and read their encoders. It can receive high-level commands over UART, for example to drive at a certain speed, or drive a certain distance etc.
components
-
the board PCB (I used Pcbway to manufacture mine)
-
1x ESP32 D1 Mini Nodemcu (https://www.az-delivery.de/en/products/esp32-d1-mini)
-
2x Adafruit DRV8833 (https://www.adafruit.com/product/3297)
-
4x Pololu Magnetic encoder with jst sh connector (https://www.pololu.com/product/4761)
-
some male / female socket headers
-
2.54mm 2-pin screw terminal
If you want to connect motors with neat jst-sh to jst-sh cables - 4x JST-SH 6-pin cable (https://www.pololu.com/product/4762) - 4x Breakout JST SH 6-pin (https://www.pololu.com/product/4772)
If you want to power motors from a USB power bank - 1x Adafruit USB Micro-B Breakout (https://www.adafruit.com/product/1833)
The motors - 4x Micro Metal Gear motor with extended back shaft (https://shop.pimoroni.com/products/micro-metal-gearmotor-extended-back-shaft?variant=3073681089)
board design
The board was designed in Eagle. The project, and some more info, is available here.
ESP32 code
The code running on the ESP32 microcontroller is available here.