The inline current sensing

I want to ask, in the circuit of the simplefoc 2.0 version, the current sampling circuit, the one I drew in circles, seems to be reversed. Why is this?

It’s the convenience issue :smiley:

The best would be not to invert the shunt. This way you need to invert the gain in software.

It is the choicse that I’ve made in order to easier fit the current sensing on the board and to reduce the traces from shunts to the amplifier.

I would definitely suggest you to try avoiding the inversion if possible.

Thank you for your answers and suggestions :grinning: