I'm using an Arduino Nano to drive 2 motors using an L298N motor driver. I've connected the input pins of the driver (in1, in2, in3, in4) to pins D7, D8, D9, D10 of the Nano. I'm powering the driver using 2 TCR-18650 (2500mAh) cells rated 3.9V each connected in series to give around 7.8V to the driver. Link for the cells I'm using.
The circuit works correctly, but as soon as I connect the power supply to the driver, the wires connected to the cells heat up too much and get burnt. Are my motors drawing too much current? What should I do? I've tried using other cells with the same voltage, but they are not able to supply enough power and the motors don't turn at all.
No, I'm sure I've connected everything correctly. The circuit works as intended when I connect just one 3.9V cell to the driver, but in that case I can only drive one motor from the driver instead of two. I can control the direction of the motors through the Nano's outputs as well. But when I connect two 3.9V cells in series in order to deliver more power to the driver, the wires connecting the cells to the driver burn out.