This video goes over how you can connect the ESP32 microcontroller to the L298N dc motor driver as well as explaining the code to make it move.
Where you can buy (affiliate link)
https://amzn.to/3OXdtXi
Code for project: https://drive.google.com/file/d/1q_G2...