Solved

pid dc motor controller using 8051 uc

Posted on 2006-06-10
5
3,563 Views
Last Modified: 2008-01-09
hi
       i have been trying toi design a PID dc motor controller using 8051 uc in assembly.it is essential to use 8051 and a pic cannot be used.can anyone help me in this regard.

                                               thanx
0
Comment
Question by:mack123
  • 3
  • 2
5 Comments
 
LVL 16

Expert Comment

by:PaulCaswell
Comment Utility
Hi mack123,

Post what you've got so far and tell us what does or doesnt work.

Paul
0
 

Author Comment

by:mack123
Comment Utility
hi
         ok here goes.i m not using any timers or interupts.the two inputs from the shaft encoder of the motor are input to two pins.i m using polling and detecting the direction of the motion by usin the pulses from the shaft encoder.
     this much work fine but now the problems start.i cant implement a proper pwm algorithm.the motor just overshoots the required position .
   i tried doing it without pwm and it worked fine  but then i dont have anything to implement pid on.
 another problem  i facing is that as 8051 is a 8-bit microcontroller wat to do when my position couter exceeds
FFh.
0
 
LVL 16

Expert Comment

by:PaulCaswell
Comment Utility
I'm not familliar with PWM. Could you describe it for us.

Handling multi-byte numbers is quite easy. Each time you add to your counter, if the carry if set after the add, increment a second byte.

Paul
0
 

Author Comment

by:mack123
Comment Utility
pwm-pulse width modulation
pulses are given to the motor and by tracking its position usin g the shaft encoder pwm is varied in such so that the motor turns and stops at a required position.
   i have to implement position control.
0
 
LVL 16

Accepted Solution

by:
PaulCaswell earned 195 total points
Comment Utility
Ah! Got it!

You are using the inputs to detect the direction of spin. Have you managed to measure the time between the two pulses? That sounds like a good step to take. After all, then we'd have two of the three letters of the acronym, the 'pulse width'. :-)

Paul
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
What is a Logic Library? 2 505
Convert MP3/Wav to bin format ? 4 872
FSM's, Flow Charts or Something else 5 367
Convert dialog units to pixels 5 101
This article explains in simple steps how to renew expiring Exchange Server Internal Transport Certificate.
Marketing can be an uncomfortable undertaking, especially if your material is technology based. Luckily, we’ve compiled some simple and (relatively) painless tips to put an end to your trepidation and start your path to success.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now