Hi!
I have a Tamiya Double Gear (like this: Pololu - Tamiya 70168 Double Gearbox Kit ) and a L298N.
I'd like to drive both motors with 3.3V supplied from Arduino board.
I wrote the code, but I'm able to drive only one motor (code is correct, I'm able to drive motor "a" or motor "b", but not "a" and "b").
I think it's just a matter of too small current...
So I need to buy a external battery. I suppose to put the external "+" to pin 4 on L298N, and "-" to pin 1 and 15... it's ok? (Pin 8 still to arduino ground, isnt' it?)
What about the resistor between pin 1 and 15 and ground? (I have they directly connected to ground... but maybe supplied current from external battery can be too big...)
Thank you for help and advice, too!
I'd like to drive both motors with 3.3V supplied from Arduino board.
I wrote the code, but I'm able to drive only one motor (code is correct, I'm able to drive motor "a" or motor "b", but not "a" and "b").
I think it's just a matter of too small current...
It is. The 3.3V pin is not intended to supply more than a few milliamps.
So I need to buy a external battery.
Yes.
I suppose to put the external "+" to pin 4 on L298N, and "-" to pin 1 and 15... it's ok? (Pin 8 still to arduino ground, isnt' it?)
I'm not sure about the specific pin numbers, but, yes, you need to connect +V to some input pin on the L298N. All the grounds should be connected to the -V of the battery, including the Arduino ground.
but maybe supplied current from external battery can be too big...
Current is not pushed by a battery. It is pulled by the object(s) connected to the battery. The battery must be able to supply the current demands of the devices connected to it.
Thanks you, PaulS!
I'd like to use two different batteries: one for sensors, logic and arduino, the other to power motors.
Battery 1 (for arduino, logic and sensors): should connect it's "-" it to GND (pin 8) on L298N ?
Battery 2 (for motor power): should connect it's "-" to CurrentSensingA,B (pin 1, 15) on L298N ?
If you are not sensing current, you must connect the current sensing pins directly to ground.
Connect the Arduino ground to the motor controller ground, but otherwise keep the supplies wired separately - you specifically don't want high currents flowing through the ground line used for the sensors and logic circuitry.
MarkT:
If you are not sensing current, you must connect the current sensing pins directly to ground.Connect the Arduino ground to the motor controller ground, but otherwise keep the supplies wired separately - you specifically don't want high currents flowing through the ground line used for the sensors and logic circuitry.
Indeed I'd like to separate "motor circuitry" and "sensors and logic circuitry".