June 25, 2011

Dual L298HN Motor Driver

I built this motor controller to power the motors for an Arduino-controlled robot I am working on.  It uses 2 L298HN dual full-bridge chips, each of which is capable of powering 2 DC motors at 2A each, with bidirectional control.  You can get up to 3 of the L298HN chips for free from the ST website.  The rest of the parts needed are as follows:

Components:


Placement:


Soldered:





I cut an old northbridge heatsink in half and drilled and tapped it to fit the chips:



Here's the board's layout:


Next to an Arduino for a size reference:


In use:

5 comments:

  1. can you plz post the code for it i'm using a single l298hn motor driver

    ReplyDelete
  2. The code I used is on my tree climbing robot page:

    http://build-its.blogspot.com/2011/08/tree-climbing-robot.html?showComment=1322695235398#c7146393200544544678

    However, it has lots of other irrelevant code in it. Basically, all you have to do is this:

    To enable a motor, set the pin connected to the enable pin on the chip to "HIGH." Alternatively, if you want to use PWM speed control, connect a PWM output to the enable pin.

    To spin the motor, set one out of the two motor input pins to "HIGH" and the other to "LOW." To switch the direction, just switch the states of both these pins.

    ReplyDelete
  3. plz tell me how can i run and find program for 3*3 led matrix gui control with arduino

    plz.................

    ReplyDelete
  4. can you make connections clear between terminal strips and l298hn..?

    ReplyDelete