Hi,
Thanks for your answer!
I tested one last thing and just fixed the Bluetooth disconnection issue!
I added a dedicated 4.5V battery for the ESP32 instead of using the 5V from the L298N motor driver.
Now the car is working perfectly—no more Bluetooth disconnections!
I’m not sure what the original issue was:
- Motor noise being transmitted to the ESP32 through the 5V line, or
- The shared voltage from the six 1.5V batteries dropping too low for both the motors and the ESP32, causing power loss and Bluetooth drops.
But it’s fixed now!
(the esp32 is the esp32-cam version so i will try to add the wifi cam to the car now, )