I would like to use an Arduino to control two motor. The two motor driver I used is L298N which supports up to 2A and IBT-2 which supports up to 43A . The IBT-2 is connected to a motor which rated as 5.5A. To power both of the motor driver together, I connect two 3s(11.1V), 5400mAh Lipo battery in series which produce 22.2V in total and regulate the voltage on 12V by using a buck converter. I also have PS2 controller and one more sensor which is called (IMU) connected to the Arduino as an input.
For L298N, we have to connect the ground of power source and signal source (Arduino’s Ground) together to common ground them. This circuit actually works at first but burns after a few test run. There are smokes coming out but not sure where is the source. Visibly we cant see anything burned but our Arduino Mega and IBT-2 spoils after testing.
What we suspect is the power ground current flows into the signal ground instead of back to Lipo battery.
I would like to know what I did wrong? If the problem is not like what I suspect, then what will be the real problem here? Last, how to prevent this kind of problems happen again?