ja-jp_commands:reference:ipiditermlimit
差分
このページの2つのバージョン間の差分を表示します。
| 両方とも前のリビジョン前のリビジョン | |||
| ja-jp_commands:reference:ipiditermlimit [2026/09/08 00:53] – 바깥 편집 127.0.0.1 | ja-jp_commands:reference:ipiditermlimit [2026/09/14 20:30] (現在) – 外部編集 127.0.0.1 | ||
|---|---|---|---|
| 行 14: | 行 14: | ||
| ===== 使用例 ===== | ===== 使用例 ===== | ||
| + | |||
| + | MPINO-16A8R8TのA0アナログ入力を0~1023の生値として読み、PID計算に使用します。計算結果はシリアルモニタに表示するだけで、出力端子は駆動しません。接続するセンサに合わせてA0の電圧・電流設定を確認してください。 | ||
| <code cpp> | <code cpp> | ||
| const uint8_t PID_ID = 0; | const uint8_t PID_ID = 0; | ||
| - | const float SETPOINT_C = 45.0F; | ||
| void setup() { | void setup() { | ||
| Serial.begin(115200); | Serial.begin(115200); | ||
| - | | + | IpidSet(PID_ID, |
| - | IpidItermLimit(PID_ID, | + | IpidItermLimit(PID_ID, |
| - | IpidReverse(PID_ID, | + | |
| } | } | ||
| void loop() { | void loop() { | ||
| - | const float temperature | + | const float currentValue |
| - | if (IdigitalRead(0, | + | const float result |
| - | const float demand | + | |
| - | | + | |
| - | | + | |
| - | delay(20); | + | |
| } | } | ||
| </ | </ | ||
ja-jp_commands/reference/ipiditermlimit.1788796400.txt.gz · 最終更新: by 127.0.0.1
