Dual Motor Control with DRV8833 and Quadrature Encoders. Arduino's PID library is used to track the desired speed. It can also receive commands for desired speeds from Serial2.
encoder-pid-jetson-uart-correctPIDs-2025-08-28_23.28.17.mp4
(Plot legend):
blue/green: Desired speeds in RPM for motors A and B
orange/yellow: Actual speeds in RPM of motors A and B
Tested on an ESP32-WROVER connected to a DRV8833 while receiving commands from a Jetson Nano.