ssi_elec_regulation_asservissement
Différences
Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentesRévision précédente | |||
| ssi_elec_regulation_asservissement [2025/12/08 08:35] – mistert2 | ssi_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(" | Serial.println(" | ||
| Serial.println(" | Serial.println(" | ||
| - | Serial.println(" | + | Serial.println(" |
| } | } | ||
ssi_elec_regulation_asservissement.txt · Dernière modification : de mistert2
