I am developing an application that uses position control , now I am using DRV8353RH EVM and a 48v 1000W motor with ESP32.
I am facing an issue with the closed loop system. in an open loop, it performs a bit, ok even if it is vibrating in open-loop it gives some output regarding input.
I am using
DRV8353RH EVM Driver
48v1000W Motor
Optical encoder with 600ppr
Current Sense low side
The motor vibrates a lot it’s creating more noise in open-loop as well as in closed loop
The code looks ok. Could you please elleborate a bit more or post a video because the noise itself is not really enough to determine the cause.
You can upload a video to the site directly (no need to pass through YouTube or Google photos)
Alors can you increase the current sense amplification gain?
What are the currectbs that you’re expectyto measure?
In my case with such a small shunt 0.7mOhm I usually start with the amplification gain of 80 or so. Which gives me a ±20amp range on 3.3v logic.
With the amp gain of 10 you’ll have a lot of measurement noise.
Your fault led is on because your overcurrent protection is activated I think. The motion of the motor in the video is scary
This is no at all how its supposed to sound.
You have to lower your voltage limit a lot when doing the open loop test. If your phase resistance is 0.3Ohm you can set you voltage limit to around 0.5 to 1 Volt to have the current of under 3Amps.
I= V_{limit}/R_{phase} = 1V/0.3\Omega = 3.33 {A}
co in your code make sure to add this line when in open-loop mode
motor.voltage_limit = 1; // Volts
The current sense gain will only influence the FOC_torque mode, if you are in the voltage mode or in any of the open-loop modes then the current sensing is not used and the gain will not change anything.