From 161f5988c52100ff75be02bc6c3c30b4f6ff3b13 Mon Sep 17 00:00:00 2001 From: nrnrKinjo Date: Tue, 8 Apr 2025 19:25:44 +0900 Subject: [PATCH] =?UTF-8?q?=E3=83=A2=E3=83=BC=E3=82=BF=E8=B2=A0=E8=8D=B7?= =?UTF-8?q?=E3=81=8C=E9=87=8D=E3=81=84=E5=A0=B4=E5=90=88=E3=81=A7=E3=82=82?= =?UTF-8?q?=E3=82=AD=E3=83=A3=E3=83=AA=E3=83=96=E3=83=AC=E3=83=BC=E3=82=B7?= =?UTF-8?q?=E3=83=A7=E3=83=B3=E3=82=92=E5=8F=AF=E8=83=BD=E3=81=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../stm32_current_control_low_side.ino | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/hardware_specific_examples/DRV8302_driver/stm32_current_control_low_side/stm32_current_control_low_side.ino b/examples/hardware_specific_examples/DRV8302_driver/stm32_current_control_low_side/stm32_current_control_low_side.ino index 371aaecd..280242d9 100644 --- a/examples/hardware_specific_examples/DRV8302_driver/stm32_current_control_low_side/stm32_current_control_low_side.ino +++ b/examples/hardware_specific_examples/DRV8302_driver/stm32_current_control_low_side/stm32_current_control_low_side.ino @@ -120,7 +120,7 @@ void setup() { // driver config // power supply voltage [V] driver.voltage_power_supply = 24; - driver.pwm_frequency = 18000; // suggested under 18khz + driver.pwm_frequency = 36000; // suggested under 18khz driver.init(); // link the motor and the driver motor.linkDriver(&driver); @@ -128,7 +128,7 @@ void setup() { cs.linkDriver(&driver); // align voltage - motor.voltage_sensor_align = 0.5; + motor.voltage_sensor_align = 1; // control loop type and torque mode motor.torque_controller = TorqueControlType::foc_current;