The coldfire I'll be working with has a pin that can count pulses via hardware and store the values in a register. When i get to writing up some firmware I'll monitor that every .01 seconds or so with an encoder on the motor shaft. It would be nice to have RPM feedback to make current-limiting decisions as well. Big ol' state-space controller (a step beyond PID - a big step).
|