Ocean wave power generation can provide clean energy for offshore electrical equipment. However, the random changes in waves are not conducive to capturing energy efficiently. How to improve the capture of wave power has become a problem that wave energy power generation equipment needs to address. This study uses the Hilbert-Huang Transform (HHT) to predict the frequency of random waves and controls the motor according to the predicted frequency, enabling the wave energy power generation device to resonate with the waves to obtain the maximum power.