pid position control
AHMET AKSU
Posts: 62
in Propeller 1
I want to make pid position control for dc motor.I will use incremental encoder for feedback and lmd 18200 h bridge for driving dc motor.I check obex there is no this kind of object .are there any one who have some idea on coding
Comments
This does exist in the OBEX. The author is Craig Weber (crgwbr).
The only strange thing he did was to have the same K for KP, KI, KD but this is easily rectified. One forum member addressed this issue and the thread title included "enhanced PID....", IIRC but I could not locate the thread.
I attempted something similar using Propbasic but I need encoder frequencies beyond what the Prop can handle so I decided to use dedicated motion chips from jrkerr.com. The chips have a serial interface, 2.5MHz encoder frequency (with filtering) and handle trapezoidal motion profiling.
I don't recall if Kye uses two direction control pins or one. I think the OP is asking for the code to use a different number of direction control pins.