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.
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
View all questions in Keil forum