After assembly, the robot works as expected, however, after using it for 2 mins or so, I turn it off and eventually smoke starts to come out it because the batteries are so hot they melt the plastic, this has happened twice now, and in one instance one of the batteries even leaked.
Does anyone know why this can happening, where might have I screw up?
Thanks for your reply. Im afraid I dont understand what you mean by putting it in red line between the battery and the Vin pin. could you clarify please?
If you follow say the red line from the battery as it is, it goes to that join (which I guess is where it goes to Vin?), then goes to the switch. When you throw the switch it joins the red to black, so if you follow the black back out, it goes to the join then to the other side of the battery and you've shorted the battery.
So, take the black lead off the switch, you don't need it. Put the black lead from the battery into the board ground.
Then, undo the connection where you join the two red wires, and put the red from the battery onto the switch. Now you have a red wire from battery to switch, thru the switch and then put the far end of the other red wire from the switch, into Vin.
So now the black goes from battery to ground. The red goes from battery to Vin thru the switch so the switch will make or break the red line now.