A mirror control method, wherein the method comprises: outputting a control signal configured to control a scanning mirror to perform scanning; detecting a feedback signal of the scanning mirror; determining an actual amplitude gain of the scanning mirror based on the feedback signal; determining an error of the actual amplitude gain relative to a preset amplitude gain threshold; and determining a frequency adjustment based on the error, adjusting a frequency of a signal generator based on the determined frequency adjustment to obtain an output signal, characterized in that: the step of determining an error of the actual amplitude gain relative to a preset amplitude gain threshold comprises: calculating a difference between the actual amplitude gain of the feedback signal and the amplitude gain threshold, and using the absolute value of the difference as the error; the step of determining a frequency adjustment based on the error comprises: obtaining a last error and a sign of a last frequency adjustment that are pre-stored, determining whether the determined error is greater than the last error, if the determined error is greater than the last error, taking an opposite of the sign of the last frequency adjustment to serve as a sign of the determined frequency adjustment, if the determined error is not greater than the last error, using the sign of the last frequency adjustment as the sign of the determined frequency adjustment, and storing the determined error and the sign of the determined frequency adjustment. outputting a control signal configured to control a scanning mirror to perform scanning; detecting a feedback signal of the scanning mirror; determining an actual amplitude gain of the scanning mirror based on the feedback signal; determining an error of the actual amplitude gain relative to a preset amplitude gain threshold; and determining a frequency adjustment based on the error, adjusting a frequency of a signal generator based on the determined frequency adjustment to obtain an output signal, characterized in that: the step of determining an error of the actual amplitude gain relative to a preset amplitude gain threshold comprises: calculating a difference between the actual amplitude gain of the feedback signal and the amplitude gain threshold, and using the absolute value of the difference as the error; the step of determining a frequency adjustment based on the error comprises: obtaining a last error and a sign of a last frequency adjustment that are pre-stored, determining whether the determined error is greater than the last error, if the determined error is greater than the last error, taking an opposite of the sign of the last frequency adjustment to serve as a sign of the determined frequency adjustment, if the determined error is not greater than the last error, using the sign of the last frequency adjustment as the sign of the determined frequency adjustment, and storing the determined error and the sign of the determined frequency adjustment. the step of determining an error of the actual amplitude gain relative to a preset amplitude gain threshold comprises: calculating a difference between the actual amplitude gain of the feedback signal and the amplitude gain threshold, and using the absolute value of the difference as the error; calculating a difference between the actual amplitude gain of the feedback signal and the amplitude gain threshold, and using the absolute value of the difference as the error; the step of determining a frequency adjustment based on the error comprises: obtaining a last error and a sign of a last frequency adjustment that are pre-stored, determining whether the determined error is greater than the last error, if the determined error is greater than the last error, taking an opposite of the sign of the last frequency adjustment to serve as a sign of the determined frequency adjustment, if the determined error is not greater than the last error, using the sign of the last frequency adjustment as the sign of the determined frequency adjustment, and storing the determined error and the sign of the determined frequency adjustment. obtaining a last error and a sign of a last frequency adjustment that are pre-stored, determining whether the determined error is greater than the last error, if the determined error is greater than the last error, taking an opposite of the sign of the last frequency adjustment to serve as a sign of the determined frequency adjustment, if the determined error is not greater than the last error, using the sign of the last frequency adjustment as the sign of the determined frequency adjustment, and storing the determined error and the sign of the determined frequency adjustment.