×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

PWM DC Motor Control

PWM DC Motor Control

PWM DC Motor Control

(OP)
Can anybody point me towards a good reference (preferrably and internet article) about PWM DC Motor Control? I need to control a small 5V DC motor so that it quickly moves to a specified position and holds that position untill commanded further. I am currently using a software algorithm that provides a proportial control loop. My current algorithm compares the measured encoder position to the desired encoder position and adjusts the PWM duty cycle according to the following:

Duty Cycle = Gain * abs((Measured Encoder Position) - (Desired Motor Position))

The system has a small amount of damping so it's tough to keep it from being unstable while having a reasonable response time. The system is also very sensitive to PWM frequency. I found that running it around 100Hz works the best, but that seems very slow to me. What is the typical PWM frequency for a DC motor control? Any suggestions on my control system algoritm?

Thanks for the help!

RE: PWM DC Motor Control

Microchip has a lot of good stuff in their application notes (www.microchip.com).

RE: PWM DC Motor Control

The PWM frequency is usually 20 kHz so the switching cannot be heard.  At 100 Hz, the current will rise to a high value and probably decrease to zero during the off time.

There is nothing wrong with your basic serving plan and is OK if you get the performance you need.  Increasing your gain should make the position tracking better and better until the servo goes unstable.

Is the motor being driven by an H-Bridge with free wheeling diodes?

RE: PWM DC Motor Control

(OP)
I am driving the motor with a L6202 H-bridge driver chip.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources