What should be the value of driver.voltage_limit?

Hi all,

I am using an atmega328p ic and some 3 phase motor drivers. In the simpleFOC library, I am using this code snippet -

driver.voltage_power_supply = 8.4;

// limit the maximal dc voltage the driver can set

driver.voltage_limit = 4.2;

I am using a power supply to provide 8.4 V and current is limited to 1A.
When I use driver.voltage_limit = 8V, then the voltage on my power supply drops and maximum current is pulled from it. But when I use When I use driver.voltage_limit = 6V, then everything works fine. Why is this happening?
What is the exact use of driver.voltage_limit and how to choose its value?

Hey @Akshat_Gupta,

Here is the short docs section about it:

Basically the driver.volatege_limit can go from 0 to driver.voltage_power_supply.

And the motor.voltage_limit can go from 0 to 0.5*driver.volatege_limit.

So I’m not sure why your power-supply goes to the current limitting mode, but if it is the open-loop control, lower the motor.voltage_limit to limit the current sent to the motor.

Thank you @Antun_Skuric. I tried and tested multiple configurations and using a configuration according to my project. I still cannot find the reason of voltage drop and current limiting.