I am trying to do a Ping Pong Machine. I have a motor RC 540-20T (RPM @ 7.2V : 20000 +10% , la 2Amp;) because I need a powerful one to throw the ball.
I tried to control to speed with L298, but it doesn't work. The motor just vibrates, like it seems to be under voltage. I also tried to connect the module to a 12V battery, but the problem persisted.
Do you have any idea what type of driver should I use for this type of motor?
A normal 20 turn 540 is an RC car brushed motor intended to run on 6 NiCd cells (7.2V). 2A will be the no-load current. Under normal loads current can easily get over 20A. An L298 is no use for that.
What battery are you using? 12V is a bit high but the motor should run provided your battery can supply enough current.
If you only need it to run in one direction a MOSFET will do to control it. If you need forward/reverse then an RC car ESC will be easiest (I'd go for 30A to be safe and check that it does have reverse, not all ESCs do).
I tried to control to speed with L298, but it doesn't work. The motor just vibrates, like it seems to be under voltage. I also tried to connect the module to a 12V battery, but the problem persisted.