Society of Robots - Robot Forum
Electronics => Electronics => Topic started by: madsci1016 on December 05, 2009, 04:38:15 PM
-
Has anyone used these chips before? How have you wired them?
Each channel on this h-bridge has three control lines; In1, In2, and enable.
In order to get the motor to spin, In1 = !In2 and enable is high. depending on which In is high determines the direction.
If i want to only use one hardware PWM per channel, should PWM the enable line and just hold the In's steady, or will that cause me trouble?
-
That could work. Look at the truth table in the data sheet to see what the state of the drive FETs are when the PWM signal is high and low.
Also do a search in these forums, the L298 is well discussed.
-
Hi,
If i want to only use one hardware PWM per channel, should PWM the enable line and just hold the In's steady
Yes, that's the way to do it.
-
Thanks guys.
I did do the mandatory googling but got answers either way, so i figured i'd ask the experts.
Man, the spec sheet is confusing. It took me a few hours to figure out you HAD to connect the current sense to ground to get the hbridge to work.
-
Its confusing since the L298 can be used in many ways. But you figured it out and this will make it easier for you to learn the next new chip.
-
I also want to control the motor through only one PWM channel. What do I do? I want to interface a dc motor 12v (1amp current requirement) like a servo(has three pins- gnd,vcc and pwm)
Please help
-
Hi,
Please start a new topic, rather than bringing a 3 year old thread back from its grave :)
I also want to control the motor through only one PWM channel. What do I do? I want to interface a dc motor 12v (1amp current requirement) like a servo(has three pins- gnd,vcc and pwm)
You need to describe your project a little better.
Do you have the motor?
Is is a plain old DC motor with 2 terminals, that you want to add a PWM line to, or...?
Do you need it to be bidirectional (i.e. capable of rotating both CW and CCW), or will a single direction do?
Why do you want to add the extra line? It isn't really needed, as you can just PWM either of the two terminals.
-
If he wants to turn a DC motor into a servo motor, he could always use a servo amplifier. You could always try something like this.
http://www.e-gizmo.com/KIT/SERVO%20AMPLIFIER.html (http://www.e-gizmo.com/KIT/SERVO%20AMPLIFIER.html)
Although I'm not really sure if you'd be able to find any kinds of these in your place.