Go Down

Topic: L298d Motor Controller IC (Read 8248 times) previous topic - next topic

saadkhalil123

Anyone have used this IC "L298d", i need some help with this IC, should i connect it directly to Arduino and Motors with 12V supply on indicated specific pins???

zoomkat

Some possible info.

http://www.google.com/search?q=L298+site%3Ahttp%3A%2F%2Farduino.cc%2Fforum%2Findex.php&hl=en&num=100&lr=&ft=i&cr=&safe=images
Google forum search: Use Google Search box in upper right side of this page.
Why I like my 2005 Rio Yellow Honda S2000  https://www.youtube.com/watch?v=pWjMvrkUqX0

runaway_pancake

In case you're interested --
http://www.dfrobot.com/index.php?route=product/product&filter_name=romeo&product_id=56

schematic
http://www.dfrobot.com/image/data/DFR0004/RoMeo_Schematic_V1.pdf
"Who is like unto the beast? who is able to make war with him?"
When all else fails, check your wiring!

Grumpy_Mike

It all depends on what sort of motor you want to drive with it. This is a stepping motor:-
http://www.flickr.com/photos/24098176@N06/3335588325/

keeper63


Anyone have used this IC "L298d", i need some help with this IC, should i connect it directly to Arduino and Motors with 12V supply on indicated specific pins???


First off, are you sure you aren't meaning an L293D - I'm not positive, but the normal "L298" is typically an L298N - the L293D has "catch diodes", whereas on the L298N you have to supply your own (high-speed Shottky, according to the datasheet). These are two different h-bridge chips, keep that in mind...

1) What kind and how many motors are you driving? You can use an L298 to drive two DC motors up to 2 amps each, or one DC motor up to 4 amps in "bridged" mode, or a single bipolar stepper motor.

2) Note that the L298 does -not- have a standard 0.1 inch pin spacing, and thus will not plug into a standard breadboard or perfboard. It is possible to bend the pins carefully for perfboard mounting, but not recommended (and certainly don't do this for a breadboard!). If you need to use one in your own designs, you can either have your PCB custom made (yourself or otherwise) with the proper holes, or use an adaptor PCB (I've found these useful: http://www.jrhackett.net/L298adapter.shtml - he also sells a full L298 motor driver PCB, which you can populate).

3) If you are planning to use the L293 or L298 at anywhere near their rated maximum current output, you -must- include a proper heatsink, otherwise the chip will go into thermal shutdown fairly quickly, leaving you to wonder what you are doing "wrong".

:)
I will not respond to Arduino help PM's from random forum users; if you have such a question, start a new topic thread.

saadkhalil123

hmmm.. Thanks alot for all the help, actually i needed to know that should i have to connect those diodes and capacitors  and etc etc etc must with L298d, as on this site http://www.dfrobot.com/index.php?route=product/product&path=51&product_id=66 you can see that they have put many things with these motor controller IC's, so my question is couldn't i connect this IC L298d and motors directly with arduino???

saadkhalil123


I'm not positive, but the normal "L298" is typically an L298N.

Ah Sorry, yes cr0sh, its "L298N", not L298d
thanks for correcting :)

runaway_pancake

Quote
"so my question is couldn't i connect this IC L298d L298N and motors directly with arduino???


Yes, you can/could connect the logic pins (inputs and enables - 5, 6, 7, 10, 11, 12) directly to arduino outs and probably get away with powering the logic section of it with the arduino 5V.
I would avoid running the motors (the L298N's "Vs") from the arduino's on-board 5V.
Is that how you mean?

"Who is like unto the beast? who is able to make war with him?"
When all else fails, check your wiring!

Grumpy_Mike

Quote
actually i needed to know that should i have to connect those diodes and capacitors  and etc etc etc must with L298d,

Why do you think people bother with those extra parts?
Do you think they add them just for fun or because they have them laying about and need to use them up?

No they are all there for a reason, miss them out and you will experience the problems that they fix.

saadkhalil123



Yes, you can/could connect the logic pins (inputs and enables - 5, 6, 7, 10, 11, 12) directly to arduino outs and probably get away with powering the logic section of it with the arduino 5V.
I would avoid running the motors (the L298N's "Vs") from the arduino's on-board 5V.
Is that how you mean?



Yes i mean this, thanks u got it :) So i can connect all those logic pins to Arduino outs directly.. but now tell me should i connect 12V to its (IC) supply voltage and 5V of Arduino or other 5V source to its (IC) Logic Supply voltage???

saadkhalil123


Do you think they add them just for fun or because they have them laying about and need to use them up?

No they are all there for a reason, miss them out and you will experience the problems that they fix.

I know that but in this case i'm just stick to the basic function of L298N IC (controlling direction and speed of two small DC Motors) thats why i'm asking that for its basic funtion i don't think there is need of any extra stuff, the manufacturer must have taken in account all of the care about that..

runaway_pancake

Quote
but now tell me should i connect 12V to its (IC) supply voltage and 5V of Arduino or other 5V source to its (IC) Logic Supply voltage???

The L298 Vs should be a source all its own.
The Arduino should be powered separately, the Arduino 5V can likely be used for the 5V section of the L298.
The L298 calls the motor supply Vs, and it calls its +5V logic supply Vss (here, it is NOT another term for "Ground".)

You ought to follow the datasheet's [ http://www.cse.dmu.ac.uk/~mgongora/Resources/L298N.pdf ] "Figure 6", none of the components shown there is redundant or vestigial.
"Who is like unto the beast? who is able to make war with him?"
When all else fails, check your wiring!

Grumpy_Mike

Quote
thats why i'm asking that for its basic funtion

There is no other function but the basic function. There is no enhanced function that these components cover.

Quote
the manufacturer must have taken in account all of the care about that

A manufacturer can't add large capacitors to an IC, nor can they add diodes across a motor that has not been attached. The data sheet is the definitive guide as to how to use the device.
It is like saying I don't need petrol (U.S. read Gas) for my car because the manufacturers would have supplied it if it were necessary.

saadkhalil123

Thanks runaway_pancake...
Quote

The L298 calls the motor supply Vs, and it calls its +5V logic supply Vss (here, it is NOT another term for "Ground".)

Thats what i wanted to know..

saadkhalil123

;-)
Hmmm Grumpy_Mike
Quote

It is like saying I don't need petrol (U.S. read Gas) for my car because the manufacturers would have supplied it if it were necessary.

I got it now :) from figure 6 i got cleared..

Go Up