Instructables
Picture of Dual H-Bridge - L298 Breakout Board - Homemade
This is my homemade Dual H-Bridge using the IC L298N.

For control DC motors or step Motors ao other purposes just like you need.

Others projects:

http://www.instructables.com/id/LINUSBot-Line-Follower-Robot/
http://www.instructables.com/id/Basic-Principles/
http://www.instructables.com/id/PINGBot-Explorer-Robot/
http://www.instructables.com/id/3x3x3-LED-Cube-1/
http://www.instructables.com/id/LINUSBot-Line-Follower-Robot-with-PID-control/
 
Remove these adsRemove these ads by Signing Up

Step 1: Hardware and Materials

Picture of Hardware and Materials
IMG_20130212_162925.jpg
COMPONENTS:

1 x perf  board 13x26 holes (3,5 x 7,0 cm)
2 x AK300/3 connector
1 x 8 Header female connector for Arduino
1 x L298N (Multiwatt15)
8 x 1N4001 Diode
2 x 100nF capacitor
2 x 0,47Ohm x 1W Resistor
Wire (green and blue colors)

Step 2: Schematic

Picture of Schematic
This is the basic schematic. It works perfectly.

A more advanced schematic and board for eagle cad, you can download from the link below.

http://www.4shared.com/file/T17oVW-z/PONTE_H_L298N.html

http://www.4shared.com/file/6VdOTgv5/PONTE_H_L298N.html



Step 3: 1st Step - Perfboard, holes location

Picture of 1st Step - Perfboard, holes location
IMG_20130212_162733.jpg
IMG_20130212_162753.jpg
IMG_20130212_162804.jpg
Make a Board with 3,5 x 7,0 cm or 13 x 26 holes.

Locate in this board, all holes that we will use for the components.

Step 4: 2nd Step - Components

Picture of 2nd Step - Components
IMG_20130211_234842.jpg
IMG_20130211_234855.jpg
IMG_20130211_235036.jpg
IMG_20130212_170904.jpg
IMG_20130212_171036.jpg
IMG_20130212_171221.jpg
IMG_20130212_171253.jpg
After sanding and cleaning the board, put all components in it according of the diagram above and schematic.
For this, bend components properly.
Do the soldering for each group of components independently, for example:
diodes first and then connectors and then capacitors and resistors and finally the L298N IC; or in what order you want or you are used to do.

Step 5: 3rd Step - Soldering and wired Tracks

Picture of 3rd Step - Soldering and wired Tracks
Breakout Board 6.png
IMG_20130211_221635.jpg
IMG_20130211_221700.jpg
IMG_20130213_113240.jpg
IMG_20130213_113248.jpg
IMG_20130213_113720.jpg
IMG_20130213_113731.jpg
IMG_20130213_114222.jpg
IMG_20130213_114230.jpg
IMG_20130213_114529.jpg
IMG_20130213_114537.jpg
IMG_20130213_123104.jpg
IMG_20130213_124450.jpg
IMG_20130213_131958.jpg
IMG_20130213_132005.jpg
Following the schematic and diagram above, first of all make all soldered tracks in the bottom layer of the board.
After that, solder the jumper wires making the wired tracks.

Note.
Green wires are on the top layer and blue wires are on the bottom layer of the board.
RPihacker1 month ago

Hi BigDog1971 - excellent job with the H-bridge! Impressive presentation, you clearly worked hard to to share your work in a way people can understand and learn from.

My question is do you know of a micro-controller chip that can be added to the H-bridge motor driver board to provide PWM to control the L298N and take commands from a Raspberry Pi B+.

I am trying to build a Raspberry Pi robot from scratch, meaning the chassis and all support circuits, such as a motor control via an H-bridge are build from plans on perf-board instead of purchased.

So far I have been unable to identify a through the hole mirco-controller that can interface with the Raspberry Pi and provide PWM to the L298N.

Do you have any ideas or recommendations?

Thank you.

Strong recommendation for the Cypress Semiconductor PSoC4 processor. It can output PWM using pure hardware and has a 32bit ARM processor on the same chip. The development boards are $4.

BIGDOG1971 (author)  RPihacker1 month ago
Hi,

I am so sorry but I do not work with RaspBerry Pi and I do not know how to interconnect with arduino uno neither to the Dual H-Bridge.
So I cannot help you in this matter.


Regards

Marcelo
mykiscool8 months ago

If you aren't doing this for the fun of building, this one is definetely worth buying premade since it is only like $2.00 on ebay if you do a search for lm298n dual h-bridge.

BIGDOG1971 (author)  mykiscool8 months ago
Hi
No, I am not doing this for sale, just for fun and to know how it works.

Regards.

Hi,

Can you please tell me what is the purpose of diodes. I tried using it with

a 1 Amp. DC motor it works fine initially but fails after couple of days.

I was wondering if its to do with diodes. Should I use diodes with higher

Ampere.

Hudaib2 months ago

i am getting only 0.5 volt on all the output pins.. why its happening? i also changed my l298n to make sure the chip is fine. i am not using the capacitors. any suggestion. thanks in advance

BIGDOG1971 (author)  Hudaib2 months ago
Are you using the external 12V power source?
Check the "sense" pins connections, they must be connected to ground directly or via 0.5Ohm x 2W resistor.
The ground must be common for both +5V and +12V power source.
The capacitors are just for DC voltage decoupling.

This kind of issue is so difficult to check this problem remotely.

I hope I have helped you.

Feel free to send me your questions.


Marcelo Moraes
arduinobymyself@gmail.com
NickM23 months ago

can u create to me coding to control 2 motor, 1 motor left right and 1 motor forward backward i want use to h-bridge driver pls reply to my email nickmuzill@yahoo.com

ishan5537 months ago

and can u plz send me the video of how to use them if ur free or plz instruct me because im just 12 years old and what about the other tamiya items

and sorry if i am bothering u

BIGDOG1971 (author)  ishan5537 months ago
Hi Ishan,
Send me an email requesting the code and libraries.
You are not bothering me. Feel free to send me your questions.

arduinobymself@gmail.com


Cheers!

Marcelo Moraes
ishan5537 months ago

anks for the answer sir

ishan5537 months ago

hello i want to ask u if there is any other option for all the tamiya products mainly the gear box in the mobile controll arduino rover(fast and agile )

the instructor is busy so lz can u answer

BIGDOG1971 (author)  ishan5537 months ago
I used to using the "Uniaxial Motor Gear Motor DC3V-6V For Smart Car Chassis". You can bought it from ebay.

http://www.ebay.com/itm/2pcs-x-Uniaxial-Motor-Gear-Motor-DC3V-6V-For-Smart-Car-Chassis-/150847805419?pt=LH_DefaultDomain_0&hash=item231f3ad7eb


I recommend this: (ratio 1:220)

http://www.ebay.com/itm/2pcs-x-Uniaxial-Motor-Gear-Motor-DC3V-6V-For-Smart-Car-Chassis-1-220-/161031421315?pt=LH_DefaultDomain_0&hash=item257e387d83


regards
sama127 months ago

Will this circuit work for pololu 250:1 motor? and if yes what should be value of the sense resistor with pololu motor.

BIGDOG1971 (author)  sama127 months ago
Sorry Sama

I did not work with this pololu 250:1 motor.
I cannot help you in this case.

But I think yes, it will work
The "sense" resistor must be always 0,47Ohm or short-circuit.
BIGDOG1971 (author) 1 year ago
Hi Javi,

You are right, this H-dual bridge can control 2 DC motors or a 4 pin step motor.

http://www.instructables.com/id/PINGBot-Explorer-Robot/step6/Pictures-and-Photos/
http://www.instructables.com/id/LINUSBot-Line-Follower-Robot/step5/The-software/
In the instructables above you can found how to work with the H-bridge or in my blog too.

http://arduinobymyself.blogspot.com.br/2012/08/ponte-h-controle-de-motores-dc.html
This website is in Portuguese.

If you have a more specific doubt, please send me I will be glad to help you.

Cheers.

Javi Roces1 year ago
hello! nice work, i think that this is what i was searching for :) but, i miss some pics on how to connect your hbridge and arduinouno, and maybe some other examples of using this little shield :) (both dc motor or step motor -4 pin, i suposse-. Thanks!!
vj011 year ago
Hi

i Love this project but im having a bit of a issue i tried to develop this on a pcb using the eagle cad avaliable but for some reason it is still not working for me i followed it exactly ive triple checked everything comparing the schematic but still nothing plz can you help me

thank you
BIGDOG1971 (author)  vj011 year ago
Hi vj01

Sure that I can help you, send me an email with your PCB and I can check it.
I also have a PCB version and I can share it with you.
marcelo.moraes.1971@gmail.com

Thanks
-Standby1 year ago
Thanks for the reply i make the schematic on Isis with L293D they are very similar to 298N except the power.

http://imageup.fr/uploads/1368203462.png
BIGDOG1971 (author)  -Standby1 year ago
I saw your schematic. Great job. This is very useful and I think that is works properly.
Thanks a lot for your contribution.
-Standby1 year ago
Hello, as a student in electronics i will give you one tip for saving more pins on your AVR, use an 74LS04 logic inverter on inputs : when in1 is High in2 is Low and vice versa.
If i have some time i will send you the schematic.
BIGDOG1971 (author)  -Standby1 year ago
Hello, Your comment is very useful. I understand the concept of saving pins using an 74LS04 logic inverter on the input pins.
I am grateful for your comments and gets the hint to everyone; when necessary and when the circuit permits, use the 74LS04 to save pins on the Arduino or other micro-controller.

Send me the schematic when you have some time. If you find it convenient, create an instructable for this tip.

Greetings.

Marcelo
navanod1 year ago
OK I built this beast today though I would need some help actually wiring up to arduino. Is there any chance someone could give some more details on that side?
cheers
BIGDOG1971 (author)  navanod1 year ago
Hi Navanod,

Tell me about what exactly do you want to do. What kind of application you need.

As you saw in the "Bluetooth Bot" example, you must wire the dual H-bridge and Arduino as below.
int inA1 = 10; // Pins from H-Brdige to Arduino
int inA2 = 11;
int inB1 = 5;
int inB2 = 6;

This example is to control two motor in any direction and any speed. In the function "void set_motors(int left_speed, int right_speed)":
DC_motor-A is the right motor;
DC_motor-B is the left motor;

(0,0) - means that both DC_motors will be stopped
(255,0) - means that the DC_motor-B will have maximum speed and DC_motor-A will be stopped (motor B will be running in clockwise direction, for example)
(-255,0) - means that the DC_motor-B will have maximum speed and DC_motor-A will be stopped (motor B will be running in counter clockwise direction, for example)
(0,255) - means that the DC_motor-A will have maximum speed and DC_motor-B will be stopped (moto A will be running in clockwise direction, for example)
(0,-255) - means that the DC_motor-A will have maximum speed and DC_motor-B will be stopped (motor A will be running in counter clockwise direction, for example)

I hope this explanation had helped you.

If you have more doubts about this matter, send an email directly.
marcelo.moraes.1971@gmail.com

Best Regards

Marcelo
BIGDOG1971 (author)  BIGDOG19711 year ago
PS:

You must put the "enable" pin A and B (of the H-Bridge) to the logical 5V, in order to allow the motors runs.