go_away

Author Topic: l298 motor driver  (Read 3684 times)

0 Members and 1 Guest are viewing this topic.

Offline w_bwrTopic starter

  • Jr. Member
  • **
  • Posts: 18
  • Helpful? 0
l298 motor driver
« on: April 27, 2010, 12:49:37 AM »
i 'm using L298 IC to control dc motor, i hav used the schematic which is in the datasheet of the l298. but problem is 8v appears on the motor but it didn't rotate. and when i directly apply 8v to the motor it rotates.

Need help???

Offline z.s.tar.gz

  • Supreme Robot
  • *****
  • Posts: 540
  • Helpful? 5
  • Linux Guru
Re: l298 motor driver
« Reply #1 on: April 27, 2010, 05:33:19 AM »
First off this should be a sign that 8V is not reaching the motor via the L298. This means that something is not hooked up correctly. Judging by the amount of pins on the chip, I'd say that it is very possible you have a wireing problem.

Let's assume though that 8V is in fact reaching the motors through the chip. This would mean that the motors are unable to recieve enough current (and therefor torque) to start. What kind of motor are you trying to use? The L298 is rated at 3A so it should be enough...
Save yourself the typing. Just call me Zach.

Offline billhowl

  • Supreme Robot
  • *****
  • Posts: 375
  • Helpful? 32
  • Your success is in your hands.
Re: l298 motor driver
« Reply #2 on: April 27, 2010, 05:34:20 AM »
Please check enable input pins 6 or 11 is high,
Input 1 & 2 pins 5&7 or Input 3 & 4 pins 10&12 are one is high and the other is low. the two Input's are in different level.
The sense A & B pins is connected to ground with 0.5 Ohms resistor or directly connected to ground.
measure voltage across the output to motor (out 1&2 or 3&4 Pins 2&3 or 13&14).

Offline Soeren

  • Supreme Robot
  • *****
  • Posts: 4,672
  • Helpful? 227
  • Mind Reading: 0.0
Re: l298 motor driver
« Reply #3 on: April 27, 2010, 09:20:13 AM »
Hi,

Sound like it's the sense pins that didn't get connected.
Regards,
Søren

A rather fast and fairly heavy robot with quite large wheels needs what? A lot of power?
Please remember...
Engineering is based on numbers - not adjectives

Offline w_bwrTopic starter

  • Jr. Member
  • **
  • Posts: 18
  • Helpful? 0
Re: l298 motor driver
« Reply #4 on: April 27, 2010, 12:19:20 PM »
What do Sense pin do?

Offline Jak24

  • Full Member
  • ***
  • Posts: 96
  • Helpful? 0
Re: l298 motor driver
« Reply #5 on: April 27, 2010, 12:32:05 PM »
HI  :
I'm using the exactly the same IC driver  this one right: http://www.st.com/stonline/books/pdf/docs/1773.pdf
here are somethings you can check :
the sense pin is the PWM signal generated by the microconntroller but if you whant the motor to run at full speed connect it to 5v
connect one of the inputs to ground other one to 5v and enable also to 5v test it like that if it works then there is something
wrong with your signal
if on side of the h-bridge isn't working check the other side (maybe one side is broken or something)
and check how many amps your motor requires because if it's more than 2A but less then 4A then you can parallel the h-bridge so that both bridges control the same motor :D
if nothing else works then a take apart the whole circuit and re wire it .... if still you checked all this then it's almost safe to say the h-bridge is broken ...
(and PS : be-careful with it's  pins they tend to break easily  )

Regards

Jak24

Offline Soeren

  • Supreme Robot
  • *****
  • Posts: 4,672
  • Helpful? 227
  • Mind Reading: 0.0
Re: l298 motor driver
« Reply #6 on: April 27, 2010, 03:47:30 PM »
Hi,

the sense pin is the PWM signal generated by the microconntroller but if you whant the motor to run at full speed connect it to 5v
That would not make it work at all!

The sense pin is for connecting a low value resistor to ground. It is the voltage drop developed over this resistor that the L298 uses to limit current.
If the resistor is not used, the pin should be connected to ground to enable the motor to get power and when this pin is open, the positive pole of the motor will show voltage without anything happening, when referenced to ground (as the motor circuit isn't closed towards ground).

Just ground the pins for a quick test, but it may be a good idea to calculate sense resistors for real use, as it will protect the motor from burning out under a locked rotor condition.
Regards,
Søren

A rather fast and fairly heavy robot with quite large wheels needs what? A lot of power?
Please remember...
Engineering is based on numbers - not adjectives

Offline madsci1016

  • Contest Winner
  • Supreme Robot
  • ****
  • Posts: 1,450
  • Helpful? 43
Re: l298 motor driver
« Reply #7 on: April 27, 2010, 03:51:24 PM »
Hi,

Sound like it's the sense pins that didn't get connected.


I agree with Soeren, to get that h-bridge to work you have to connect the current sense pins to ground.

EDIT: lol, posted as Soeren was replying.
« Last Edit: April 27, 2010, 03:52:37 PM by madsci1016 »

Offline Jak24

  • Full Member
  • ***
  • Posts: 96
  • Helpful? 0
Re: l298 motor driver
« Reply #8 on: April 27, 2010, 11:41:46 PM »
HI

....sorry :D i mixed up the current sensing pin with the enable pin :D.....
PS: one current sense pin is for one motor the other one is for the other motor:D
sorry again ...

Regards

Jak24

 


Get Your Ad Here

data_list