Hi every one I suppose to control speed of DC Motor using LPC1768(MOTOR CONTROL PWM). is it feasible to implement a digital PID controller using 1768? or i must use a more advanced micro controller. if YES, can you help me with writhing the codes? how can i implement a PID with c codes? Do you have sample codes for initial setup for Motor Control PWM?
thanks
The 1768 is more than enough capable to get people to writhe when writing their code.
Have you spent any time reading up on the capabilities of the processor? Or how a PID algorithm works? Remember that you can also simulate PID code on a PC - the algorithm doesn't care about actual hardware for controlling the output.
How do you kids get assigned these projects without the first clue about how to do it, or do your own basic research?
They sleep half the time during their school sessions. Then they finally notices that they are expected to do different assignments to pass the course. Then they get really exited about the existence of Internet, hoping for a quick fix for their fix.
Hopefully, most schools don't just hand out this kind of assignments, but also have written tests on-site, with zero Internet access.
another question: I can't find QEIPOS & QEIVEL registers in MCPWM register list. Does QEIPOS or QEITIME registers works in MCPWM section as it works in QEI sections? if not, how can i capture position? is it practical to setup QEI & PWM together in order to use QEIPOS, QEITIME or QEIVEL registers? thanks