I'm gonna be driving DC motors in the range of 24 to 100+ volts using an H bridge. Due to the potentially high voltage components, i'm isolating the drive circuit from the PIC microcontroller with optocouplers.
However, I need a way to sense the motor current. I'm thinking of putting a current sense resistor, and the traditional op amp, etc, and feeding this to a voltage to frequency converter chip. The output of the VtoF chip would then go into the optocoupler input, and out to the Capture/Compare pin on the PIC.
The above looks too tedious and has too much parts count. Is it possible to use a "current sense transformer" or even so called "hall effect sensor" from Allegro, where I would thread the motor cable through and it gives me the voltage? I would be clocking the PWM at 32 khz to 64khz.
THanks, Mike