Problem powering DC motors with servos

slipstick:
Sorry but I have no idea what you're talking about. Your Fritzy shows a 3.7V battery, you talk about 220V-9V convertors and then you say where 12V and 5V are connected. Where did they come from?

Your list has 2 servos, the diagram has only one and you say you haven't connected any servos? Then the code reads a buttonPin but there's nothing on the diagram connected to that pin.

Too confusing for my old brain.

Steve

I'm sorry for the confusion, I'm using a converter indeed instead of the battery
the 12V pin in the drive takes from 7 to 12 volts so I'm plugging the 9V source in there,
The 12V and 5V pins are both in the drive

I'm using 2 servos but only one is put to test and written in the code

The pin is to switch between controlling the servos or the motors, It's connected to pin 10 and is working fine