DC Motor Control (H-Bridge) using PID and a Potentiometer, and a Tachometer.
I have a project that requires Implementing a PID into controlling an DC motor (H-bridge), but im currently stuck on the code and other implementing stuff that i need help of. The desired Speed can be adjusted using the potentiometer, and the tachometer data sheet reads each volt equals 1000rpm. So im stuck here on whether to count the Tachometer as a timer or as ADC ? and im trying to figure out a good code, which i have written some of it that helps me achieve this, and exactly where to put the code of the PID ? If any of you can help i would be so pleased.


