My circuit:
In this project, Vref is 3.3V, motor stalling current is 0.2A, and the ADC range of the microcontroller is 2.6V.
I calculated the resistance based on this formula to be 11k. And meet the ADC range requirements through resistor voltage division.
But only when Ipropi is connected to GND or a lower resistance of 220 Ω (with a detected voltage of 0.4v), the motor can be controlled by the corresponding microcontroller.