![]() | ![]() | ![]() |
| | |||||||
| Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc. |
| | Thread Tools | Search this Thread | Display Modes |
| | ||
| Experienced Member | Quote:
You enable two channels of the A/D converter to alternately sample the tachometer and the voltage input. Use a PID based algorithm to control the PWM output which in turn controls a driver circuit. There is an application note in the microchip's website which describes servo control of a brushed DC motor. Although it is designed for position control, I think it can be easily converted to velocity control. It is for the PIC17C42 however. http://ww1.microchip.com/downloads/e...tes/00532c.pdf
__________________ "Having to do with Motion Control" | |
| | |