Abstract:Wave height measurement is an important content of ocean engineering model experiment. In order to accurately and stably measure the wave in the experimental pool in real time, a new design method of wave height measurement system is adopted. Firstly, the problem of wave height measurement is transformed into the problem of capacitance measurement by using the linear relationship between liquid level height and the capacitance of the wave height sensor. Secondly, the relationship between the capacitance of the wave height sensor and the charging and discharging time of the sensor is used to convert the capacitance measurement problem of the wave height sensor into a problem of detecting the charging and discharging time of the sensor. Then the charging and discharging time of the capacitor is converted into the count value by using analog comparator and the input capture function of the timer on the single chip microcomputer. Then the count value is sent to the upper computer through the USB interface for data processing and waveform display. The experimental results show that the adopted method is effective with the advantages of good linearity, high sensitivity and high precision.