Patent ID: 7974159

Claim:
A method for controlling tray ejection of a disk drive that includes a tray for carrying a disk, a detect switch, a DC motor and a firmware, wherein a voltage is applied to the DC motor to move the tray in sequence through a first position, a second position, a third position to a fourth position meanwhile the detect switch is correspondingly shifted in sequence through a first inclined position, a second inclined position, a third inclined position to a fourth inclined position, wherein a first signal is transmitted to the firmware when the detect switch is shifted to the second inclined position, and a second signal is transmitted to the firmware when the detect switch is shifted to the third inclined position, the tray ejection control method comprising the following steps: setting a first reference time and a second reference time, wherein said second reference time is greater than said first reference time; calculating a time difference between a first interval time from beginning ejection of the tray till said second signal is transmitted and a second interval time from beginning ejection of the tray till said first signal is transmitted when said second signal is transmitted; and adjusting the voltage applied to the DC motor based on said time difference between said first and second interval time.