Lynxmotion dual-H bridge DC motor controller

advertisement

D ualH -Bridge

D C M otor D riv er

Lynxmotion, Inc.

PO Box 818

Pekin, IL 61555-0818

Tel: 309-382-1816 (Sales)

Tel: 309-382-2760 (Support)

Fax: 309-382-1254

E-m: sales@lynxmotion.com

E-m: tech@lynxmotion.com

Web: http://www.lynxmotion.com

Assembly Manual DHB-01 Ver 2.0

Dual H-Bridge Ver 2.0

B

Caution! Read the manual completely before wiring and applying power to the board! Errors in wiring can damage the H-Bridge or the host microcontroller.

B

Caution! The wires for microcontroller I/O and power can break off if wires are bent back and forth repetitively. Mount the board and terminate the wires as soon as possible.

B

Caution! Do not reverse the power plug as damage to the H-Bridge board will occur. These boards are fully tested before they leave the factory. If the board is damaged by reverse power the warranty is void.

B

Caution! Do not short the motors wires together. Damage to the H-Bridge will occur. These boards are fully tested before they leave the factory. If the board is damaged by shorting the motor wires together the warranty is void.

A (+)in

A (-)in

B (+)in

B (-)in

A enable

B enable

+5vdc

GND

A(+)

A(-)

B(+)

B(-)

+Vcc

GND

}

Motor A

}

} Motor B

Motor Supply

H2

Logic

Power

R1

D1D2D3D4

L1

A (+)in

A (-)in

B (+)in

B (-)in

A enable

B enable

+5vdc

H1 R2

D5D6D7D8

R3

C1

++++

C2

C3

L298HN

Dual H-Bridge v2.0

(c) 02 by Lynxmotion, Inc.

1

Using the Dual H-Bridge Kit

Mounting

Mount the circuit board onto the robot using standard 4-40 hardware. Page 5 illustrates that the

H-Bridge can be stacked with the Next Step or OOPic-R microcontrollers.

Wiring Options

The device simply plugs into the I/O header posts of most microcontrollers. The enable lines are pulled high with 10k resistors, and have been put on their own connector. So - if you would like to have the outputs enabled at all times for circuit simplicity, or if you are using a microcontroller with a limited number of I/O lines, then just leave that connector off.

Device Specifications

The L298N is capable of delivering 46 volts at up to 2 amps per channel, but the Dual H-Bridge

Kit was designed to control motors in the range of 6 to 12 volts. Even at 12 volts the power can be

48 watts, so a cooling fan will be required. If using the device for higher powered motors it is strongly recommended that you add inline fuses to the power supply and motor leads. A typical application might be to retrofit a two motor differential steering "toy" such as the Dino Trax or the

Scorcher with a Next Step or OOPic-R controller, a Dual H-Bridge and an IRPD to make a complete autonomous robot. Replace the IRPD with the Tracker to build a very fast line follower.

Electrical Noise

Inexpensive DC motors can generate a lot of electrical noise. Sometimes, in extreme cases, this noise will interfere with the operation of electronic circuitry, such as causing a microcontroller to reset. Below are some tips to help reduce the amount and the effect of the radiated electrical noise.

1) Keep the motor power and wiring separate from the logic. A common ground will be necessary.

2) Make sure the wiring is kept short, neat and the connections are solid, not flaky.

3) Mount the microcontroller and associated circuitry away from the DC motors.

4) A s illustrated below, bypass capacitors can be added to reduce the amount of emitted noise.

Grounded

Case

Floating

Case

2

Schematic Diagram

+5v Ref

A enable

B enable

A(+) input

A(-) input

B(+) input

B(-) input

GND

Logic

Power

L1

R1

R2 R3

C3 C2 C1 + +Vs

+Vs

D1 D2 D3 D4

10

12

5

7

9

6

11

L298N

4

2

3

13

1 15 8

14

D5 D6 D7 D8

A(+)

A(-)

B(+)

B(-)

GND

GND

Truth Table for one motor

Motor Power Status

H

P

P

H

H

L X X

Power Off

H L L

Stop (Brake)

H

L

L

H

Rotate CW (Fast)

Rotate CCW (Fast)

H

H

L

H

L

H

Stop (Brake)

Rotate CW (Slow)

Rotate CCW (Slow)

H=High L=Low P=Pulse X=Don't Care

3

+

DC

Motor

A

+

DC

Motor

B

It Stacks!

Dual H-Bridge stacked with the Next Step micro!

Dual H-Bridge stacked with the OOPic-R!

4

Copyright © 1998 by Lynxmotion, Inc.

Download