Black & Decker RC880 Manuel d'utilisateur Page 34

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 49
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 33
}
if ((millis() - lastInput) > 3000) // return to RUN after 3 seconds idle
{
opState = RUN;
return;
}
lcd.setCursor(0,1);
lcd.print(Ki);
lcd.print(" ");
DoControl();
}
}
// ************************************************
// Derivative Tuning State
// UP/DOWN to change Kd
// RIGHT for setpoint
// LEFT for Ki
// SHIFT for 10x tuning
// ************************************************
void TuneD()
{
lcd.setBacklight(TEAL);
lcd.print(F("Set Kd"));
uint8_t buttons = 0;
while(true)
{
buttons = ReadButtons();
float increment = 0.01;
if (buttons & BUTTON_SHIFT)
{
increment *= 10;
}
if (buttons & BUTTON_LEFT)
{
opState = TUNE_I;
return;
}
if (buttons & BUTTON_RIGHT)
{
opState = RUN;
return;
}
if (buttons & BUTTON_UP)
{
Kd += increment;
delay(200);
}
if (buttons & BUTTON_DOWN)
{
Kd -= increment;
delay(200);
© Adafruit Industries
https://learn.adafruit.com/sous-vide-powered-by-arduino-the-sous-
viduino
Page 34 of 49
Vue de la page 33
1 2 ... 29 30 31 32 33 34 35 36 37 38 39 ... 48 49

Commentaires sur ces manuels

Pas de commentaire