Guest User

Untitled

a guest
Nov 21st, 2017
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. setPoint = 90 degrees ;
  2.  
  3. Tunings
  4.  
  5. kp = 10
  6. ki = 0
  7. kd = 0
  8.  
  9. PID pidController(&Input, &Output, &Setpoint, Kp, Ki, Kd, DIRECT); // Instantiation of the PID Controller
  10.  
  11. temperatureReadinAnalogForm= analogRead (temperaturesensorPin) // values will be from 0 to 1023
  12. myPID.compute()
  13. analogWrite (heaterPin, Output) // Output will take values from 0 to 255
Add Comment
Please, Sign In to add comment