Control Speed Motor PID
Control Speed Motor PID
by AnnaMai
This is briefly instruction to control motor speed using PID algorithm. Also in this project, motor speed will be print
out at computer screen
https://www.youtube.com/watch?v=QNCWW4TX4Gg
Step 1:
stringComplete = false; }
} if (mySt.substring(0,12) == "vs_set_speed"){
void detect_a() { }
{ }
else{ }
analogWrite(pin_pwm,0); }
Coding in Visual Studio C++ is quite long, see code at this link
https://drive.google.com/file/d/0B1UeJfx4pZ1GV1YzN1k0aElPb2c/view?usp=sharing
Step 3: RUN It