Squirrels have fuzzy tails.
0 Members and 1 Guest are viewing this topic.
By the way, based on everyone experiences, what are the approximate value for those 3 gains, P, I and D ?Usually I found in articles are that P is somewhere around hundred, D is between 0.5 to 2 and I is probably 1.So, any suggestion bout the value ?
if(sensor=x) error=yelse if (sensor=w) error=z...PWM=PID(error)
if(sensor=x) PWM=xelse if (sensor=w) PWM=z...
What you are doing isCode: [Select]if(sensor=x) error=yelse if (sensor=w) error=z...PWM=PID(error)which can be simplified to justCode: [Select]if(sensor=x) PWM=xelse if (sensor=w) PWM=z...without any PID control (because you're not really doing any)
One question on ADC, should I quantized my ADCvalue[ranging from 0-1023]?