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:


Step 1: Hardware and Materials


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)

<p>Hi.</p><p>If i have a dc motor 24v,do i have to change something or that circuit will work with my motor too?</p><p>thanks</p>
<p>Hello, I have some resistance from 0.47 ohm 0.5W, ceramic capacitors 104Z LK and 1N4007 diodes. They go well? I need 2A output but I have to connect a single port and the power supply from 7.3 V</p><p>Regards</p><p>Gorthan :)</p>
<p>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.</p><p>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+.</p><p>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.</p><p>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.</p><p>Do you have any ideas or recommendations?</p><p>Thank you.</p>
<p>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.</p>
Hi,<br><br>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.<br>So I cannot help you in this matter.<br><br><br>Regards<br><br>Marcelo
<p>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.</p>
Hi<br>No, I am not doing this for sale, just for fun and to know how it works.<br><br>Regards.
<p>Hi,</p><p>Can you please tell me what is the purpose of diodes. I tried using it with</p><p>a 1 Amp. DC motor it works fine initially but fails after couple of days.</p><p>I was wondering if its to do with diodes. Should I use diodes with higher</p><p>Ampere.</p>
<p>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</p>
Are you using the external 12V power source?<br>Check the &quot;sense&quot; pins connections, they must be connected to ground directly or via 0.5Ohm x 2W resistor.<br>The ground must be common for both +5V and +12V power source.<br>The capacitors are just for DC voltage decoupling.<br><br>This kind of issue is so difficult to check this problem remotely.<br><br>I hope I have helped you.<br><br>Feel free to send me your questions.<br><br><br>Marcelo Moraes<br>arduinobymyself@gmail.com
<p>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</p>
<p>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</p><p>and sorry if i am bothering u</p>
Hi Ishan,<br>Send me an email requesting the code and libraries.<br>You are not bothering me. Feel free to send me your questions.<br><br>arduinobymself@gmail.com<br><br><br>Cheers!<br><br>Marcelo Moraes
<p>anks for the answer sir</p>
<p>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 )</p><p>the instructor is busy so lz can u answer</p>
I used to using the &quot;Uniaxial Motor Gear Motor DC3V-6V For Smart Car Chassis&quot;. You can bought it from ebay.<br><br>http://www.ebay.com/itm/2pcs-x-Uniaxial-Motor-Gear-Motor-DC3V-6V-For-Smart-Car-Chassis-/150847805419?pt=LH_DefaultDomain_0&amp;hash=item231f3ad7eb<br><br><br>I recommend this: (ratio 1:220)<br><br>http://www.ebay.com/itm/2pcs-x-Uniaxial-Motor-Gear-Motor-DC3V-6V-For-Smart-Car-Chassis-1-220-/161031421315?pt=LH_DefaultDomain_0&amp;hash=item257e387d83<br><br><br>regards<br>
<p>Will this circuit work for <strong><em><a href="https://www.google.com.pk/search?newwindow=1&espv=210&es_sm=93&q=pololu&spell=1&sa=X&ei=_r1CU8WpGqSQ7AaH5oAw&ved=0CCUQvwUoAA" rel="nofollow">pololu</a> </em></strong>250:1 motor? and if yes what should be value of the sense resistor with pololu motor.</p>
Sorry Sama<br><br>I did not work with this pololu 250:1 motor.<br>I cannot help you in this case.<br><br>But I think yes, it will work<br>The &quot;sense&quot; resistor must be always 0,47Ohm or short-circuit.
Hi Javi, <br> <br>You are right, this H-dual bridge can control 2 DC motors or a 4 pin step motor. <br> <br>http://www.instructables.com/id/PINGBot-Explorer-Robot/step6/Pictures-and-Photos/ <br>http://www.instructables.com/id/LINUSBot-Line-Follower-Robot/step5/The-software/ <br>In the instructables above you can found how to work with the H-bridge or in my blog too. <br> <br>http://arduinobymyself.blogspot.com.br/2012/08/ponte-h-controle-de-motores-dc.html <br>This website is in Portuguese. <br> <br>If you have a more specific doubt, please send me I will be glad to help you. <br> <br>Cheers. <br> <br>
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!!
Hi <br> <br>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 <br> <br>thank you
Hi vj01 <br> <br>Sure that I can help you, send me an email with your PCB and I can check it. <br>I also have a PCB version and I can share it with you. <br>marcelo.moraes.1971@gmail.com <br> <br>Thanks
Thanks for the reply i make the schematic on Isis with L293D they are very similar to 298N except the power. <br> <br>http://imageup.fr/uploads/1368203462.png
I saw your schematic. Great job. This is very useful and I think that is works properly. <br>Thanks a lot for your contribution.
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. <br> If i have some time i will send you the schematic.
Hello, Your comment is very useful. I understand the concept of saving pins using an 74LS04 logic inverter on the input pins.<br>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.<br><br>Send me the schematic when you have some time. If you find it convenient, create an instructable for this tip.<br><br>Greetings.<br><br>Marcelo
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? <br>cheers
Hi Navanod,<br> <br> Tell me about what exactly do you want to do. What kind of application you need.<br> <br> As you saw in the &quot;Bluetooth Bot&quot; example, you must wire the dual H-bridge and Arduino as below.<br> int inA1 = 10; // Pins from H-Brdige to Arduino<br> int inA2 = 11;<br> int inB1 = 5;<br> int inB2 = 6;<br> <br> This example is to control two motor in any direction and any speed. In the function &quot;void <strong>set_motors(int left_speed, int right_speed)&quot;</strong>:<br> DC_motor-A is the right motor;<br> DC_motor-B is the left motor;<br> <br> (0,0) - means that both DC_motors will be stopped<br> (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)<br> (-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)<br> (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)<br> (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)<br> <br> I hope this explanation had helped you.<br> <br> If you have more doubts about this matter, send an email directly.<br> marcelo.moraes.1971@gmail.com<br> <br> Best Regards<br> <br> Marcelo
PS: <br> <br>You must put the &quot;enable&quot; pin A and B (of the H-Bridge) to the logical 5V, in order to allow the motors runs.

About This Instructable


79 favorites


Bio: I am 43 years old and I live in Brazil. I am a Telecommunication / Electronics Engineer. Sixteen years acting in the industry of "Telecommunication and ... More »
More by BIGDOG1971: ROVER Bot - The Arduino Bluetooth Controlled Tank WATERING SYSTEM - INTRODUCTION 16x8 LED dot matrix with MAX7219 module
Add instructable to: