2020-07-23 07:03 PM
Hi all,
I probably found a bug in the Control Stage - Analog Input and Protection.
Choosing a gain higher than 16 doesn't change the gain (32 and 64). The gain changes properly if a gain between 2 and 16 is selected.
Best,
Alessandro
Solved! Go to Solution.
2020-09-24 05:20 AM
Hello Alessandro,
"Since we are measuring the current on the low side of the mosfet, in reality the voltage across the shunt will only be positive."
This statement is not correct.
In FOC with three shunts topology, you will see negative current at shunt level. If you do not trust me, do not hesitate to check by yourself with a scope. ( Look carefully during open loop phase, and at high power)
Anyway, increasing the OPAMP gain without changing the polarization circuit may be dangerous for your board. I will ask for a change in the configuration tool to lock the UI. Today it is true that you can wrongly think that it is configurable.
Regards
Cedric
2020-09-14 01:43 AM
Dear alessandro239955_stm1
Do you have still this problem to solve?
Best regards
Laurent Ca...
2020-09-23 12:03 AM
This issue is indeed still happening..
2020-09-23 04:46 AM
Dear @Community member
As this post is mentioned as an eventual bug, I am coming to open an internal ticket about.
I will come back to you soo to infrome you the resuting analyse and if a fix will be integrated in next SDK version (5.4.5).
Important: I need the SDK version on which this bug has been seen (it is mandatory to open an internal ticket).
Best regards
Laurent Ca...
2020-09-23 04:48 AM
SDK version 5.4.4.
2020-09-23 09:49 AM
Hello JA.1
The ESC board is designed to be used with a gain of 16. Even if it is possible to change the gain of the OPAMP by software, it will not lead to a working configuration.
The reason behind is that for FOC control, we need to measure positive and negative current. As the ADC is able to measure voltage between 0 to 3,3 Volt, we have to polarize the amplification circuit to have roughly 1.65Volt at the output when there is no current.
Increasing the gain will increase the polarization voltage and the voltage at ADC pin will be over than 3.3V and may destroy your IC.
If you want to change the OPAMP gain anyway, you must change also the polarization circuit. Is it something you plan to do ? Soldering components on this tiny board is something I really do not recommend.
Increasing the shunt value could be a solution, but be careful the board is very small and dissipating more power in the shunt may require passive cooler.
(It requires also soldering new shunts but it is a little bit more doable)
Hope it helps
Regards
Cedric
2020-09-23 10:17 AM
Hi Cedric,
I am not too convinced about your statement.
Since we are measuring the current on the low side of the mosfet, in reality the voltage across the shunt will only be positive. I have modified the circuit so that the positive current will give me 0 to 3,3V and it works. I basically doubled the accuracy and made the sensing tuning much simpler.
The dual current direction makes sense only if the shunt resistors are placed in line with the motor phases. In that cases the polarity of the current matters and a polarized opamp is required.
Best,
Alessandro
2020-09-24 05:20 AM
Hello Alessandro,
"Since we are measuring the current on the low side of the mosfet, in reality the voltage across the shunt will only be positive."
This statement is not correct.
In FOC with three shunts topology, you will see negative current at shunt level. If you do not trust me, do not hesitate to check by yourself with a scope. ( Look carefully during open loop phase, and at high power)
Anyway, increasing the OPAMP gain without changing the polarization circuit may be dangerous for your board. I will ask for a change in the configuration tool to lock the UI. Today it is true that you can wrongly think that it is configurable.
Regards
Cedric
2023-07-10 10:41 AM
Hi @cedric H ,
I was trying to build a custom board based off of the B-G431B-ESC1 board. I have chosen components that can handle 56V (instead of the 24-28V supported by the B-G431B-ESC1 board). However, I'm not sure if I need to make any changes to the current sensing circuit. As I'm not planning to run more than 10A through it. The current capacity of the B-G431B-ESC1 is rated for 40A. So, I'm hoping the circuit used in the B-G431B-ESC1 will be sufficient for my design too. Can you please advise.
If increasing the supply voltage causes any issues on the voltage read by the ADC pins on the ST chip.