摘要 |
<p>A music box includes a star wheel, a stopper, a sun wheel, a motor, a sensor, and a controller. The star wheel is configured to rotate about a first shaft. The sun wheel is fixed on a second shaft and engages the star wheel. The motor is configured to rotate the first shaft and the second shaft. The sensor is configured to detect a rotation state of the sun wheel. The controller is configured to: read a music data; control the motor to rotate at a rotational speed based on a temp; determine a start timing at which the stopper starts to release the star wheel based on a sound output timing and the rotation state; calibrate the start timing to a calibrated start timing based on a value related to the rotational speed; and control the stopper to release the star wheel at the calibrated start timing.</p> |