This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

speed control of dc motor in real time

hello sir,
i m doing a project related to speed control of dc motor in REAL time. i m using 89C51RD2 microcontroller and a dc motor of 12V.
well i m not getting how to write the code of my program.i got some help from forums of keil.com
i hav read the data base of RTX5i TINY OS from the MICROVISION2.
please help me as soon as possible.
thanking you,
kulvinder.

  • What help do you need?

    You haven't asked any specific question yet, so it's impossible to know how to answer it!

    Do you understand the basics of DC motors, and how to control them?
    Note that this is a hardware issue - nothing to do with Keil tools.
    In fact, nothing to do with microcontrollers at all!

    You need to understand the principles before you can even think about implementing them with a microcontroller!

    In order to control speed you must, obviously, measure it - how do you propose to do that?
    Back-EMF?
    Tachometer?
    or what?

    Then there's actually driving the motor - how do you propose to do that?
    With a chip, or build from scratch?
    Does it need to be reversible?

    As for using RTX51 TINY or any other OS, you really should leave that until you've mastered the basics!

  • In order to control speed you must, obviously, measure it

    Or is it a stepper motor? If the micro is actually continuously causing the motion, it may not really need to measure it. (Precision or robustness might be good reasons to measure the actual speed of the motor anyway.)

  • re: Andy Neil
    Posted
    22-Feb-2008 00:47

    if you need it "as soon as possible" then there are two possibilities
    a) do it yourself
    b) provide enough information to make it possible to provide answers.

    Erik

  • Well a suggestion before you get to much into things this way please read this URL catb.org/.../smart-questions.html

    I suspect this will help you get your questions answered more promptly than they have been and with fewer perceived troubles.

    Stephen

  • I assume that this isn't the only forum where he has posted.