Electro nS
Full Member level 6
- Joined
- Mar 9, 2013
- Messages
- 324
- Helped
- 49
- Reputation
- 98
- Reaction score
- 48
- Trophy points
- 1,308
- Activity points
- 3,818
i have implemented several codes for servo motors ( DC + encoder ) in C
the PID loop calculates at specific timing the error and off course P then I then D terms amplify the error to get the required PWM . ( which if error is big the starting PWM is HIGH (exp 50%)
everything is fine so far with small motors . but with big motors (high current) this high value cannot be used directly unless you want to see smoking mosfets . There need to be soft start , or ramping .
NOW how the h*** can this be implemented in addtion to PID !!! does this what commercial controllers do ?? or is there something i am missing ?
and please donot ask me to put my code here (its against company policy!!!)
thanks for help in advance
the PID loop calculates at specific timing the error and off course P then I then D terms amplify the error to get the required PWM . ( which if error is big the starting PWM is HIGH (exp 50%)
everything is fine so far with small motors . but with big motors (high current) this high value cannot be used directly unless you want to see smoking mosfets . There need to be soft start , or ramping .
NOW how the h*** can this be implemented in addtion to PID !!! does this what commercial controllers do ?? or is there something i am missing ?
and please donot ask me to put my code here (its against company policy!!!)
thanks for help in advance