hi. I am interested in making a motor driver circuit for a robot.
I have:
two 5V, 100 rpm dc geared motors
Eight 1N4007 diodes.
L298 motor driver IC which can control 2 motors at the same time.
could you please tell me which of the following circuit is better?
You can find most anwers in the datasheet of the L298.
Do you want to use the L298 as a component, a breakout board is easier: https://www.sparkfun.com/products/9670
The motors require 1A ? You have to know the maximum current, that is called the "stall current". Once you know that, you can choose the right driver. Can you post a link to the motors please ?
You can use the 1N4007. The 1N4007 is for a higher voltage, but they are the same as the 1N4001.
According to the datasheet:
pin 4 = Vs = Supply Voltage for the Power Output Stages. That is the power supply for the motors.
pin 9 = Vss = Supply Voltage for the Logic Blocks. That is the Vcc, the 5V of the Arduino.
According to the datasheet: "Between this pin and ground is connected the sense resistor to control the current of the load"
The 'normal' L298N has a heatsink.
The question is: should you use the L298 ?
I think not.
At 1A, the voltage drop of the L298 is 1.35 and 1.2V (read the datasheet). So the motors get 5V - 1.35 - 1.2 = 2.45V ! That is way too low.
So lets drop the L298 and use a mosfet driver. Power mosfets have only little voltage drop.
Sparkfun has a nice selection: https://www.sparkfun.com/categories/179
But there are many more.
You have to know the stall current, and the mosfet driver should be capable to operate at 5V motor voltage.
OK i have decided now to use the motor in the second column of the link.
So its a small current ryt? now can i use L298N ?
breakout board is good but i wanna make this. Ill gain more knowledge ryt..
can i use a 12V 2AH battery pack for the 5V motor?
You can, but for your needs and current and such, the voltage drop (and the heat output) of the L298 is going to be horrendous; at 1 Amp, according to the datasheet (and alluded to by Erdin above ya!) - total drop is close to 5 volts. So - if you used a 12V pack, that would leave 7 volts to the motor, which is too high for a 5 volt motor. Now - if you went with a 9.6 volt pack, that would be much better - leaving you with close to 5 volts for the motor needed (and dumping less voltage through the h-bridge, as heat).
As far as actually "making" such a board - you need to realize that the L298 does not have a standard 0.1 inch pin-spacing pinout. Basically, both sets of pins -are- 0.1 inch between pins, but one row of pins is shifted by 0.05 inch. This makes it nearly impossible to use on a breadboard or standard perfboard.
You can try to bend the pins to fit - it's possible to do - but it's also very easy to break the pins off the IC as well. A better alternative is to get one of these:
Final note: You -will- need a real heatsink bolted (with heatsink grease/paste) to the L298. The problem is, of course, finding one. I have yet to find where to get the aluminum extrusion profiles (let alone just the heatsinks) the chinese companies use for the L298 Multiwatt15 devices. But you can't skip using one; it is needed, otherwise the chip will go into thermal shutdown when it overheats. So think about what you will use, if you go this route.
Personally, with all of these drawbacks, I would look for a different solution (preferably MOSFET based).
That motor takes 100mA nominal, but the datasheet doesn't say if thats under load or no-load.
Sounds plausible to be able to drive with L298 at least.
12V battery isn't such a problem so long as you use PWM to reduce the drive to the motors to 50%
or less - not ideal and you may need to experiment with PWM frequency - the Arduino default is
too slow for a small motor really. Without using PWM I'd say a 7.2V battery pack would be a sensible
choice.