Motor Control Device
The motor control device stabilizes DC motor rotation in gaming machines by alternating torque and braking periods, addressing stick-slip issues and ensuring consistent low-speed operation.
Patent Information
- Application Number
- JP2020190939
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2020-11-17
- Publication Date
- 2024-08-14
- Estimated Expiration
- 2040-11-17
AI Technical Summary
DC motors used to drive rotating reels in gaming machines experience stick-slip phenomena at low speeds, leading to unstable rotational speeds due to alternating static and kinetic friction, which destabilizes the rotation.
A motor control device that alternates between a first period of torque generation and a second period of braking to stabilize the DC motor's rotation, using pulse width modulation to adjust duty ratios and brake timing based on rotation angle sensors.
The solution effectively stabilizes the rotational speed of DC motors at low speeds, preventing stick-slip phenomena and ensuring consistent operation of gaming machine components.
Smart Images

Figure 0007533147000005 
Figure 0007533147000006 
Figure 0007533147000009
Abstract
Description
[Technical field]
[0001] The present invention relates to a motor control device for controlling a DC motor. [Background technology]
[0002] In order to enhance the interest of players, gaming machines such as slot machines and pinball machines are designed to perform effects that appeal to the player's vision, hearing, or senses. In particular, in order to perform effects that appeal to the player's vision, gaming machines may be provided with movable bodies, such as movable accessories or spinning reels. The range and speed of movement of such movable bodies are set in advance according to the effects. For this reason, the amount of rotation per step is generally determined, and the movable body is driven by a stepping motor that can control the amount of rotation in units of steps. Then, a higher-level control device (for example, a processor unit for performance (hereinafter simply referred to as a performance CPU) or a main control device) transmits a command to the control circuit of the stepping motor to rotate the stepping motor by the number of steps corresponding to the amount of movement by which the movable body moves to a specified position according to the state of the game, and the stepping motor rotates by the number of steps, and as a result, the movable body moves to the specified position. In particular, a stepping motor is used to drive the spinning reels (also called drums) of slot machines, which require strict control of rotation and stopping.
[0003] Furthermore, in order to increase the interest of players, it is also being considered to increase the rotation speed of the reel. In order to increase the rotation speed of the reel, a technology has been disclosed in which a DC motor, which can obtain a higher torque than a stepping motor and can easily rotate at a higher speed, is used to drive the reel (for example, see Patent Document 1). [Prior art documents] [Patent documents]
[0004] [Patent Document 1] JP 2018-157631 A Summary of the Invention [Problem to be solved by the invention]
[0005] Conversely, as one of the effects to enhance the interest of players, the reels are sometimes rotated at a low speed of about 10 to 20 rpm. If a DC motor is driven to exert a constant torque to realize such a low-speed rotation, a self-excited vibration occurs due to the alternating occurrence of a state in which a static frictional force acts and a state in which a dynamic frictional force acts, which is called a stick-slip phenomenon, and the rotational speed of the DC motor and the reels driven by the DC motor may become unstable.
[0006] SUMMARY OF THE PRESENT DISCLOSURE An object of the present invention is to provide a motor control device that can stabilize the rotation speed of a DC motor that drives a movable body even when the DC motor is rotated at a low speed. [Means for solving the problem]
[0007] As one aspect of the present invention, there is provided a motor control device for controlling a DC motor, which has a motor control unit that controls the rotation of the DC motor so that, when a target rotation speed of the DC motor is a predetermined speed at which stick-slip may occur, a first period during which a first drive signal that causes the DC motor to generate a torque that does not cause stick-slip is output to a drive circuit that drives the DC motor, and a second period during which a second drive signal that applies a brake to the DC motor is output to the drive circuit are alternately repeated. With this configuration, the motor control device has the advantage of being able to stabilize the rotation speed of the DC motor, even when the DC motor that drives the movable body is rotated at a low speed.
[0008] It is preferable that the motor control device further includes a communication unit that receives a speed setting signal that sets a target rotation speed from a higher-level control circuit, and a judgment unit that judges whether the target rotation speed set by the speed setting signal is the above-mentioned predetermined speed, and if the target rotation speed set by the speed setting signal is not the predetermined speed, instructs the motor control unit to rotate the DC motor at a constant speed, and on the other hand, if the target rotation speed set by the speed setting signal is the predetermined speed, instructs the motor control unit to control the DC motor so that the first period and the second period are alternately repeated. This allows the motor control device to appropriately switch control of the DC motor depending on whether the target rotation speed of the DC motor is a speed at which the stick-slip phenomenon may occur.
[0009] Furthermore, in this motor control device, when the target rotation speed is the above-mentioned specified speed, it is preferable that the motor control unit sets as the target position a position rotated a first angle from the rotation position when the last detection signal was received from the rotation angle sensor, which outputs a detection signal each time the DC motor rotates by a specified sampling angle, and defines the period from when the target position is set to when the rotation angle of the DC motor reaches the target position as a first period, and defines the period from when the target position is set to when the rotation angle of the DC motor reaches the target position to when the time elapsed from when the target position was set reaches the time required for the DC motor to reach the target position when rotating at the target rotation speed as a second period. As a result, this motor control device can bring the rotation speed of the DC motor closer to the target rotation speed even if the target rotation speed is a speed at which the stick-slip phenomenon may occur. [Brief description of the drawings]
[0010] [Figure 1] 1 is a schematic configuration diagram of a motor control device according to an embodiment of the present invention; [Diagram 2] FIG. 2 is a circuit diagram of a motor drive circuit. [Diagram 3]4 is a diagram showing an example of a table showing the relationship between the drive signals applied to each switch of the motor drive circuit and the rotation direction of the DC motor. FIG. [Figure 4] 11 is a diagram showing an example of the relationship between the value of an up / down counter over time and the timing of setting a designated speed. FIG. [Diagram 5] 1A is a diagram showing an example of the change over time in the rotation speed of a motor and the duty ratio of a pulse output to a motor drive circuit when the target rotation speed of the motor is a speed at which stick-slip can occur according to a comparative example, and FIG. 1B is a diagram showing an example of the change over time in the rotation speed of a motor and the duty ratio of a pulse output to a motor drive circuit when the target rotation speed of the motor is a speed at which stick-slip can occur according to the present embodiment. [Figure 6] 4 is an operation flowchart of a motor control process according to the present embodiment. [Figure 7] 1 is a schematic perspective view of a reel game machine equipped with a motor control device according to an embodiment or a modified example of the present invention. [Figure 8] 1 is a schematic internal configuration diagram of a reel game machine equipped with a motor control device according to an embodiment or a modified example of the present invention. [Figure 9] 2 is a schematic perspective view of one rotating reel of the reel unit. FIG. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0011] A motor control device according to an embodiment of the present invention will be described below with reference to the drawings. The motor control device is mounted on a slot machine, for example, and controls a DC motor that drives a reel, which is an example of a movable body of the slot machine. The motor control device rotates the DC motor at a target rotation speed (hereinafter, simply referred to as a target rotation speed) set by a speed setting signal received from a higher-level control device. In particular, when the set target rotation speed is a low speed at which the stick-slip phenomenon occurs, the motor control device controls the rotation of the DC motor so that a first period (hereinafter, for convenience of explanation, may be referred to as an on-period) in which a torque that does not cause the stick-slip phenomenon is generated in the DC motor to rotate the reel, and a second period (hereinafter, for convenience of explanation, may be referred to as an off-period) in which the brake is applied to the DC motor are alternately repeated. Through such control, the motor control device aims to stabilize the rotation speed of the DC motor even when the DC motor is rotated at a low speed.
[0012] In the following embodiment, the speed setting signal sets the target rotation speed of the reel driven by the motor. Therefore, when the reel is directly attached to the motor shaft, the target rotation speed of the motor is the target rotation speed set by the speed setting signal. On the other hand, when the reel is attached to the motor shaft via a gear, the target rotation speed of the motor is the target rotation speed set by the speed setting signal corrected by the gear ratio of the gear. In the following description, the target rotation speed of the motor corresponding to the target rotation speed of the reel set by the speed setting signal may be simply referred to as the target rotation speed of the motor.
[0013] Fig. 1 is a schematic diagram of a motor control device according to one embodiment of the present invention. As shown in Fig. 1, the motor control device 1 has a communication interface circuit 10, a memory 11, a determination circuit 12, a drive control circuit 13, a drive signal generation circuit 14, a brake timing determination circuit 15, and a speed setting circuit 16. Each of these units of the motor control device 1 may be mounted on a circuit board (not shown) as a separate circuit, or may be mounted on the circuit board as an integrated circuit in which these units are integrated. The drive control circuit 13 and the drive signal generating circuit 14 are an example of a motor control unit.
[0014] The motor control device 1 controls the rotation of the motor 2, which is a direct current motor, by controlling the motor drive circuit 3 that drives the motor 2, according to a speed setting signal and a drive signal received from a higher-level control device. In this embodiment, the motor control device 1 generates a drive signal that switches on / off the supply of current to the motor 2 using a pulse width modulation (PWM) method. The motor control device 1 controls the rotation of the motor 2 by outputting the generated drive signal to the motor drive circuit 3. At this time, the motor control device 1 sets the duty ratio of the drive signal to a duty ratio corresponding to the target rotation speed set by the speed setting signal, thereby rotating the motor 2 at the set target rotation speed. When the motor 2 rotates, the rotating reel 5, which is attached directly or via a gear to the rotating shaft (not shown) of the motor 2, also rotates. Note that the rotating reel 5 is an example of a movable body. The motor control device 1 receives a detection signal indicating that the rotating shaft of the motor 2 has rotated by a predetermined sampling angle from a rotation angle sensor 4 for checking the amount of rotation of the motor 2, and controls the timing to start braking the motor 2 according to the number of times the detection signal is received.
[0015] Furthermore, based on the target rotation speed set by the speed setting signal, the motor control device 1 determines whether to apply a normal mode in which the rotation of the motor 2 is controlled to rotate at a constant speed, or a low-speed mode in which the rotation of the motor 2 is controlled so that on periods and off periods are alternately repeated for the motor 2. The motor control device 1 then controls the rotation of the motor 2 according to the applied mode, either the normal mode or the low-speed mode.
[0016] FIG. 2 is a circuit diagram of the motor drive circuit 3. The motor drive circuit 3 has four switches TR1 to TR4. Each switch can be, for example, a transistor or a field effect transistor. Two of the switches, TR1 and TR3, are connected in series between the power supply and the ground. Similarly, two switches, TR2 and TR4, are connected in series between the power supply and the ground. The positive terminal of the motor 2 is connected between the switches TR1 and TR3, while the negative terminal of the motor 2 is connected between the switches TR2 and TR4. The switch terminals of the switches TR1 to TR4 (for example, if the switches TR1 to TR4 are transistors, they correspond to base terminals, and if the switches TR1 to TR4 are field effect transistors, they correspond to gate terminals) are connected to the drive signal generation circuit 14. The drive signals from the drive signal generation circuit 14 are input to the switch terminals of the switches TR1 to TR4.
[0017] FIG. 3 is a diagram showing an example of a table showing the relationship between the drive signals applied to the switches and the rotation direction of the motor 2. As shown in FIG. As shown in table 300, when the motor 2 is rotated in the forward direction, a drive signal including periodic pulses having a pulse width set according to the PWM method and corresponding to the rotation speed of the motor 2 is applied to the switch terminal of the switch TR1 and the switch terminal of the switch TR4. On the other hand, no drive signal is applied to the switch terminal of the switch TR2 and the switch terminal of the switch TR3. As a result, the power supply voltage is applied to the positive terminal of the motor 2 only while the pulses are applied to the switches TR1 and TR4, so that the motor 2 rotates in the forward direction at a speed corresponding to the pulse width. When rotating the motor 2 in the forward direction, a drive signal may be applied to either one of the switches TR1 and TR4, and the other may be kept on at all times.
[0018] On the other hand, when the motor 2 is rotated in the reverse direction, a drive signal having periodic pulses set according to the PWM method and corresponding to the rotation speed of the motor 2 is applied to the switch terminals of switches TR2 and TR3. On the other hand, no drive signal is applied to the switch terminals of switches TR1 and TR4. As a result, the power supply voltage is applied to the negative terminal of the motor 2 only while pulses are being applied to switches TR2 and TR3, so that the motor 2 rotates in the reverse direction at a speed corresponding to the pulse width. When the motor 2 is rotated in the reverse direction, a drive signal may be applied to either one of the switches TR2 and TR3, and the other may be kept on at all times.
[0019] In this embodiment, when the motor 2 is rotating in the forward direction and the motor 2 is to be braked, the drive signal generation circuit 14 outputs a drive signal for rotating the DC motor 2 in the reverse direction to the motor drive circuit 3. Conversely, when the motor 2 is rotating in the reverse direction and the motor 2 is to be braked, the drive signal generation circuit 14 outputs a drive signal for rotating the motor 2 in the forward direction to the motor drive circuit 3. Alternatively, the drive signal generation circuit 14 may output a drive signal having a pulse width of zero to the motor drive circuit 3.
[0020] Moreover, when the motor 2 is to be kept stationary, the switch terminal of the switch TR3 and the switch terminal of the switch TR4 are turned on, and the switch terminal of the switch TR1 and the switch terminal of the switch TR2 are turned off.
[0021] Furthermore, when the motor 2 is not driven, the switch terminals of the switches are turned off.
[0022] The rotation angle sensor 4 may be, for example, an optical rotary encoder. The rotation angle sensor 4 has, for example, a disk on which a set of slits including a plurality of slits is formed along a circumferential direction centered on the rotation shaft of the motor 2, which is attached to the rotation shaft of the motor 2, and a light source and a light receiving element arranged to face each other across the disk. Whenever any of the slits is located between the light source and the light receiving element, the light from the light source reaches the light receiving element, and the rotation angle sensor 4 outputs a pulsed detection signal. As a result, the rotation angle sensor 4 outputs a detection signal every time the motor 2 rotates a predetermined sampling angle. For example, 50 slits are provided on the disk along a circumferential direction centered on the rotation shaft of the motor 2, and the rotation angle sensor 4 outputs 50 detection signals during one rotation of the rotation shaft of the DC motor 2. Furthermore, the disk may have two sets of the above-mentioned slits at positions different from each other in distance from the rotation shaft of the motor 2. In this case, the slits are formed such that the circumferential position of each slit in one set of slits is shifted by a predetermined offset amount with respect to the circumferential position of each slit in the other set of slits. As a result, the difference between the timing at which a detection signal for one set of slits is output and the timing at which a detection signal for the other set of slits is output varies depending on the rotation direction of motor 2, and the rotation direction of motor 2 can also be detected from the difference in timing.
[0023] The rotation angle sensor 4 is not limited to an optical rotary encoder, and may be another type of rotation angle sensor. For example, the rotation angle sensor 4 may be composed of a plurality of Hall ICs arranged in a circumferential direction centered on the rotation shaft of the motor 2. In this case, the rotation angle sensor 4 detects magnetic field fluctuations caused by the rotation of the motor 2, and outputs a detection signal every time the motor 2 rotates a predetermined angle.
[0024] Each component of the motor control device 1 will now be described.
[0025] The communication interface circuit 10 is an example of a communication unit. The communication interface circuit 10 connects the motor control device 1 to a higher-level control device, for example. The higher-level control device is, for example, a control unit of a reel game machine body in which the motor control device 1 is implemented. The communication interface circuit 10 receives a speed setting signal having multiple bits serially transmitted from the higher-level control device every time the target rotation speed of the rotating reel 5 driven by the motor 2 is changed. For example, assume that the speed setting signal has two bits. In this case, the bit value '00' of the speed setting signal indicates that the low-speed mode is applied, and 10 [rpm] is set as the target rotation speed. Similarly, the bit values '01', '10', and '11' of the speed setting value indicate that the normal mode is applied, and 80 [rpm], 240 [rpm], and 333 [rpm] are set as the target rotation speed, respectively. Additionally, the communication interface circuit 10 may receive a rotation direction setting signal that specifies the rotation direction of the reel 5 from a higher-level control device, together with the speed setting signal or separately from the speed setting signal.
[0026] Furthermore, while the reel 5 is being rotated, the communication interface circuit 10 receives from the host control device a drive control signal, which indicates that the reel 5 should continue to rotate, each time the reel 5 is rotated by an amount corresponding to one symbol. The drive control signal may be, for example, a rectangular single pulse signal.
[0027] The communication interface circuit 10 passes the received speed setting signal to the determination circuit 12 and the drive control circuit 13 every time it receives a speed setting signal. Similarly, the communication interface circuit 10 passes the received speed setting signal to the drive control circuit 13 every time it receives a rotation direction setting signal. Furthermore, the communication interface circuit 10 notifies the drive control circuit 13 that it has received a drive control signal every time it receives a drive control signal. When the rotation of the reel 5 is stopped, the upper control device does not transmit a drive control signal to the motor control device 1, so that the communication interface circuit 10 does not notify the drive control circuit 13 of the reception of the drive control signal. In the following, the stopping of the rotation of the motor 2 may be simply referred to as the motor 2 being stopped. Similarly, the stopping of the rotation of the reel 5 may be simply referred to as the reel 5 being stopped.
[0028] The memory 11 has, for example, a non-volatile semiconductor memory circuit. The memory 11 stores information necessary for controlling the rotation of the reel 5. In this embodiment, the memory 11 stores a speed table showing the relationship between the speed setting signal and the rotation speed of the reel 5, and the number of detection signals (hereinafter referred to as the number of required stops) until the reel 5 stops during rotation, that is, until the motor 2 stops during rotation, so that any symbol stops at a predetermined stop position, for each rotation speed. The number of required stops is an example of a stop threshold. Furthermore, the memory 11 stores a duty ratio table showing the duty ratio for each rotation speed, and a speed brake value table showing the relationship between the rotation speed and the duty ratio according to the braking force. Furthermore, the memory 11 stores the number of signals received during one rotation of the reel 5 driven by the motor 2 in an ideal case where the rotation of the motor 2 and the rotation of the reel 5 are completely synchronized (hereinafter referred to as the number of required rotations). Furthermore, the memory 11 stores the value of the speed setting signal and a low target speed which is a target value of the rotation speed of the motor 2 during the ON period when the low speed mode is applied.
[0029] The determination circuit 12 is an example of a determination unit, and determines whether or not the target rotation speed of the motor 2, which is set by a speed setting signal received from a higher-level control device, is a speed at which the stick-slip phenomenon may occur. In this embodiment, when the value set by the speed setting signal is a value indicating that the low-speed mode is applied, the determination circuit 12 determines that the target rotation speed of the motor 2 is a speed at which the stick-slip phenomenon may occur. That is, the determination circuit 12 determines that the speed setting signal is a low-speed command. On the other hand, when the value set by the speed setting signal is a value indicating that the normal mode is applied, the determination circuit 12 determines that the target rotation speed of the motor 2 is not a speed at which the stick-slip phenomenon may occur. That is, the determination circuit 12 determines that the speed setting signal is not a low-speed command.
[0030] If the speed setting signal is not a low speed command, the decision circuit 12 instructs the drive control circuit 13 to control the motor 2 in the normal mode.
[0031] On the other hand, if the speed setting signal is a low-speed command, the determination circuit 12 instructs the drive control circuit 13 to control the motor 2 in the low-speed mode. Furthermore, the determination circuit 12 refers to the memory 11 to determine whether or not a low-speed target speed has been set that can cause the motor 2 to generate a torque that does not cause the stick-slip phenomenon, and if a low-speed target speed has not been set, the determination circuit 12 instructs the speed setting circuit 16 to set a low-speed target speed.
[0032] The drive control circuit 13 controls the rotation of the motor 2 according to the applied mode out of the normal mode and the low-speed mode.
[0033] When the drive control circuit 13 is notified by the determination circuit 12 that the motor 2 is to be controlled in the normal mode, the drive control circuit 13 reads the speed table from the memory 11 and determines the target rotation speed corresponding to the value set by the speed setting signal by referring to the speed table. Furthermore, the drive control circuit 13 sets the duty ratio of the pulse of the drive signal according to the target rotation speed. The drive control circuit 13 may refer to the duty ratio table to determine the duty ratio corresponding to the target rotation speed. The drive control circuit 13 then outputs the duty ratio to the drive signal generation circuit 14. This allows the drive control circuit 13 to rotate the motor 2 at a constant speed.
[0034] Every time the target rotation speed set by the speed setting signal is changed, the drive control circuit 13 outputs a duty ratio corresponding to the target rotation speed set by the speed setting signal to the drive signal generation circuit 14. In addition, the drive control circuit 13 outputs information indicating the rotation direction specified by the rotation direction setting signal to the drive signal generation circuit 14.
[0035] Furthermore, the drive control circuit 13 outputs the number of detection signals from the rotation angle sensor 4 (hereinafter, referred to as the number of symbol-unit detection signals) corresponding to the amount of rotation per symbol to the brake timing determination circuit 15 every time the drive control signal is received. For example, if the gear ratio between the motor 2 and the rotating reel 5 is 1:10 and the rotation angle sensor 4 outputs 50 detection signals while the motor 2 rotates once, 500 detection signals are output while the rotating reel 5 rotates once. Therefore, when 20 symbols are provided on the rotating reel 5, 25 detection signals are output per symbol. Therefore, in this example, the drive control circuit 13 outputs '25' to the brake timing determination circuit 15 as the number of symbol-unit detection signals every time the drive control signal is received. Note that when the rotating reel 5 is stopped, the drive control circuit 13 does not output the number of symbol-unit detection signals because it is not notified that the drive control signal is received.
[0036] Furthermore, the drive control circuit 13 notifies the brake timing determination circuit 15 of the target rotation speed every time the target rotation speed set by the speed setting signal is changed.
[0037] Furthermore, when the drive control circuit 13 is notified by the determination circuit 12 that the motor 2 is to be controlled in the low-speed mode, the drive control circuit 13 controls the rotation of the motor 2 so that ON periods and OFF periods are alternately repeated for the motor 2.
[0038] Specifically, the drive control circuit 13 sets as the low speed target position a position rotated by a first angle from the rotational position of the motor 2 when the last detection signal was received from the rotational angle sensor 4. The first angle is set, for example, to be equal to the sampling angle by the rotational angle sensor 4 (i.e., the resolution of the rotational angle of the motor 2 that can be detected by the rotational angle sensor 4) or to about several times the sampling angle.
[0039] Furthermore, the drive control circuit 13 calculates the time interval (hereinafter, for convenience of explanation, referred to as the reference detection interval) at which a detection signal is received from the rotation angle sensor 4 when the motor 2 rotates at the target rotation speed set by the speed setting signal. In this embodiment, assuming that the gear ratio between the motor 2 and the rotating reel 5 is 1:10, the reference detection interval is calculated according to the following formula. Standard detection interval [ms] = 6000 / (target rotation speed [rpm] of reel 5 set by the speed setting signal * number of detection signals per rotation of motor 2)
[0040] The drive control circuit 13 has an up-down counter to control the rotation speed of the motor 2, and resets the value of the up-down counter to zero when control in the low-speed mode is started. The drive control circuit 13 also adds 1 to the up-down counter every time a reference detection interval elapses. Furthermore, the drive control circuit 13 subtracts 1 from the up-down counter every time a detection signal is received from the rotation angle sensor 4. Therefore, if the motor 2 rotates at its target rotation speed, the period in which 1 is added to the up-down counter as the reference detection interval elapses and the period in which 1 is subtracted from the up-down counter as the detection signal is received coincide with each other, so the value of the up-down counter falls within the range of ±1. On the other hand, if the actual rotation speed of the motor 2 is slower than the target rotation speed, the period in which 1 is added to the up-down counter as the reference detection interval elapses is shorter than the period in which 1 is subtracted from the up-down counter as the detection signal is received, so the value of the up-down counter becomes positive and its absolute value gradually increases. Conversely, if the actual rotation speed of motor 2 is faster than the target rotation speed, the period in which 1 is added to the up / down counter due to the passage of the reference detection interval will be longer than the period in which 1 is subtracted from the up / down counter due to the reception of a detection signal, so the value of the up / down counter will be negative and its absolute value will gradually increase.
[0041] The drive control circuit 13 controls the rotation speed of the motor 2 by feedback control during the period until the rotation angle of the motor 2 reaches the low-speed target position, i.e., during the on-period. To this end, the drive control circuit 13 has a clock and uses the clock to measure the elapsed time since the low-speed target position was set. Then, the drive control circuit 13 sets a designated speed, which is a rotation speed designated to the motor 2, based on the value of the up-down counter and the low-speed target speed every time the elapsed time becomes an integer multiple of the reference detection interval. As described above, if the value of the up-down counter is positive, the actual rotation speed of the motor 2 is slower than the target rotation speed. Therefore, the drive control circuit 13 calculates the designated speed by adding a correction speed amount to the low-speed target speed, which becomes larger as the value of the up-down counter is positive and the absolute value of the correction speed becomes larger.
[0042] Conversely, if the value of the up-down counter is negative, the actual rotation speed of the motor 2 is faster than the target rotation speed. Therefore, the drive control circuit 13 calculates the designated speed by subtracting a correction speed amount, which becomes larger as the value of the up-down counter is negative and the absolute value of the counter is larger, from the low-speed target speed. The correction speed amount increases by 5 [rpm] every time the absolute value of the up-down counter increases by 1. In this way, the designated speed is set based on the low-speed target speed, so that the motor 2 can generate a torque that does not cause the stick-slip phenomenon.
[0043] Furthermore, the drive control circuit 13 counts the number of detection signals received after the low speed target position is set, and compares the count value with a value corresponding to the first angle. When the count value reaches a value corresponding to the first angle, the drive control circuit 13 determines that the rotational position of the motor 2 has reached the low speed target position, and switches from the on period to the off period. Then, the drive control circuit 13 sets the designated speed to a value representing that the motor 2 is braked. After that, the drive control circuit 13 determines that the off period is the period until the elapsed time from the setting of the low speed target position reaches the target required time required for the motor 2 to reach the low speed target position when it rotates at the target rotation speed. When the elapsed time reaches the target required time, the drive control circuit 13 switches from the off period to the on period, and as described above, sets the next low speed target position, and repeats the above process.
[0044] The drive control circuit 13 may refer to the duty ratio table to determine a duty ratio corresponding to the set designated speed. The drive control circuit 13 then outputs the duty ratio to the drive signal generation circuit 14. Note that, when the designated speed is set based on the low target speed, the drive signal from the drive signal generation circuit 14 corresponds to a first drive signal that causes the motor 2 to generate a torque that does not cause the stick-slip phenomenon. On the other hand, when the designated speed indicates that the motor 2 is to be braked, the drive signal from the drive signal generation circuit 14 corresponds to a second drive signal that applies the brake to the motor 2.
[0045] Fig. 4 is a diagram showing an example of the relationship between the time course of the up / down counter value and the timing of setting the designated speed. In Fig. 4, the horizontal axis represents the time course, and the vertical axis represents the up / down counter value. Furthermore, a waveform 400 represents the up / down counter value at each time.
[0046] As shown in waveform 400, the value of the up-down counter is incremented by 1 each time the reference detection interval P elapses. Also, the value of the up-down counter is decremented by 1 each time a detection signal is received. Then, as described above, if the value of the up-down counter is positive, the designated speed is corrected so as to be faster than the low-speed target speed. Conversely, if the value of the up-down counter is negative, the designated speed is corrected so as to be slower than the low-speed target speed. Then, when the rotation angle of motor 2 reaches the low-speed target position, the on period is switched to the off period, and the designated speed is set to a value corresponding to braking.
[0047] FIG. 5(a) is a diagram showing an example of the time change of the rotation speed of the motor 2 and the duty ratio of the pulse output to the motor drive circuit 3 in a comparative example in which the target rotation speed of the motor 2 is a speed at which the stick-slip phenomenon may occur. In this comparative example, the rotation speed of the motor 2 is controlled to approach the target rotation speed by feedback control. On the other hand, FIG. 5(b) is a diagram showing an example of the time change of the rotation speed of the motor 2 and the duty ratio of the pulse output to the motor drive circuit 3 in a case in which the target rotation speed of the motor 2 is a speed at which the stick-slip phenomenon may occur in this embodiment. In FIGS. 5(a) and 5(b), the horizontal axis represents time. The vertical axis on the left represents the rotation speed, and the vertical axis on the right represents the duty ratio. In FIG. 5(a), a waveform 501 represents the time change of the rotation speed of the motor 2, and a waveform 502 represents the time change of the duty ratio. Similarly, in FIG. 5(b), a waveform 511 represents the change over time in the rotation speed of the motor 2, and a waveform 512 represents the change over time in the duty ratio.
[0048] As shown by waveforms 501 and 502 in FIG. 5(a), in the comparative example, the rotation speed of the motor 2 does not converge to the target rotation speed St and becomes unstable, and in some cases the motor 2 may stop.
[0049] In contrast, as shown by waveforms 511 and 512 in FIG. 5(b), according to this embodiment, the on-periods and off-periods in which motor 2 generates torque that does not cause the stick-slip phenomenon are repeated in a very short cycle, so that the rotational speed of motor 2 converges to a speed close to the target rotational speed St, and the rotational speed is stable.
[0050] When the low-speed mode is applied, the drive control circuit 13 outputs the number of symbol unit detection signals to the brake timing determination circuit 15 every time it is notified that it has received a drive control signal, just as when the normal mode is applied. Furthermore, the drive control circuit 13 notifies the brake timing determination circuit 15 of the target rotation speed set by the speed setting signal. This makes it possible to stop the rotating reel 5 at the target position, just as when the normal mode is applied, even when the low-speed mode is applied.
[0051] The drive signal generating circuit 14 has, for example, a variable pulse generating circuit capable of changing the width (i.e., duty ratio) of the pulse to be output, and a switch circuit for switching to which switch of the motor driving circuit 3 a periodic pulse signal, which is a driving signal generated by the variable pulse generating circuit, is to be output. The drive signal generating circuit 14 generates a pulse signal, which is a driving signal for driving the motor 2, according to the PWM method every time the drive control circuit 13 notifies the drive control circuit 13 of the duty ratio, and controls the rotation of the motor 2 by outputting the pulse signal to the motor driving circuit 3 at each predetermined output period. At that time, the drive signal generating circuit 14 sets the pulse width of the pulse signal according to the notified duty ratio. On the other hand, when the drive signal generating circuit 14 is notified by the brake timing determination circuit 15 that the brake start timing has arrived, it outputs a drive signal for braking the motor 2 to the motor driving circuit 3.
[0052] When applying the brakes to the motor 2, the drive signal generating circuit 14 refers to the brake value table read from the memory 11 and sets the braking force to be applied to the motor 2.
[0053] In this embodiment, the drive signal generating circuit 14 controls the braking force so that the motor 2 stops when the motor 2 has rotated the required number of times from the braking start timing. Therefore, the duty ratio of the drive signal corresponding to the braking force is set according to the rotation speed of the motor 2. That is, the drive signal generating circuit 14 can specify the duty ratio corresponding to the rotation speed of the motor 2 by referring to the speed brake value table stored in the memory 11. Note that in the speed brake value table, for example, the higher the rotation speed of the motor 2, the higher the duty ratio, i.e., the higher the braking force, is set.
[0054] In order to determine the braking force, the drive signal generating circuit 14 may calculate the current rotation speed of the motor 2 based on the detection signal received from the rotation angle sensor 4. For this purpose, the drive signal generating circuit 14 may further include, for example, a timer and a counter. The drive signal generating circuit 14 then counts the number of detection signals received during a certain period timed by the timer using the counter, and calculates the rotation speed by multiplying the number of detection signals by the sampling angle of the rotation angle sensor 4 and dividing the obtained amount of rotation by the certain period. Note that the drive signal generating circuit 14 may set the rotation speed of the motor 2 to 0 when the number of detection signals received within the certain period is one or less.
[0055] The drive signal generating circuit 14 outputs a drive signal having the specified duty ratio to the motor drive circuit 3 until the motor 2 stops.
[0056] In addition, when the rotation amount of motor 2 becomes the target rotation amount and the rotation speed of motor 2 becomes 0, the drive signal generating circuit 14 may output a drive signal to the motor drive circuit 3 to stop braking the motor 2 and maintain the motor 2 in a stationary state.
[0057] The brake timing determination circuit 15 is an example of a brake timing determination section, and determines the timing to start applying the brake to the motor 2 (that is, the brake start timing) according to the stop setting value.
[0058] The brake timing determination circuit 15 determines that the brake start timing has arrived when the difference between a predetermined target rotation amount corresponding to the target stop position of the reel 5 and the rotation amount of the motor 2 corresponding to the current rotation position of the reel 5 (i.e., the remaining rotation amount) becomes equal to or less than the required number of rotations to stop. In this embodiment, the brake timing determination circuit 15 determines the brake start timing based on the cumulative value (hereinafter simply referred to as the cumulative value) of the number of symbol-unit detection signals received from the drive control circuit 13 and the number of detection signals received. Note that when the motor 2 has rotated one symbol of the reel 5 but has not received a drive control signal from the upper control device, that is, when an instruction to stop the rotation of the motor 2 is given, the cumulative value corresponds to the target rotation amount of the motor 2 up to the target stop position where the motor 2 is stopped, and the number of detection signals received thereafter corresponds to the rotation amount of the motor 2. Therefore, the cumulative value updated each time a detection signal is received from the rotation angle sensor 4 corresponds to the remaining rotation amount up to the target rotation amount.
[0059] For example, the brake timing determination circuit 15 sets the cumulative value to 0 before the reel 5 starts to rotate. Then, when the brake timing determination circuit 15 is notified of the rotation speed of the reel 5 from the drive control circuit 13, it reads the number of stops required corresponding to that rotation speed from the memory 11. Also, every time the brake timing determination circuit 15 receives the number of symbol unit detection signals from the drive control circuit 13, it adds the received number of symbol unit detection signals to the cumulative value.
[0060] On the other hand, the brake timing determination circuit 15 subtracts 1 from the accumulated value every time it receives a detection signal from the rotation angle sensor 4. Then, the brake timing determination circuit 15 determines that the brake start timing is when the accumulated value becomes equal to or less than the required stop number read from the memory 11.
[0061] The speed setting circuit 16 is an example of a speed setting section, and when instructed by the determination circuit 12 to set a low target speed, sets the low target speed.
[0062] For example, the speed setting circuit 16 sets a candidate speed for the motor 2. The candidate speed that is initially set can be, for example, the minimum speed that can be set for the motor 2 and is not 0. The speed setting circuit 16 determines a duty ratio corresponding to the candidate speed by referring to a duty ratio table stored in the memory 11, similar to the drive control circuit 13. The speed setting circuit 16 then outputs the determined duty ratio to the drive signal generation circuit 14 together with information indicating the rotation direction specified by a rotation direction setting signal received from a higher-level control device, thereby supplying power to the motor 2 for rotating the motor 2 at the candidate speed in the specified rotation direction.
[0063] Thereafter, when the speed setting circuit 16 receives a detection signal from the rotation angle sensor 4 within a predetermined time after outputting a duty ratio corresponding to the set candidate speed to the drive signal generating circuit 14, the speed setting circuit 16 sets the candidate speed as the low target speed. On the other hand, when the speed setting circuit 16 cannot receive a detection signal from the rotation angle sensor 4 within a predetermined time after outputting a duty ratio corresponding to the set candidate speed to the drive signal generating circuit 14, that is, when the motor 2 is not rotating, the speed setting circuit 16 increases the candidate speed by a predetermined amount and repeats the above process. Then, the speed setting circuit 16 may set the candidate speed when the speed setting circuit 16 first receives a detection signal from the rotation angle sensor 4 within a predetermined time after outputting a duty ratio corresponding to the set candidate speed to the drive signal generating circuit 14 as the low target speed. This allows the speed setting circuit 16 to set the low target speed to a rotation speed that generates a torque in the motor 2 that does not cause the stick-slip phenomenon.
[0064] When the speed setting circuit 16 sets the low target speed, it writes the set low target speed to the memory 11. Once the low target speed has been set, it is stored in the memory 11 while power is being supplied to the motor control device 1. Therefore, the low target speed needs to be set only once when the motor control device 1 first receives a low speed command.
[0065] The speed setting circuit 16 may set the low target speed for each rotation direction of the motor 2 by executing the above process for each rotation direction of the motor 2.
[0066] FIG. 6 is an operational flowchart of the motor control process according to this embodiment.
[0067] The determination circuit 12 determines whether or not the value of the speed setting signal received from the upper control device is a value for which the low-speed mode is applied (step S101). If the value of the speed setting signal is not a value for which the low-speed mode is applied (step S101-No), the determination circuit 12 notifies the drive control circuit 13 that the normal mode is applied. Then, the drive control circuit 13 controls the rotation of the motor 2 via the drive signal generation circuit 14 and the motor drive circuit 3 so that the rotating reel 5 rotates at a constant speed at the target rotation speed set by the speed setting signal (step S102).
[0068] On the other hand, if the value of the speed setting signal is a value to which the low-speed mode is applied (step S101-Yes), the determination circuit 12 notifies the drive control circuit 13 that the low-speed mode is applied. Then, the drive control circuit 13 controls the rotation of the motor 2 via the drive signal generation circuit 14 and the motor drive circuit 3 so that an on-period in which the motor 2 rotates at a specified speed and an off-period in which the motor 2 is braked are alternately repeated so that the motor 2 generates a torque that does not cause a stick-slip phenomenon and is set according to the low target speed (step S103).
[0069] In addition, the brake timing determination circuit 15 compares the remaining rotation amount of the motor 2 with the required number of rotations to stop, and when the remaining rotation amount becomes equal to or less than the required number of rotations to stop, the brake timing determination circuit 15 causes the drive signal generation circuit 14 to apply the brake to the motor 2, thereby stopping the rotating reel 5 at the target stop position (step S104). Then, the motor control device 1 ends the motor control process.
[0070] As described above, when the target rotation speed of the motor is so low that stick-slip may occur, the motor control device controls the rotation of the motor so that an ON period in which the motor generates a torque that does not cause stick-slip and an OFF period in which the motor is braked are repeated. This allows the motor control device to bring the actual rotation speed of the motor closer to the target rotation speed and stabilize the rotation speed of the motor.
[0071] The motor control device according to the above embodiment or modified example may be installed in an amusement machine such as a pinball amusement machine or a reel amusement machine.
[0072] Fig. 7 is a schematic perspective view of a slot machine 100 equipped with a motor control device according to the above embodiment or modified example. Fig. 8 is a circuit block diagram of the slot machine 100. Fig. 9 is a schematic perspective view of one rotating reel of a reel unit 120. As shown in Fig. 7, the slot machine 100 has a main body cabinet 110 which is the gaming machine main body, a reel unit 120, a start lever 130, and stop buttons 140a to 140c.
[0073] The gaming machine 100 also includes, in the main body 110, a control circuit 150 for controlling each part of the gaming machine 100, three motors 151-1 to 151-3 for driving the reels of the reel unit 120, three motor drive circuits 152-1 to 152-3 for driving the motors, and three motor control devices 153-1 to 153-3. The motor control devices 153-1 to 153-3 can be motor control devices according to the above embodiment or modified example. The motor drive circuits 152-1 to 152-3 can be motor drive circuits according to the above embodiment or modified example. The gaming machine 100 also includes a power supply circuit (not shown) for supplying power to each part of the gaming machine 100 and a medal storage and discharge mechanism (not shown) for temporarily storing medals and discharging the medals in response to a control signal from the control circuit 150.
[0074] An opening 111 is formed in the upper center of the front surface of the main body housing 110, and a part of the reel unit 120 can be seen through the opening 111. Also, a medal insertion port 113 for inserting medals is formed on the upper surface of a frame 112 below the opening 111.
[0075] The reel unit 120 has three reels 121-1 to 121-3. The reels 121-1 to 121-3 can each rotate independently around a rotation axis (not shown) that is substantially parallel and substantially horizontal to the front surface of the main body housing 110, in response to a drive control signal from the control circuit 150. Furthermore, the rotation axis of each of the reels 121-1 to 121-3 is engaged with the rotation axis of each of the motors 151-1 to 151-3 via gears (not shown). When the motors 151-1 to 151-3 rotate, the reels 121-1 to 121-3 also rotate. Furthermore, a rotation angle sensor (not shown) is attached to the rotation shaft of each of motors 151-1 to 151-3, and the rotation angle sensor outputs a detection signal to motor control devices 153-1 to 153-3 every time motors 151-1 to 151-3 rotate by a predetermined sampling angle. In addition, the surfaces of the rotating reels 121-1 to 121-3 are each divided into multiple areas of approximately the same width along the rotational direction, i.e., the circumferential direction, and various patterns are drawn on each area, and some of these areas are visible to the player through the opening 111.
[0076] The start lever 130 is provided on the left side when facing the front of the frame 112 of the main body housing 110. Stop buttons 140a to 140c are provided approximately in the center of the front of the frame 112. The stop buttons 140a to 140c correspond to the spinning reels 121-1 to 121-3, respectively.
[0077] A medal discharge port 114 for discharging medals is formed at the bottom of the front surface of main body housing 110. A medal receiving tray 115 for preventing the discharged medals from falling is attached below medal discharge port 114.
[0078] When the start lever 130 is operated after a medal is inserted into the medal insertion slot 113, a signal indicating that the start lever 130 has been operated is transmitted to the control circuit 150. Then, the control circuit 150 starts the rotation of the reels 121-1 to 121-3. That is, the control circuit 150 outputs a speed setting signal to the motor control devices 153-1 to 153-3, and outputs a drive control signal each time the reels 121-1 to 121-3 rotate by one symbol. The control circuit 150 may change the rotation speed of the reels 121-1 to 121-3 depending on the state of the game. In this case, the control circuit 150 may output a speed setting signal to the motor control devices 153-1 to 153-3 each time the control circuit 150 changes the rotation speed of the reels 121-1 to 121-3, setting the changed rotation speed as a target rotation speed. The control circuit 150 may set different spin speeds for each of the reels 121-1 to 121-3. The control circuit 150 may also change the spin speed for each of the reels 121-1 to 121-3 at different times. When the control circuit 150 rotates any of the reels 121-1 to 121-3 at a slow speed depending on the game state, the control circuit 150 outputs a speed setting signal indicating that the slow speed mode is applied to the motor control device corresponding to the reel that rotates at the slow speed among the motor control devices 153-1 to 153-3.
[0079] Thereafter, when any of the stop buttons 140a to 140c provided at approximately the center of the front surface of the frame 112 of the main body housing 110 is pressed, the control circuit 150 receives a signal from the pressed button indicating that the button was pressed, and stops the rotation of the reel corresponding to the pressed button. Alternatively, the control circuit 150 stops any of the reels 121-1 to 121-3 whose corresponding stop button has not been pressed within a predetermined period of time since the start of rotation, after the predetermined period has elapsed. When stopping the reel, the control circuit 150 only needs to stop outputting the drive control signal. When all the reels have stopped, if the same symbols are lined up in a row on all the reels, the control circuit 150 discharges a predetermined number of medals corresponding to the symbols through the medal discharge port 114.
[0080] In this way, those skilled in the art can make various modifications to the embodiments within the scope of the present invention. [Explanation of symbols]
[0081] 1 Motor control device 2 DC motor 3 Motor drive circuit 4 Rotational Angle Sensor 10. Communication Interface Circuit 11. Memory 12 Judgment circuit 13 Drive control circuit 14 Drive signal generation circuit 15 Brake timing determination circuit 16 Speed setting circuit 100 slot machines 110 Main unit housing 120 reel units 121-1~121-3 Rotating reel 130 Starting lever 140a~140c Stop button 150 Control circuit 151-1~151-3 Motor 152-1~152-3 Motor drive circuit 153-1~153-3 Motor control device
Claims
1. A motor control device for controlling a DC motor, a motor control unit that controls the DC motor so that, when a target rotation speed of the DC motor is a predetermined speed at which stick-slip may occur, a first period during which a first drive signal that causes the DC motor to generate a torque that does not cause stick-slip to be output to a drive circuit that drives the DC motor and a second period during which a second drive signal that applies a brake to the DC motor is output to the drive circuit are alternately repeated; A motor control device having the above configuration.
2. a communication unit that receives a speed setting signal for setting the target rotation speed from a host control circuit; a determination unit that determines whether the target rotation speed set by the speed setting signal is the predetermined speed or not, and instructs the motor control unit to rotate the DC motor at a constant speed when the target rotation speed set by the speed setting signal is not the predetermined speed, and on the other hand, instructs the motor control unit to control the DC motor so that the first period and the second period are alternately repeated when the target rotation speed set by the speed setting signal is the predetermined speed; The motor controller of claim 1 further comprising:
3. 3. The motor control device according to claim 1 or 2, wherein, when the target rotation speed is the predetermined speed, the motor control unit sets, as the target position, a position rotated a first angle from a rotation position at which the DC motor last received a detection signal from a rotation angle sensor that outputs a detection signal each time the DC motor rotates by a predetermined sampling angle, and defines as the first period a period from when the target position is set until the rotation angle of the DC motor reaches the target position, and defines as the second period a period from when the target position is set until the time required for the DC motor to reach the target position when rotating at the target rotation speed, after the rotation angle of the DC motor reaches the target position.
Citation Information
Patent Citations
Movable body driver-controller
JP2003047271A
Printer, method for responding to stick slip, program, and printing system
JP2007245476A
Motor controller
JP2018157631A
