Hi!I want to control a motor with PWM, reading a rotary encoder to get speed, and I thought PID would be a good fit. However, I'm confused about a couple things, mostly regarding the proportional term.First off, when the speed gets higher than the setpoint, the error gets negative, right? When then multiplied by the proportional constant, the output variable also is negative, but the PWM duty cycle is only 0-100% (or 0-255).
Hello, i'm a Newbie so forgive me for the Q? but i am new to this whole PID thing but i'm trying to get my mind around it.. i'm using a pneumatic system(2 solenoids) so i will need to control 2 outputs with 1 input, is this even possible to do? i mean, i know people are doing it all the time but i cant find any real help.Don't i need 2 outputs in the "define Variables" here? i'm so lost. if anyone can bring insight that would be much appreciated thanks..