AlashPID
PID controller without global variables: out = pid.compute(input). Anti-windup, no derivative kick, filter, slew limit, bumpless manual/auto and relay auto-tuning. No dependencies.
Установка
Последняя опубликованная версия- Скачайте архив — реестр отдает его уже проверенным.
- В Arduino IDE выберите «Скетч → Подключить библиотеку → Добавить .ZIP библиотеку».
- Укажите скачанный файл — библиотека появится в списке доступных.
SHA-256:faba4417bf083eab0415274f584f890af5531a477a34bd0a37aff798bd725586AlashPID-1.0.1-faba4417.zipОписание
Keeps a temperature, speed or light level at a setpoint: AlashPID pid(2, 0.5, 0); pid.setSetpoint(60); analogWrite(pin, pid.compute(sensor)). No pointers to global variables. Integral windup protection, derivative on measurement (no kick when the setpoint changes), derivative filter, deadband, output slew limit, feed-forward, safe output on a failed sensor, DIRECT and REVERSE action. AlashPIDAutoTune finds the gains by the relay method and Ziegler-Nichols or Tyreus-Luyben rules. Explains problems in Russian, Kazakh or English. Works on Arduino AVR, ESP32, ESP8266. Examples with a virtual oven need no hardware. Made for classes and kits by Alash Electronics.