STM32G431 shunt + opamp + comparator network values
- December 29, 2021
- 5 replies
- 4238 views
I have changed the G431-ESC-1 shunt resistor to 0.001ohm, and gain network resistor values as attached pics, for 100A phase current max with 1mOhm shunt resistor after the off-set circuit, the voltage is 0.19V to comparator's + input (non-inverting) and DAC3 connected to - input (inverting), MCWorkbench generated code in .mc_parameters.c OPAMPParams with .DAC_OCP_Threshold = 3773 (which is equal to 0.189v)
Now my question is, with 3773 DAC value, I couldn't start my little motor because OVERCURRENT fault triggered, I need to increase .DAC_OCP_Threshold value to say 8000 in order my motor can start, but do the maths 8000 = 0.4v threshold which is like 400A phase current pass through 0.001ohm shunt resistor ?
Anyone has experience on gain network issues ?
Thx
Danny
