This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

DRV11873EVM - Calculate RPM based on Frequency Generator

Other Parts Discussed in Thread: DRV11873

Can I connect the FG open drain test point output to the Arduino Analog input pin?  I don't think I can use an DigitalInput since it only reads HIGH or LOW and I need to obtain the frequency value to calculate the RPM.

TIA!

  • Al,

    FG is open drain digital output signal from DRV11873. It is a 50% duty square wave output and its frequency represents the motor speedin electric Hz.

    Connecting it to analog input will not be useful, you will have to connect it to digital input using pull-up resistor and measure the time diffrence between two rising/falling pulses to get the frequency. Data-sheet gives the detaits and formula to calculate motor RPM from FG input.

    Best Regards

    Milan

  • Never mind.  I found out that the PulseInput API is what I was after since it'll allow me to capture timing information of these pulses.