Why should I use L298N to control motors?

I am going to install 2 TT motor on my car.
If I use L298N I need an extra battery,doesn't it?.

what's the benefit if I use L298N ?(except reverse motors)

You need something between the Arduino and the motor. If you are content with motion in one direction only then a suitable Mosfet would do. If you want to be able to control motion in both directions then you need a h-bridge.

The L298 is very old and inefficient technology. If you have not already bought it I suggest you get a more efficient h-bridge. The Pololu website has several examples.

Make sure to choose a Mosfet or h-bridge that can comfortably supply the current required by your motor - a margin of 50% or more would be a good idea. And be aware that the stall current of a DC motor will be several times higher than the running current.

...R

Robin2:
The Pololu website has several examples.

To save you digging around, here's a link.

FinnJack:
If I use L298N I need an extra battery,doesn't it?.

Well the chances are pretty much nil that you would be able to power (as opposed to control) a motor from the Arduino anyway.

Just as an example, and I'm not suggesting this is the correct driver for your motors, the following Pololu example is a pretty typical hook up. The Arduino on the left, controls the power source to the motor on the right.

Which ever control module you choose will get hooked up something like that. (The L298 has 3 not 2 control lines per motor.)

meltDown:
Well the chances are pretty much nil that you would be able to power (as opposed to control) a motor from the Arduino anyway.

Why?
I can connect 5v pin to vin.

FinnJack:
I can connect 5v pin to vin.

What 5V pin on what? What and where is vin?

Please post a circuit diagram showing how you think you can control 2 motors without using a motor driver or at least a couple of MOSFETs. And provide details of the components you're planning on using.

Steve

Robin2:
The L298 is very old and inefficient technology. If you have not already bought it I suggest you get a more efficient h-bridge. The Pololu website has several examples.

...R

Then why most arduino car tutorial use L298N?
Is it cheap?more efficient means more expensive?

FinnJack:
Why?
I can connect 5v pin to vin.

Not enough current. The 298 needs 5V to run the chip itself and Arduino could supply that I guess, but even if the motor is 5V dont treat the Arduino as a supply for that.

And anyway the 298 drops a minimum of 2V so the best you could get out from 5V input is about 3V at the motor.

Save yourself a load of heartache and get a 21st century driver of the correct specs along with a power soyrce of the right calibre and never look back.

FinnJack:
Then why most arduino car tutorial use L298N?
Is it cheap?more efficient means more expensive?

My guess is partly ignorance and maybe someone has a container load of them.

As to price, have a look at the Pololu link and see for yourself.

298 also needs a heatsink as big as a truck and can be awkward to place. Better efficiency means less heat to get rid of and no or only a small hestsink.

slipstick:
What 5V pin on what? What and where is vin?

Please post a circuit diagram showing how you think you can control 2 motors without using a motor driver or at least a couple of MOSFETs. And provide details of the components you’re planning on using.

Steve

here you go

meltDown:
Not enough current. The 298 needs 5V to run the chip itself and Arduino could supply that I guess, but even if the motor is 5V dont treat the Arduino as a supply for that.

I mean conncect them without motor driver
like the attachment.
use analogWrite to control their speed.

If you can find a motor that can run off 20mA or so, then that would be ok (except for the missing flyback diodes.)

But even tiny vibrator motors like in a cell phone take more than that current.

Why don't you take your motor, hook it to a battery of the right voltage, and measure the current with your multi-meter?

FinnJack:
I mean conncect them without motor driver
like the attachment.

NO!

Did you not read Reply #1?

...R

Robin2:
NO!

Did you not read Reply #1?

...R

I have read it but I didn't know that the maximum current of I/O pin is only 40mA

Also, a typical Arduino can only supply ~200mA total.

FinnJack:
I have read it but I didn’t know that the maximum current of I/O pin is only 40mA

It was (is) not necessary to know that to implement the suggestion in Reply #1

…R

I am trying to make a car for fun.
like this:

and I searched a lot on internet and found that most car use L298N Module .

All I need is control 2 TT motors’ speed and direction respectively.(connect a 9v battery as external power supply)

and L293d ic or L298N ic sounds great.
but I also found that most people say it’s old and ineffective
, need heatsink, drop much voltage.
most people suggest me buy motor driver on Pololu.

maybe this?TB6612FNG

how do you think?

Any recommnedations ?
I hope the price is under 3 dollars(maybe the price will be cheaper in my country(Taiwan) ?anyway).

Thanks

(or use mosfet and H-bridge to build a motor driver myself ,and I will learn a lot)

Please do not double post, continue with the current one.

jremington:
Please do not double post, continue with the current one.

but this is different question

FinnJack:
and L293d ic or L298N ic sounds great.
but I also found that most people say it's old and ineffective

It's not ineffective; it's inefficient.

meltDown:
It's not ineffective; it's inefficient.

ok, sorry.I am not very good at English. I didn't notice that.
Should I continue the old one?
or it's a different topic?