Hi everyone, I am trying to build a robot on my own for the first time and am in need of a little help:
I have one DC motor (rated 12V I think) which I want to have bidirectional control of. To accomplish this, I selected the L298 dual H bridge as I had them handy.
CONNECTIONS:
I have made the following connections:
1 (Current Sense A)--not connected this should be ok right? this pin is only used for the logic circuit to determine how much current is flowing to your motor i think. . .
2 (Output 1)--red terminal of motor
3 (Output 2)--black terminal of motor
4 (supply voltage)--+12V
5 (Input 1)--either +5 or GND
6 (Enable A)--+5
7 (Input 2)--either +5 or GND
8 (GND)--GND
9 (Logic supply voltage)--+5
10 --not connected
11 --not connected
12 --not connected
13 --not connected
14 --not connected
15 --not connected
TESTING I HAVE DONE:
*Keep in mind that my enable is permanently tied to logic high.
Whenever I have the motor's terminals connected to the outputs, both outputs are the same voltage regardless of what the inputs are.
I suspected that somehow the motor was shorting together the two outputs, so I removed the motor and began changing the inputs again.
With no load, the outputs DO behave as expected. However, the chip doesn't behave like this when the motor is connected.
QUESTIONS:
How exactly does this chip work? As I understood it, the current should flow out of one of the outputs, through the motor and then into the other output pin. Then to go the other direction, reverse the inputs--and the current should flow out of the other output through the motor in the opposite direction and then into the first output pin.
Does anyone have any ideas?
I have one DC motor (rated 12V I think) which I want to have bidirectional control of. To accomplish this, I selected the L298 dual H bridge as I had them handy.
CONNECTIONS:
I have made the following connections:
1 (Current Sense A)--not connected this should be ok right? this pin is only used for the logic circuit to determine how much current is flowing to your motor i think. . .
2 (Output 1)--red terminal of motor
3 (Output 2)--black terminal of motor
4 (supply voltage)--+12V
5 (Input 1)--either +5 or GND
6 (Enable A)--+5
7 (Input 2)--either +5 or GND
8 (GND)--GND
9 (Logic supply voltage)--+5
10 --not connected
11 --not connected
12 --not connected
13 --not connected
14 --not connected
15 --not connected
TESTING I HAVE DONE:
*Keep in mind that my enable is permanently tied to logic high.
Whenever I have the motor's terminals connected to the outputs, both outputs are the same voltage regardless of what the inputs are.
I suspected that somehow the motor was shorting together the two outputs, so I removed the motor and began changing the inputs again.
With no load, the outputs DO behave as expected. However, the chip doesn't behave like this when the motor is connected.
QUESTIONS:
How exactly does this chip work? As I understood it, the current should flow out of one of the outputs, through the motor and then into the other output pin. Then to go the other direction, reverse the inputs--and the current should flow out of the other output through the motor in the opposite direction and then into the first output pin.
Does anyone have any ideas?