B-G431_ESC1 based Custom board with 0.2mOhm shunt instead of 3mOhm over current.
- August 30, 2023
- 1 reply
- 2116 views
Version of MCSDK 6.1.2
Firmware,MC WB,
DETAILS
I have a B-G431-ESC1 board, and a custom board based upon that.
Although using the STM32G431CBT6 chip, the major difference is really the current shunts being 0.2 mOhm. This together with total gain of 40.8 and appropriate bias gives me ~200Amp max measurement, as compared with the ~60Amps of the original B-G431_ESC1 board. The difference being about x3.35
I have created 2 projects, one for the B-G431-ESC1 and the other for my custom board. Comparing the 2 projects file by file I see the differences are reflecting the current range change detailed above. These differences are in the PI coefficients etc
Yet testing the 2 boards with the same motor and power supply (Lab supply @ 25v current limit 5 amps) the B-G431-ESC1 after a few seconds starts at very low current around 0.5Amps and slowly accelerates to 600RPM @ 1.5Amps.
My custom board immediately kicks off with over 50% duty after only 10 or 12 PWM cycles. The result being this drops the supply within a few milliseconds (I have 6 x 2200uF Cap bank, it's probably drawing 50Amps out of these), and the low supply resets the CPU.
As can be seen from the attached pics, my PCB has quite a bit more noise and is not ideal, probably due to too long tracks leading to the drive chips. However the higher duty cycle is quite different behavior to what I see on the B-G431-ESC1 pic. (Or could the noise be causing this behavior, it seems to be more effect than cause?)
The attached .txt file is the .stwb6 project file for my custom PCB
What have I missed, where should I look?
Thanks for any assistance.
