Outils pour utilisateurs

Outils du site


ssi_elec_regulation_asservissement

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentesRévision précédente
ssi_elec_regulation_asservissement [2025/12/08 08:35] mistert2ssi_elec_regulation_asservissement [2025/12/09 13:54] (Version actuelle) mistert2
Ligne 187: Ligne 187:
 int rpmToPWM(float rpm) { int rpmToPWM(float rpm) {
   // Ajuste selon ton moteur   // Ajuste selon ton moteur
-  // Ex : 0–3000 tr/min -> 0–255 PWM+  // Ex : 0–150 tr/min -> 0–255 PWM
   if (rpm < 0) rpm = 0;   if (rpm < 0) rpm = 0;
-  if (rpm > 3000) rpm = 3000;+  if (rpm > 150) rpm = 150;
  
   return map(rpm, 0, 150, 0, 255);   return map(rpm, 0, 150, 0, 255);
Ligne 227: Ligne 227:
   Serial.println("=== TP REGULATION : BO / PID ===");   Serial.println("=== TP REGULATION : BO / PID ===");
   Serial.println("Tapez BO ou PID pour changer de mode.");   Serial.println("Tapez BO ou PID pour changer de mode.");
-  Serial.println("Tapez une consigne en tr/min (ex : 1500)");+  Serial.println("Tapez une consigne en tr/min (ex : 150)");
 } }
  
ssi_elec_regulation_asservissement.txt · Dernière modification : de mistert2