Pages: [1]   Go Down
Author Topic: H-Bridge + motor speed control  (Read 1558 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Newbie
*
Karma: 0
Posts: 4
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hello, I am relatively new to Arduino, I just finished the tutorial on controlling the direction of a motor using an H-bridge (L293E or SN754410):

http://itp.nyu.edu/physcomp/Labs/DCMotorControl

Everything worked out fine, but now I am hoping to use the same or similar circuit to control the speed of the motor.

Using the existing set-up/tutorial is there way to do this by using Arduino + photocell/pot, etc?

Thank you,
Kyle
Logged

Daniel
Guest
 Bigger Bigger  Smaller Smaller  Reset Reset

hi

 the logical thing to do would be:
- set enable pin high
- set one control pin low/high depending on direction
- pulse other control pin with analogWrite(controlpin, value) for speed control.

You might also just be able to leave the control signal as is, and pulse the enable pin with the analogWrite PWM signal.

Watch out for heat. With all that swtiching going on, the motor will throw a lot of back emf into your driver chip and the protection diodes.
Don't be surprised if it gets really hot or self-destructs as a result. The solution to this is good bypass capacitors and sometimes even low-value inductors in series with the motor.  A big wheelchair-type motor will take some careful design for the switching noise. Small hobby-type motors will be no sweat.
« Last Edit: February 25, 2007, 06:10:58 pm by Daniel » Logged

0
Offline Offline
Jr. Member
**
Karma: 0
Posts: 91
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I seem to remember that servos can be modified for continuous rotation, and speed can then be controlled by the position signal duration.
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 4
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thank you, I was able to control the motors speed with the analog PWM function. The chip isn't getting too hot either. the help was much appreciated.

Logged

Pages: [1]   Go Up
Jump to: