Ikram101:
So I am using a L298N driver module and want to know something. I looked in the datasheet but couldn't find it; how many amps can I feed into it safely? The datasheet says it draws current in mA. What would happen if I connected it to a 2A power supply? Should I use a current limiting resistor? If I do, won't the motors get less amps? Do they get the same voltage? Sorry if I asked stupid and obvious questions. Help!
The current used to power the chip is completely different to the current it passes to the motor.
The chip uses mA in its internal circuitry, but it can drive "upto 2A" per output. Never a good idea to
take a chip to its limiting value though, 1A to 1.5A is a more reasonable expectation. When the outputs
are off, the only current left is that powering the chip.
The current is determined by the load response to the voltage it gets - power too big a load from a
L298 and you'll fry the L298. The power supply just has to have enough current in reserve to handle
the peaks of current demand.
Adding any sort of resistor in a power circuit is basically throwing away power as heat - avoid this
if possible.