1
\$\begingroup\$

I'm looking at a motor controller, the Motor Driver 2A Dual L298 H-Bridge, and since I'm pretty new at this I'm wondering what the pins are:

IN1, ENA, IN2, CSA, IN3, ENB, IN4, CSB

Now, I'm guessing INx stands for INPUT. But what type? Analogue or digital?

\$\endgroup\$
6
\$\begingroup\$

The answers are in the datasheet:

enter image description here

enter image description here

Points 3, 4 and 5 tell you what the pins do. INx are digital inputs for controlling motor direction. ENx are digital inputs for enabling each motor. The CS pins are for current monitoring purposes. There is a small resistor (e.g. 0.5 ohms in this case) between this pin and ground, so the current will be translated to a voltage at the CS pin (e.g. 1A * 0.5 ohms = 0.5V)
You can see the two large 3W, 0.5 ohm current sense resistors clearly in the picture below:

module picture

Here is an example from the L298 datasheet:

L298

The quality isn't very good, sorry. Note this shows only 1/2 of the LM398. Hopefully you can see the resistor at the bottom left, with a tap off to "control circuit" (e.g. current can be controlled if desired, and monitored for overcurrent)
The truth table gives the same info as points 3, 4, 5. C and D equal IN1 and IN2 (or IN3, IN4 for the other half) Ven equals EN1 (or EN2..) and the pin with the resistor is CSA (or CSB)
Hope this all makes sense.

\$\endgroup\$
2
  • \$\begingroup\$ From the picture I guess that the current sense resistors are on the PCB. \$\endgroup\$ Jul 7 '12 at 11:21
  • \$\begingroup\$ Well spotted - I didn't enlarge the picture. Will update now, thanks. \$\endgroup\$
    – Oli Glaser
    Jul 7 '12 at 11:30

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.