Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- setPoint = 90 degrees ;
- Tunings
- kp = 10
- ki = 0
- kd = 0
- PID pidController(&Input, &Output, &Setpoint, Kp, Ki, Kd, DIRECT); // Instantiation of the PID Controller
- temperatureReadinAnalogForm= analogRead (temperaturesensorPin) // values will be from 0 to 1023
- myPID.compute()
- analogWrite (heaterPin, Output) // Output will take values from 0 to 255
Add Comment
Please, Sign In to add comment