Tip / 登入 to post questions, reply, level up, and achieve exciting badges. Know more

## 速度斜坡問題

Community Manager
Community Manager

1 解決方案

## Re: imc102t 速度斜坡問題

Community Manager
Community Manager

```c #define INITIAL_RAMP_RATE 15000 #define MAX_RAMP_RATE 30500 #define RAMP_RATE_INCREMENT 1000
int currentRampRate = INITIAL_RAMP_RATE;
void main() { while (1) { // 以當前斜坡率運行電機 runMotor(currentRampRate);
// 檢查電機是否正在運行而不失速if (isMotorRunning()) { // 如果斜坡速率低於最大值，則增加斜坡速率if (currentRampRate < MAX_RAMP_RATE) { currentRampRate += RAMP_RATE_INCREMENT; } } else { // Decrease ramp rate if motor stalls currentRampRate -= RAMP_RATE_INCREMENT; } } } ```

https://www.infineon.com/cms/en/product/power/motor-control-ics/imotion-integrated/imd111t-6f040/
https://www.infineon.com/cms/en/product/power/motor-control-ics/bldc-motor-control-ics/battery-suppl...
https://www.infineon.com/cms/en/product/power/motor-control-ics/brushed-dc-motor-control-ics/integra...
https://www.infineon.com/cms/en/product/power/motor-control-ics/bldc-motor-control-ics/battery-suppl...

4 回應

## Re: imc102t 速度斜坡問題

Community Manager
Community Manager

```c #define INITIAL_RAMP_RATE 15000 #define MAX_RAMP_RATE 30500 #define RAMP_RATE_INCREMENT 1000
int currentRampRate = INITIAL_RAMP_RATE;
void main() { while (1) { // 以當前斜坡率運行電機 runMotor(currentRampRate);
// 檢查電機是否正在運行而不失速if (isMotorRunning()) { // 如果斜坡速率低於最大值，則增加斜坡速率if (currentRampRate < MAX_RAMP_RATE) { currentRampRate += RAMP_RATE_INCREMENT; } } else { // Decrease ramp rate if motor stalls currentRampRate -= RAMP_RATE_INCREMENT; } } } ```

https://www.infineon.com/cms/en/product/power/motor-control-ics/imotion-integrated/imd111t-6f040/
https://www.infineon.com/cms/en/product/power/motor-control-ics/bldc-motor-control-ics/battery-suppl...
https://www.infineon.com/cms/en/product/power/motor-control-ics/brushed-dc-motor-control-ics/integra...
https://www.infineon.com/cms/en/product/power/motor-control-ics/bldc-motor-control-ics/battery-suppl...

## Re: imc102t 速度斜坡問題

Community Manager
Community Manager

## Re: imc102t 速度斜坡問題

Community Manager
Community Manager

## Re: imc102t 速度斜坡問題

Community Manager
Community Manager