I'd like to add a sensing reistor to a discrete full bridge that I use to drive a small DC motor with a PIC uC. I want the PIC to read the voltage drop on the resistor and to change the duty-cycle of the PWM signal if too much current is flowing.
I'd like to know:
1) how can I make that voltage suitable for the PIC ADC? Do I need a peak detector?
2) why could an unexpected great current flow into the motor?
3) Other aspects that I should care of?
Thanks.
I'd like to know:
1) how can I make that voltage suitable for the PIC ADC? Do I need a peak detector?
2) why could an unexpected great current flow into the motor?
3) Other aspects that I should care of?
Thanks.