Brushless motor with integrated controller

Hello All,
First of all i apologize if i am writing in the wrong section. I am trying to display the RPM of a brushess DC motor model#BLY17MDA (BLY17MDA - Brushless Motors with Integrated Speed Controllers) on LCD using Arduino Uno. I am not very familier with the programming and confused about the wiring of this motor. i attached the pins layout picture and the whole setup with the controller.
On the manual it shows that the RPM can be calculated using the following equation:
RPM=15 * PG Out (in Hz)
Honestly, i don't know how to implement this into the Arduino platform and trying to get the rpm value and direction of rotation.
Any feedback is much appreciated. Thank to all in advance.
Best Regards,

Jameel

It looks like the PG OUT pin provides a digital signal that could be read by an Arduino digital input if the PG OUT voltage was between 0 and 5V or could be converted to this range.

Probably use PulseIn() and time the length of the pulse. Unfortunately the top pulse rate is really high (60000Hz) so it's going to be tough getting accurate readings.

This controller looks kinda evil. They could have done a lot better with the interface.