主权项 |
1. A drive control device for a direct current motor which drives a movable body provided in a game machine, the drive control device being adapted for rotating the direct current motor in one of a first rotational direction and a second rotational direction at a time, the drive control device comprising:
a storage circuit configured to store a reference rotational speed table indicating a relation between an amount of electric power per unit time which is supplied to the direct current motor and a reference value of a rotational speed of the direct current motor; a drive signal generation circuit configured to generate a drive signal in accordance with the electric power amount per unit time and output the drive signal to the direct current motor; and a control circuit configured to: calculate a first correction value that cancels a difference between a first rotational speed which is the reference value of the rotational speed of the direct current motor, and a second rotational speed which is an actual rotational speed at the time of making the drive signal generation circuit output a drive signal in accordance with a first electric power amount corresponding to the first rotational speed according to the reference rotational speed table and rotating the direct current motor in the first rotational direction, correct the reference value of the rotational speed which is stored in the reference rotational speed table based on the first correction value to create a first rotational speed table indicating a relation between an electric power amount per unit time and a rotational speed of the direct current motor concerning the first rotational direction, determine an electric power amount per unit time which corresponds to a first designated rotational speed according to the first rotational speed table upon designation to rotate the direct current motor in the first rotational direction, and notify the drive signal generation circuit of the determined electric power amount to generate a drive signal for rotating the direct current motor in the first rotational direction, wherein the control circuit is configured to: calculate a second correction value that cancels a difference between the first rotational speed and a third rotational speed which is an actual rotational speed at the time of making the drive signal generation circuit output a drive signal in accordance with the first electric power amount according to the reference rotational speed table, and rotate the direct current motor in the second rotational direction, wherein when an absolute value of a difference between the third rotational speed and the second rotational speed is equal to or larger than a predetermined threshold, the control circuit is further configured to: correct the reference value of the rotational speed which is stored in the reference rotational speed table based on the second correction value to create a second rotational speed table indicating a relation between an electric power amount per unit time and a rotational speed of the direct current motor concerning the second rotational direction, determine an electric power amount per unit time which corresponds to a second designated rotational speed according to the second rotational speed table upon designation to rotate the direct current motor in the second rotational direction, and notify the drive signal generation circuit of the determined electric power amount to generate a drive signal for rotating the direct current motor in the second rotational direction. |