WO2022255059A1 - Motor control device for electrically assisted vehicle and electrically assisted vehicle - Google Patents

Motor control device for electrically assisted vehicle and electrically assisted vehicle Download PDF

Info

Publication number
WO2022255059A1
WO2022255059A1 PCT/JP2022/020150 JP2022020150W WO2022255059A1 WO 2022255059 A1 WO2022255059 A1 WO 2022255059A1 JP 2022020150 W JP2022020150 W JP 2022020150W WO 2022255059 A1 WO2022255059 A1 WO 2022255059A1
Authority
WO
WIPO (PCT)
Prior art keywords
motor
regeneration
speed
control unit
electrically assisted
Prior art date
Application number
PCT/JP2022/020150
Other languages
French (fr)
Japanese (ja)
Inventor
太一 ▲柳▼岡
康夫 保坂
弘和 白川
Original Assignee
太陽誘電株式会社
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 太陽誘電株式会社 filed Critical 太陽誘電株式会社
Priority to JP2023525696A priority Critical patent/JPWO2022255059A1/ja
Publication of WO2022255059A1 publication Critical patent/WO2022255059A1/en

Links

Images

Classifications

    • BPERFORMING OPERATIONS; TRANSPORTING
    • B62LAND VEHICLES FOR TRAVELLING OTHERWISE THAN ON RAILS
    • B62KCYCLES; CYCLE FRAMES; CYCLE STEERING DEVICES; RIDER-OPERATED TERMINAL CONTROLS SPECIALLY ADAPTED FOR CYCLES; CYCLE AXLE SUSPENSIONS; CYCLE SIDE-CARS, FORECARS, OR THE LIKE
    • B62K5/00Cycles with handlebars, equipped with three or more main road wheels
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B62LAND VEHICLES FOR TRAVELLING OTHERWISE THAN ON RAILS
    • B62MRIDER PROPULSION OF WHEELED VEHICLES OR SLEDGES; POWERED PROPULSION OF SLEDGES OR SINGLE-TRACK CYCLES; TRANSMISSIONS SPECIALLY ADAPTED FOR SUCH VEHICLES
    • B62M6/00Rider propulsion of wheeled vehicles with additional source of power, e.g. combustion engine or electric motor
    • B62M6/40Rider propelled cycles with auxiliary electric motor
    • B62M6/45Control or actuating devices therefor
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02TCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO TRANSPORTATION
    • Y02T10/00Road transport of goods or passengers
    • Y02T10/60Other road transportation technologies with climate change mitigation effect
    • Y02T10/72Electric energy management in electromobility

Definitions

  • the present invention relates to technology for controlling the reversing of an electrically assisted vehicle with three or more wheels.
  • Patent Literature 1 discloses a drive section that drives a motor of an electrically assisted vehicle, and a control section that controls the drive section so as to move the electrically assisted vehicle backward when reverse rotation of the crank that satisfies the first condition is detected.
  • a motor controller is disclosed having: According to this technology, it becomes possible to reverse while riding in an electrically assisted vehicle.
  • an object of the present invention is to provide a technique for suppressing an unintended reverse speed or an unintended high speed during reverse of an electrically assisted vehicle with three or more wheels.
  • a motor control device provides: (A) a motor-assisted vehicle having three or more front and rear wheels, a crank, and a motor; (B) a control unit that controls the motor to suppress the speed of the retraction when the detection unit detects the retraction.
  • a motor control device comprises: (A) a detection unit for detecting a speed at which an electrically assisted vehicle having three or more front and rear wheels and a motor moves backward; is greater than or equal to a first threshold, the controller controlling the motor to suppress the speed.
  • FIG. 1 is a diagram showing the appearance of a power-assisted bicycle according to an embodiment.
  • FIG. 2 is a diagram showing a configuration example of a motor control device.
  • FIG. 3 is a diagram for explaining reverse movement of the power-assisted bicycle assumed in the embodiment.
  • FIG. 4 is a diagram for explaining the rotation direction of the crank.
  • FIG. 5 is a functional block diagram of a control unit according to the first embodiment;
  • FIG. 6 is a diagram showing a flow representing operation contents in the first embodiment.
  • FIG. 7 is a diagram showing a flow representing operation contents in the first embodiment.
  • FIG. 8 is a diagram showing a flow representing operation contents in the first modification of the first embodiment.
  • FIG. 9 is a diagram showing a flow of operations in the second modification of the first embodiment.
  • FIG. 10 is a diagram showing a flow of operations in the second modification of the first embodiment.
  • FIG. 11 is a diagram showing a flow representing operation contents in the third modification of the first embodiment.
  • FIG. 12 is a functional block diagram of a control unit according to the second embodiment;
  • FIG. 13 is a diagram showing a flow representing operation contents in the second embodiment.
  • FIG. 14 is a diagram showing a flow representing operation contents in the second embodiment.
  • FIG. 15 is a diagram showing a flow of operations in the first modification of the second embodiment.
  • FIG. 16 is a diagram showing a flow representing operation contents in the first modification of the second embodiment.
  • FIG. 17 is a diagram showing a flow representing operation contents in the third embodiment.
  • FIG. 18 is a diagram showing a flow representing operation contents in the third embodiment.
  • Embodiments of the present invention will be described below using an example of an electrically assisted bicycle, which is an example of an electrically assisted vehicle.
  • the embodiments of the present invention are not limited to application only to electric assist bicycles, but are also applicable to motor control devices for mobile bodies (for example, handcarts, trolleys, etc.) that move according to human power. It is possible.
  • the power-assisted bicycle 1 shown in FIG. 1 has a motor control device 102, a battery pack 101, a torque sensor 103, a crank rotation sensor 104, a motor 105, an operation panel 106, and a brake sensor 107.
  • a riding detection sensor 108 for detecting whether or not a person is riding the electrically assisted bicycle 1 may be provided on the saddle or the like.
  • the battery pack 101 includes, for example, a lithium-ion secondary battery, a lithium-ion polymer secondary battery, a nickel-hydrogen storage battery, or the like, supplies power to the motor 105 via the motor control device 102, and supplies power to the motor control device 102 during regeneration. Charging is also performed by regenerative power from the motor 105 via .
  • the boarding detection sensor 108 is, for example, a sensor for detecting whether or not the driver is seated on the saddle.
  • the boarding detection sensor 108 may be installed in a place other than the saddle, in which case it may be a camera, an infrared sensor, or the like. To enable a camera or an infrared sensor to confirm a person sitting on a saddle.
  • the motor control device 102 performs calculations based on signals from the rotation sensor of the motor 105, the torque sensor 103, the crank rotation sensor 104, etc., controls the driving of the motor 105, and also controls regeneration by the motor 105.
  • the operation panel 106 accepts, for example, an instruction input regarding the presence or absence of assistance (for example, turning on and off a power switch) and an input such as a desired assist ratio in the case of assistance, from the driver. output to In some cases, the operation panel 106 also has a function of displaying data such as travel distance, travel time, calorie consumption, and regenerative power amount calculated by the motor control device 102 . Also, the operation panel 106 may have a display unit such as an LED (Light Emitting Diode). As a result, the driver is presented with, for example, the charge level of the battery pack 101, the on/off state, the mode corresponding to the desired assist ratio, and the like.
  • LED Light Emitting Diode
  • the brake sensor 107 detects the driver's braking operation and outputs a signal regarding the braking operation to the motor control device 102 .
  • the motor control device 102 has a controller 1020 and a FET (Field Effect Transistor) bridge 1030 .
  • the FET bridge 1030 includes a high-side FET (Suh) and a low-side FET (Sul) for switching the U-phase of the motor 105, and a high-side FET (Svh) and a low-side FET (Svl) for switching the V-phase of the motor 105. ), and a high-side FET (Swh) and a low-side FET (Swl) for switching the W phase of the motor 105 .
  • This FET bridge 1030 constitutes a part of a complementary switching amplifier.
  • the controller 1020 includes a calculation unit 1021, a crank rotation input unit 1022, a motor rotation input unit 1024, a variable delay circuit 1025, a motor drive timing generation unit 1026, a torque input unit 1027, and a brake input unit 1028. , an AD (Analog-Digital) input section 1029 , and a sensor input section 1023 that receives input from the boarding detection sensor 108 .
  • AD Analog-Digital
  • the calculation unit 1021 receives input from the operation panel 106 (for example, ON/OFF of assist), input from the crank rotation input unit 1022, input from the motor rotation input unit 1024, input from the torque input unit 1027, and brake input unit.
  • the input from 1028 and the input from the AD input unit 1029 are used to perform calculations and output to the motor drive timing generation unit 1026 and the variable delay circuit 1025 .
  • the calculation unit 1021 has a memory 10211, and the memory 10211 stores various data used for calculation, data during processing, and the like.
  • the arithmetic unit 1021 may be implemented by a processor executing a program, and in this case the program may be recorded in the memory 10211 .
  • the memory 10211 may be provided separately from the calculation unit 1021 .
  • the crank rotation input unit 1022 digitizes and calculates a rotation phase angle of the crank (also called a rotation phase angle of the pedal, including a signal representing the rotation direction) obtained from a signal from the crank rotation sensor 104, for example. Output to the unit 1021 .
  • a motor rotation input unit 1024 digitizes a signal (for example, a rotation phase angle, a rotation direction, etc.) related to the rotation of the motor 105 (rotation of the front wheels in this embodiment) from the Hall signal output by the motor 105, and outputs it to the calculation unit 1021.
  • output to Torque input section 1027 digitizes a signal corresponding to the pedaling force from torque sensor 103 and outputs the digitized signal to calculation section 1021 .
  • the brake input unit 1028 digitizes the signal indicating whether or not the brake is applied from the brake sensor 107 and outputs the digitized signal to the calculation unit 1021 .
  • AD input section 1029 digitizes the output voltage from the secondary battery and outputs it to arithmetic section 1021 .
  • the sensor input unit 1023 generates a digital signal representing whether or not the driver is on board from the input signal from the boarding detection sensor 108 and outputs the digital signal to the calculation unit 1021 .
  • the computation unit 1021 outputs the lead angle value to the variable delay circuit 1025 as a computation result.
  • the variable delay circuit 1025 adjusts the phase of the Hall signal based on the lead angle value received from the calculation unit 1021 and outputs the Hall signal to the motor drive timing generation unit 1026 .
  • the calculation unit 1021 outputs, for example, a PWM code corresponding to a duty ratio of PWM (Pulse Width Modulation) to the motor drive timing generation unit 1026 as a calculation result.
  • Motor drive timing generator 1026 generates and outputs a switching signal for each FET included in FET bridge 1030 based on the adjusted Hall signal from variable delay circuit 1025 and the PWM code from calculator 1021 .
  • the motor 105 may be powered forward and backward, or may be regeneratively controlled forward and backward. Note that the basic operation of the motor drive is described in the pamphlet of International Publication No. 2012/086459, etc., and is not the main part of the present embodiment, so the description is omitted here.
  • the front wheels are arranged on the higher side of the slope, and the rear wheels are arranged on the lower side of the slope, so that the power-assisted bicycle 1 moves in the direction indicated by the arrow (backward direction).
  • the calculation unit 1021 can obtain data such as the fact that the front wheels are rotating in the direction opposite to the direction in which the vehicle is moving forward from the hall signal from the motor 105 provided in the front wheels, and the rotation phase angle. can be done.
  • the rotation of the wheels in the direction opposite to the forward movement is referred to as "forward" rotation.
  • Data such as the rotation direction and rotation phase angle of the rear wheels can be obtained by providing a sensor for detecting the rotation of the rear wheels instead of using the Hall signal from the motor 105 provided on the front wheels. can be
  • the crank when moving forward, the crank is rotated in increasing angles of 0°, 90°, and 180°.
  • the chain moves in conjunction with the reverse rotation of the rear wheels, and the crank angle decreases from 0° (360°), 270°, and 180° as indicated by the arrows. is often configured to rotate in the opposite direction.
  • the calculation unit 1021 can obtain data such as the fact that the crank is rotating in the reverse direction and the rotation phase angle from the signal from the crank rotation sensor 104 .
  • the crank may not rotate in the opposite direction according to the rotation of the rear wheel. do.
  • FIG. 5 shows a functional block configuration example (part according to the present embodiment) related to the control unit 3000 realized in the calculation unit 1021.
  • Control unit 3000 according to the present embodiment has detection unit 3100 and regeneration control unit 3200 .
  • the detector 3100 determines whether the electrically power-assisted bicycle 1 is moving backward based on the crank rotation data from the crank rotation input unit 1022 and the motor rotation data from the motor rotation input unit 1024, and determines the relationship between the crank rotation and the wheel rotation. It determines whether or not the relationship satisfies a predetermined relationship to be described later, and outputs the determination result to regeneration control section 3200 . Note that the detection unit 3100 may also perform further determination according to sensor input regarding whether or not the vehicle is boarded from the sensor input unit 1023 .
  • the detection unit 3100 selects an appropriate timing based on the input torque from the torque input unit 1027 and calculates the gear ratio.
  • the regeneration control unit 3200 determines the presence or absence of regeneration and the degree of regeneration in reverse to decelerate according to the determination result of the detection unit 3100, and the variable delay circuit 1025 and the variable delay circuit 1025 and It outputs to the motor drive timing generator 1026 .
  • FIG. 6 and 7 The processing in FIGS. 6 and 7 is executed in each control cycle, and the timer used below is initialized to 0 and the flag is also initialized to OFF before the processing is started.
  • the detection unit 3100 determines whether or not the power-assisted bicycle 1 is moving backward, for example, from the rotation direction included in the motor rotation data (Fig. 6: step S1).
  • detection unit 3100 turns off a flag indicating whether or not to perform regeneration in reverse, so that regeneration control unit 3200 performs regeneration. (step S7). Then, the process moves to step S9.
  • the detection unit 3100 determines whether or not the vehicle is moving backward to decelerate based on wheel rotation and crank rotation based on motor rotation, for example (step S3). In this step, it is determined whether or not the vehicle should be decelerated because the vehicle is moving backward against the driver's intention, for example, based on whether or not the following conditions are satisfied.
  • the gear ratio is calculated from the front gear/rear gear (including the transmission).
  • the crank rotates at the minimum gear ratio when reversing, regardless of the current gear stage. That is, in the case of an internal transmission (including a case without a transmission), the gear ratio to be used is stored in the memory of the calculation unit 1021, and that gear ratio is used.
  • step S7 Even if the crank is rotating in the forward direction, it is determined that the vehicle is not in reverse to decelerate.
  • the regeneration control unit 3200 determines whether or not the value of the timer has become equal to or greater than the threshold TH1 (for example, 3 seconds) (step S15). If the timer value ⁇ threshold value TH1, the regeneration control unit 3200 sets 0 as a coefficient representing the intensity of regeneration (also called the degree of deceleration or the degree of speed suppression) (step S23). Then, the process moves to step S25. Thus, if the timer value is less than 3 seconds, for example, no regeneration is performed. For example, if the driver pushes backward, it is less than about 3 seconds, so it can be distinguished by the threshold value TH1.
  • the threshold value TH1 for example, 3 seconds
  • the regeneration control unit 3200 sets 1.0 as the coefficient representing the intensity of regeneration (step S19).
  • thresholds TH1 and TH2 are too small, regeneration will start even when the driver manually pushes the vehicle in reverse and then turns back, making it difficult for the driver to operate.
  • the threshold values TH1 and TH2 are too large, the backward movement will accelerate before regeneration starts, and it will take time to decelerate.
  • Modification 1 of Embodiment 1 In the first embodiment, it is not confirmed whether or not the driver is in the vehicle. It can be relatively easily stopped by rowing or applying a mechanical brake. Therefore, in Modification 1 of the first embodiment, a case will be described in which processing is performed according to the signal output by the boarding detection sensor 108 .
  • step S3 If the driver is not riding the electrically assisted bicycle 1, that is, if the riding is not detected, the process proceeds to step S3. On the other hand, if the driver is riding the electrically assisted bicycle 1, that is, if the riding is detected, the process proceeds to step S7.
  • the regeneration control unit 3200 determines whether or not the distance of continuous backward movement is equal to or greater than a threshold value TH31 (for example, 2 m, about the vehicle length of the electrically power-assisted bicycle 1) (step S45). This is to distinguish it from the backward operation by the driver's manual push operation. If the distance of continuous retreat ⁇ threshold TH31, the regeneration control unit 3200 sets the coefficient representing the strength of regeneration to 0 (step S53). Then, the process moves to step S55. In this way, regeneration is not performed if the distance of continuous retreat is less than 2 m.
  • a threshold value TH31 for example, 2 m, about the vehicle length of the electrically power-assisted bicycle 1
  • thresholds TH31 and TH32 are too small, regeneration will start even when the vehicle is reversed by the driver's manual push operation and then turned back, making it difficult for the driver to operate.
  • the thresholds TH31 and TH32 are too large, the backward movement will accelerate before regeneration starts, and it will take time to decelerate.
  • the detection unit 3100b determines whether or not the flag indicating whether or not to perform regeneration during reversing is off (step S73).
  • the detection unit 3100b determines whether or not the reverse speed calculated from, for example, motor rotation data is equal to or greater than a threshold TH11 (eg, 4 km/h) (step S75).
  • a threshold TH11 eg, 4 km/h
  • step S91 when the flag is off, the regeneration control unit 3200b sets 0 to the coefficient representing the intensity of regeneration (step S91). Then, the process moves to step S93.
  • the regeneration control unit 3200b causes the motor 105 to perform regeneration with the amount of regeneration based on the coefficient representing the intensity of regeneration (step S93). For example, a reference regeneration amount is determined separately, and the regeneration amount is multiplied by a coefficient to determine the final regeneration amount.
  • the amount of regeneration may be defined by the amount of torque generated by regeneration, or may be defined by the amount of current flowing by regeneration.
  • the regeneration control unit 3200b sets the coefficient representing the strength of regeneration to (reversing speed - TH22)/(TH23 - TH22) (step S129). Then, the process moves to step S123.
  • the reverse speed is greater than or equal to the threshold value TH22 and less than TH23, the value of the coefficient increases linearly according to (reverse speed-TH22). That is, the higher the speed of retreat, the stronger the strength of regeneration.
  • step S133 the regeneration control unit 3200b sets 0 to the coefficient representing the intensity of regeneration. Then, the process moves to step S123.
  • the regeneration control unit 3200b causes the motor 105 to perform regeneration with the amount of regeneration based on the coefficient representing the intensity of regeneration (step S123). For example, a reference regeneration amount is determined separately, and the regeneration amount is multiplied by a coefficient to determine the final regeneration amount.
  • the amount of regeneration may be defined by the amount of torque generated by regeneration, or may be defined by the amount of current flowing by regeneration.
  • control unit 3000b determines whether or not the process has ended due to a power-off instruction or the like (step S125). On the other hand, if the processing ends due to an instruction to turn off the power, the regeneration control unit 3200b sets the flag to off (step S135). Then the process ends.
  • a threshold TH42 for example, 0°
  • the regeneration control unit 3200 determines whether the flag is ON (step S221). When the flag is off, the regeneration control unit 3200 sets 0 to a coefficient representing the strength of regeneration (also called the degree of deceleration or the degree of speed suppression) (step S229). Then, the process moves to step S231. On the other hand, if the flag is ON, regeneration control unit 3200 determines whether or not ⁇ reverse rotation angle is equal to or greater than threshold TH43 (for example, 180°) (step S223). When the ⁇ reverse rotation angle is less than the threshold TH43, the regeneration control unit 3200 sets the coefficient representing the strength of regeneration to ( ⁇ reverse rotation angle ⁇ TH42)/(TH43 ⁇ TH42) (step S227). Then, the process moves to step S231.
  • threshold TH43 for example, 180°
  • the regeneration control unit 3200 causes the motor 105 to perform regeneration with the amount of regeneration based on the coefficient representing the intensity of regeneration (step S231). For example, a reference regeneration amount is determined separately, and the regeneration amount is multiplied by a coefficient to determine the final regeneration amount.
  • the amount of regeneration may be defined by the amount of torque generated by regeneration, or may be defined by the amount of current flowing by regeneration.
  • step S243 the detection unit 3100 calculates the distance of continuous retreat (step S243).
  • the memory of the calculation unit 1021 stores the circumference of the wheel.
  • the number of pulses (or the number of edges) for the wheels in the current control cycle is counted, and the number of pulses (or the number of edges) for the wheels from the start of backward movement to the immediately preceding control cycle is counted. number) to calculate the total number of pulses (or the number of edges) from the start of the retreat.
  • the continuous backward distance is calculated by multiplying the cumulative number of pulses (or the number of edges) ⁇ the rotation angle per pulse/360° ⁇ the circumference of the wheel. It is also possible to calculate the retreated distance in each control period and add it to the total distance calculated before that.
  • step S245 instead of step S205, the detection unit 3100 determines whether or not the distance of continuous retreat is equal to or greater than a threshold TH46 (for example, 2 m) (step S245). If this condition is met, the process proceeds to step S209, and if this condition is not met, the process proceeds to step S213. Also, in step S247 instead of step S207, the detection unit 3100 initializes the distance information (step S247). In the above example, the cumulative number of pulses is set to zero, or the cumulative distance is set to zero.
  • a threshold TH46 for example, 2 m
  • FIG. 18 in the third embodiment and its modified example 1 may be changed to processing similar to steps S9 to S29 in the first embodiment. Specifically, the process is changed to that shown in FIG.
  • the regeneration control unit 3200 determines whether the flag is on (step S251). If the flag is ON, the regeneration control unit 3200 increments the third timer for measuring the duration of the regeneration event by the control period (step S253). Then, the process moves to step S257. On the other hand, if the flag is off, the regeneration control unit 3200 resets to 0 the third timer for measuring the duration of the regeneration event (step S255). Then, the process moves to step S257.
  • the regeneration control unit 3200 determines whether or not the value of the third timer is equal to or greater than the threshold TH51 (for example, 2 seconds) (step S257). If the value of the third timer ⁇ threshold value TH51, the regeneration control unit 3200 sets 0 to the coefficient representing the strength of regeneration (step S265). The process then proceeds to step S267. Thus, if the value of the third timer is less than 2 seconds, for example, no regeneration is performed.
  • the threshold TH51 may be shorter than or substantially equal to the threshold TH1.
  • the regeneration control unit 3200 sets 1.0 as the coefficient representing the intensity of regeneration (step S261).
  • the regeneration control unit 3200 causes the motor 105 to perform regeneration with the amount of regeneration based on the coefficient representing the intensity of regeneration (step S267). For example, a reference regeneration amount is determined separately, and the regeneration amount is multiplied by a coefficient to determine the final regeneration amount.
  • the amount of regeneration may be defined by the amount of torque generated by regeneration, or may be defined by the amount of current flowing by regeneration.
  • control unit 3000 determines whether or not the process has ended due to an instruction to turn off the power, etc. (step S269). On the other hand, if the processing ends due to an instruction to turn off the power, the regeneration control unit 3200 resets the used timer to 0 and sets the flag to off (step S271). Then the process ends.
  • FIG. 18 in the third embodiment and its modification 1 may be changed to processing similar to steps S9 to S59 in modification 2 of the first embodiment. Specifically, the process is changed to that shown in FIG.
  • the regeneration control unit 3200 determines whether a flag indicating whether or not to perform regeneration in reverse is on (step S281). If the flag is on, the regeneration control unit 3200 calculates the distance of continuous retreat (step S283). This step is similar to step S243. However, although the distance is accumulated when the backward movement is detected in step S243, the distance is accumulated when the flag is turned on in this step. If this process is applied to Modification 1 of the first embodiment, the distance is calculated separately in step S243 and this step. The process then proceeds to step S287.
  • step S285 the distance information for step S243 is initialized in step S247, but the distance information for step S283 is initialized in this step. do. The process then proceeds to step S287.
  • the regeneration control unit 3200 determines whether or not the distance of continuous retreat is equal to or greater than a threshold TH61 (for example, 1 m) (step S287). If the distance of continuous retreat ⁇ threshold value TH61, the regeneration control unit 3200 sets the coefficient representing the intensity of regeneration to 0 (step S295). The process then proceeds to step S297. In this way, regeneration is not performed if the distance of continuous retreat is less than 1 m.
  • the threshold TH61 may be shorter than the threshold TH31, or may be approximately the same.
  • the regeneration control unit 3200 sets 1.0 as the coefficient representing the intensity of regeneration (step S291).
  • the regeneration control unit 3200 causes the motor 105 to perform regeneration with the amount of regeneration based on the coefficient representing the intensity of regeneration (step S297). For example, a reference regeneration amount is determined separately, and the regeneration amount is multiplied by a coefficient to determine the final regeneration amount.
  • the amount of regeneration may be defined by the amount of torque generated by regeneration, or may be defined by the amount of current flowing by regeneration.
  • control unit 3000 determines whether or not the process has ended due to an instruction to turn off the power (step S299). On the other hand, if the process ends due to an instruction to turn off the power, the regeneration control unit 3200 resets the distance of continuous retreat to 0 and sets the flag to OFF (step S301). Then the process ends.
  • steps S203 to S207 shown in FIG. 17 are inserted between steps S1 and S3. Specifically, when it is determined in step S1 that the vehicle is not moving backward, that is, the vehicle is moving forward or stopped, the detection unit 3100 sets the value of the second timer that measures the continuation of backward movement to 0. (step S207). Then, the process moves to step S7.
  • the detection unit 3100 increments the value of the second timer by the control period (step S203). Then, the detection unit 3100 determines whether or not the value of the second timer is equal to or greater than a threshold TH41 (for example, 2 seconds) (step S205). If the value of the second timer is less than the threshold TH41, the process proceeds to step S7. On the other hand, when the value of the second timer is equal to or greater than the threshold value TH41, the process proceeds to step S3 to determine whether or not the vehicle should be reversed to decelerate.
  • a threshold TH41 for example, 2 seconds
  • the threshold TH1 used in the processing of FIG. 7 in the first embodiment was, for example, 3 seconds, but in this modified example, the backward movement is permitted by the threshold TH41 first.
  • the threshold TH1 may be set to 2 seconds.
  • the threshold TH2 was set to, for example, 6 seconds, but in this modified example, the threshold TH2 may be shortened to 5 seconds.
  • steps S203 to S207 shown in FIG. 17 are inserted between steps S1 and S3 in FIG. 6, but the modification of the first embodiment Also in FIG. 9 for example 2, steps S203 to S207 shown in FIG. 17 may be inserted between steps S1 to S3 as shown in FIG.
  • steps S243 to S247 shown in FIG. 19 are inserted between steps S1 and S3. Specifically, when it is determined in step S1 that the vehicle is not moving backward, that is, the vehicle is moving forward or stopped, the detection unit 3100 initializes the distance information (step S247). Then, the process moves to step S7.
  • the detection unit 3100 calculates the distance that the vehicle continues to move backward (step S243). Then, the detection unit 3100 determines whether or not the distance that the vehicle has continuously retreated is equal to or greater than the threshold TH46 (step S245). If the continuously retreated distance is less than the threshold TH46, the process proceeds to step S7. On the other hand, if the distance that the vehicle has continuously moved backward is equal to or greater than the threshold value TH46, the process proceeds to step S3 to determine whether or not the backward movement should be decelerated.
  • steps S243 to S247 shown in FIG. 19 are inserted between steps S1 and S3 in FIG. 6, but the modification of the first embodiment Also in FIG. 9 for example 2, steps S243 to S247 shown in FIG. 19 may be inserted between steps S1 to S3 as shown in FIG.
  • the threshold TH31 used in the process of FIG. 10 in the first embodiment was, for example, 2 m, but in this modified example, the backward movement is permitted by the threshold TH46 first.
  • the threshold TH31 may be set to a short value such as 1 m.
  • the threshold TH32 was set to, for example, 4 m, but in this modified example, the threshold TH32 may be shortened to 3 m.
  • Modification 8 of Embodiment 1 In the modification 3 of the first embodiment, a processing example is shown in which it is determined whether or not the driver is getting into the vehicle as soon as the backward movement is detected. It is also possible to first measure the time during which reverse movement continues, and then detect the driver's boarding, or determine whether or not the reverse movement should be decelerated. Specifically, instead of FIG. 11, the process shown in FIG. 24 is executed.
  • steps S203 to S207 shown in FIG. 17 are inserted between steps S1 and S61. Specifically, when it is determined in step S1 that the vehicle is not moving backward, that is, the vehicle is moving forward or stopped, the detection unit 3100 sets the value of the second timer that measures the continuation of backward movement to 0. (step S207). Then, the process moves to step S7.
  • the detection unit 3100 increments the value of the second timer by the control period (step S203). Then, the detection unit 3100 determines whether or not the value of the second timer is equal to or greater than a threshold TH41 (for example, 2 seconds) (step S205). If the value of the second timer is less than the threshold TH41, the process proceeds to step S7. On the other hand, if the value of the second timer is equal to or greater than the threshold TH41, the process proceeds to step S61, and the detection unit 3100 detects whether or not the driver has boarded based on the sensor input from the sensor input unit 1023. It is determined whether or not the rider is riding on the electrically assisted bicycle 1, that is, whether or not riding has been detected (step S61).
  • a threshold TH41 for example, 2 seconds
  • steps S203 to S207 shown in FIG. 17 are inserted between steps S1 and S61 in FIG. 11, but the modification of the first embodiment Also in FIG. 8 for example 1, steps S203 to S207 shown in FIG. 17 may be inserted between steps S1 to S31 as shown in FIG.
  • Modification 10 of Embodiment 1 In modification 3 of the first embodiment, a processing example was shown in which it is determined whether or not the driver is getting into the vehicle immediately upon detection of backward movement, but modification 1 of the third embodiment (FIG. 19) Similarly, it is also possible to first measure the distance that the vehicle has continuously moved backward, and then detect that the vehicle is getting on by the driver, or determine whether or not the vehicle is moving backward to decelerate. Specifically, instead of FIG. 11, the process shown in FIG. 25 is executed.
  • steps S243 to S247 shown in FIG. 19 are inserted between steps S1 and S61. Specifically, when it is determined in step S1 that the vehicle is not moving backward, that is, the vehicle is moving forward or stopped, the detection unit 3100 initializes the distance information (step S247). Then, the process moves to step S7.
  • the detection unit 3100 calculates the distance that the vehicle continues to move backward (step S243). Then, the detection unit 3100 determines whether or not the distance that the vehicle has continuously retreated is equal to or greater than the threshold TH46 (step S245). If the continuously retreated distance is less than the threshold TH46, the process proceeds to step S7. On the other hand, if the distance that the driver has moved back continuously is equal to or greater than the threshold value TH46, the process proceeds to step S61, and the detection unit 3100 detects whether or not the driver is driving based on the sensor input from the sensor input unit 1023 regarding whether or not the driver is riding. It is determined whether or not the user is riding on the assist bicycle 1, that is, whether or not riding has been detected (step S61).
  • step S243 is different from the distance measured in step S41 because the measurement start timing is different.
  • steps S243 to S247 shown in FIG. 19 are inserted between steps S1 and S61 in FIG. 11, but the modification of the first embodiment Also in FIG. 8 for example 1, steps S243 to S247 shown in FIG. 19 may be inserted between steps S1 to S31 as shown in FIG.
  • the regeneration control unit 3200 determines whether the flag is on ( FIG. 26 : step S221). When the flag is off, the regeneration control unit 3200 initializes the rotation angles of the crank and the wheels notified from the detection unit 3100 to 0 (step S305). This step is similar to step S213. Regeneration control unit 3200 then sets the coefficient representing the intensity of regeneration to 0 (step S229). Then, the process moves to step S231.
  • the regeneration control unit 3200 calculates the permissible angle for reverse wheel rotation based on the rotation angle of the crank notified from the detection unit 3100 (step S301). This step is the same as step S209. Then, the regeneration control unit 3200 calculates the ⁇ reverse rotation angle, which is the difference between the actual reverse rotation angle of the wheels notified from the detection unit 3100 and the permissible reverse rotation angle of the wheels (step S303). This step is the same as step S211.
  • the regeneration control unit 3200 determines whether or not the ⁇ reverse rotation angle is equal to or greater than the threshold TH43 (for example, 180°) (step S223). When the ⁇ reverse rotation angle is less than the threshold TH43, the regeneration control unit 3200 sets the coefficient representing the strength of regeneration to ( ⁇ reverse rotation angle ⁇ TH42)/(TH43 ⁇ TH42) (step S227). Then, the process moves to step S231.
  • the threshold TH43 for example, 180°
  • the regeneration control unit 3200 sets the coefficient representing the strength of regeneration to 1.0 (step S225).
  • the regeneration control unit 3200 causes the motor 105 to perform regeneration with the amount of regeneration based on the coefficient representing the intensity of regeneration (step S231). For example, a reference regeneration amount is determined separately, and the regeneration amount is multiplied by a coefficient to determine the final regeneration amount.
  • the amount of regeneration may be defined by the amount of torque generated by regeneration, or may be defined by the amount of current flowing by regeneration.
  • control unit 3000 determines whether or not the process has ended due to an instruction to turn off the power, etc. (step S235). return to the process of On the other hand, if the processing ends due to an instruction to turn off the power, the regeneration control unit 3200 resets the used timer or the like and sets the flag to off (step S307). Then the process ends.
  • the intensity of regeneration may be determined based on the ⁇ reverse rotation angle.
  • the reverse rotation angle is accumulated after the flag is turned on.
  • the functional block diagram described above is an example, and one functional block may be divided into a plurality of functional blocks, or a plurality of functional blocks may be integrated into one functional block.
  • the order of the steps may be changed, or a plurality of steps may be executed in parallel, as long as the content of the processing does not change.
  • a first motor control device provides (A) a power-assisted vehicle having three or more front and rear wheels, a crank, and a motor, based on the relationship between the rotation of the crank and the rotation of the wheel. (B) a motor that controls the speed of the retraction (for example, slows down the retraction) when the detection unit detects the retraction (for example, the detector 3100 in the embodiment) that detects retraction; and a control unit (for example, the regeneration control unit 3200 in the embodiment) that controls the .
  • Unintentional reversing by the driver can be detected as reversing that should be decelerated based on the relationship between crank rotation and wheel rotation, enabling appropriate deceleration. Note that regeneration may be used, or other means may be used.
  • the above-described detection unit determines that the rotation angle of the wheel in the reverse rotation direction (for example, ⁇ 2 in the embodiment) is equal to the rotation angle of the crank in the reverse rotation direction (for example, The reverse rotation may be detected based on an equation for confirming that the product of ⁇ 1) in the embodiment and the gear ratio is greater than or equal to the gear ratio (for example, the equation for calculating the ⁇ reverse rotation angle in the embodiment). In this manner, reverse movement to be decelerated may be detected based on the relationship between the wheel rotation angle in the reverse rotation direction and the crank rotation angle in the reverse rotation direction. It should be noted that the above formula is not limited to the formula shown in the embodiment, and may be modified in various forms, and the margin may be added by multiplication or addition.
  • the detection unit described above confirms that the number of rotations of the wheels in the reverse rotation direction is equal to or greater than the product of the number of rotations of the crank in the reverse rotation direction and the gear ratio, taking into account a predetermined margin.
  • the retreat may be detected based on an equation for (for example, equation (1) in the embodiment).
  • reverse movement to be decelerated may be detected based on the relationship between the number of rotations of the wheels in the reverse rotation direction and the number of rotations of the crank in the reverse rotation direction. For example, if the number of rotations of the wheel is A, the number of rotations of the crank is B, and the margin is ⁇ , then A ⁇ B ⁇ g or A/(B ⁇ g) ⁇ 1/ ⁇ . It may be A ⁇ B ⁇ g/ ⁇ , or ⁇ A ⁇ B ⁇ g ⁇ 0. It may be a variation of a substantially similar formula. Note that the margin may be added by addition.
  • the detection unit described above detects the above-mentioned reversing when the time period during which the reversing continues is a predetermined time or more, or when the distance that the electrically assisted vehicle moves backward due to the continuation of reversing is a predetermined distance or more. You can make it work. This is to exclude cases where the driver intends to move backward.
  • the time period during which the backward movement continues is determined by: a) when the backward movement is no longer detected; b) when it is determined from the output of a predetermined sensor that a person is in the electrically assisted vehicle; and c) the motor control device. is turned off, d) the electrically assisted vehicle moves forward, and d) forward rotation of the crank is detected. This is so that an appropriate determination can be made later.
  • control unit described above may cause the motor to regenerate with the degree of suppression according to the speed.

Landscapes

  • Engineering & Computer Science (AREA)
  • Chemical & Material Sciences (AREA)
  • Combustion & Propulsion (AREA)
  • Mechanical Engineering (AREA)
  • Transportation (AREA)
  • Electric Propulsion And Braking For Vehicles (AREA)

Abstract

To moderate an unintended rearward speed or an unintentionally high rearward speed of an electrically assisted vehicle with three or more wheels, this motor control device includes (A) a detection unit that detects rearward motion to be decelerated on the basis of the relationship between crank rotation and wheel rotation in an electrically assisted vehicle including three or more wheels among front and rear wheels, a crank, and a motor, and (B) a control unit that controls the motor to moderate the rearward speed if the detection unit detects the rearward motion. Another embodiment of the motor control device includes (A) a detection unit that detects the rearward speed of an electrically assisted vehicle including three or more wheels among front and rear wheels and a motor, and (B) a control unit that controls the motor to moderate the speed if the speed is equal to or greater than a first threshold value.

Description

電動アシスト車のためのモータ制御装置及び電動アシスト車Motor control device for electrically assisted vehicle and electrically assisted vehicle
 本発明は、3輪以上の電動アシスト車の後退を制御するための技術に関する。 The present invention relates to technology for controlling the reversing of an electrically assisted vehicle with three or more wheels.
 例えば特許文献1には、電動アシスト車のモータを駆動する駆動部と、第1の条件を満たすクランクの逆回転を検出すると、電動アシスト車を後退させるように駆動部を制御する制御部とを有するモータ制御装置が開示されている。この技術によれば、電動アシスト車に乗車したまま後退できるようになる。 For example, Patent Literature 1 discloses a drive section that drives a motor of an electrically assisted vehicle, and a control section that controls the drive section so as to move the electrically assisted vehicle backward when reverse rotation of the crank that satisfies the first condition is detected. A motor controller is disclosed having: According to this technology, it becomes possible to reverse while riding in an electrically assisted vehicle.
 このように運転者が意図的にクランクを逆回転させている場合には運転者は後退を意図しているので電動アシスト車を後退させても問題が生じないことが多い。しかしながら、運転者の意図しない後退が生ずる場合がある。例えば、自立できる3輪以上の電動アシスト車を、平地でやっているように坂の途中で停車させて降車してしまうと、電動アシスト車が勝手に後退してしまう場合がある。また、運転者が乗車したままであっても、後退しながら平地又は上り坂から下り坂に入るような場合、後退自体は運転者の意図したものでも、後退方向に意図しない速い速度が生ずる場合がある。このような場合には、衝突の危険性やバランスを崩して転倒するというような危険性が想定される。 When the driver intentionally reverses the crank like this, the driver intends to reverse, so in most cases there is no problem even if the electrically assisted vehicle is reversed. However, unintentional reversing by the driver may occur. For example, if a self-supporting electrically assisted vehicle with three or more wheels is stopped in the middle of a slope and gets off, the electrically assisted vehicle may move backward without permission. In addition, even if the driver remains in the vehicle, if the vehicle enters a downhill from a flat ground or an uphill while reversing, even if the reversing is intended by the driver, an unintended high speed occurs in the reversing direction. There is In such a case, there is a risk of collision or loss of balance and overturning.
国際公開公報WO/2019/189285International Publication WO/2019/189285
 従って、本発明の目的は、一側面によれば、3輪以上の電動アシスト車の意図しない後退における速度又は後退における意図しない速い速度を抑制するための技術を提供することである。 Therefore, according to one aspect, an object of the present invention is to provide a technique for suppressing an unintended reverse speed or an unintended high speed during reverse of an electrically assisted vehicle with three or more wheels.
 本発明の第1の態様に係るモータ制御装置は、(A)前輪と後輪で3以上の車輪とクランクとモータとを有する電動アシスト車におけるクランク回転と車輪回転との関係に基づき、減速すべき後退を検出する検出部と、(B)検出部が上記後退を検出した場合、上記後退の速度を抑制するようにモータを制御する制御部とを有する。 A motor control device according to a first aspect of the present invention provides: (A) a motor-assisted vehicle having three or more front and rear wheels, a crank, and a motor; (B) a control unit that controls the motor to suppress the speed of the retraction when the detection unit detects the retraction.
 本発明の第2の態様に係るモータ制御装置は、(A)前輪と後輪で3以上の車輪とモータとを有する電動アシスト車が後退する速度を検出する検出部と、(B)上記速度が第1の閾値以上である場合、上記速度を抑制するようにモータを制御する制御部とを有する。 A motor control device according to a second aspect of the present invention comprises: (A) a detection unit for detecting a speed at which an electrically assisted vehicle having three or more front and rear wheels and a motor moves backward; is greater than or equal to a first threshold, the controller controlling the motor to suppress the speed.
図1は、実施の形態における電動アシスト自転車の外観を示す図である。FIG. 1 is a diagram showing the appearance of a power-assisted bicycle according to an embodiment. 図2は、モータ制御装置の構成例を示す図である。FIG. 2 is a diagram showing a configuration example of a motor control device. 図3は、実施の形態において想定される電動アシスト自転車の後退を説明するための図である。FIG. 3 is a diagram for explaining reverse movement of the power-assisted bicycle assumed in the embodiment. 図4は、クランクの回転方向を説明するための図である。FIG. 4 is a diagram for explaining the rotation direction of the crank. 図5は、第1の実施の形態における制御部の機能ブロック図である。FIG. 5 is a functional block diagram of a control unit according to the first embodiment; 図6は、第1の実施の形態における動作内容を表すフローを示す図である。FIG. 6 is a diagram showing a flow representing operation contents in the first embodiment. 図7は、第1の実施の形態における動作内容を表すフローを示す図である。FIG. 7 is a diagram showing a flow representing operation contents in the first embodiment. 図8は、第1の実施の形態の第1の変形例における動作内容を表すフローを示す図である。FIG. 8 is a diagram showing a flow representing operation contents in the first modification of the first embodiment. 図9は、第1の実施の形態の第2の変形例における動作内容を表すフローを示す図である。FIG. 9 is a diagram showing a flow of operations in the second modification of the first embodiment. 図10は、第1の実施の形態の第2の変形例における動作内容を表すフローを示す図である。FIG. 10 is a diagram showing a flow of operations in the second modification of the first embodiment. 図11は、第1の実施の形態の第3の変形例における動作内容を表すフローを示す図である。FIG. 11 is a diagram showing a flow representing operation contents in the third modification of the first embodiment. 図12は、第2の実施の形態における制御部の機能ブロック図である。FIG. 12 is a functional block diagram of a control unit according to the second embodiment; 図13は、第2の実施の形態における動作内容を表すフローを示す図である。FIG. 13 is a diagram showing a flow representing operation contents in the second embodiment. 図14は、第2の実施の形態における動作内容を表すフローを示す図である。FIG. 14 is a diagram showing a flow representing operation contents in the second embodiment. 図15は、第2の実施の形態の第1の変形例における動作内容を表すフローを示す図である。FIG. 15 is a diagram showing a flow of operations in the first modification of the second embodiment. 図16は、第2の実施の形態の第1の変形例における動作内容を表すフローを示す図である。FIG. 16 is a diagram showing a flow representing operation contents in the first modification of the second embodiment. 図17は、第3の実施の形態における動作内容を表すフローを示す図である。FIG. 17 is a diagram showing a flow representing operation contents in the third embodiment. 図18は、第3の実施の形態における動作内容を表すフローを示す図である。FIG. 18 is a diagram showing a flow representing operation contents in the third embodiment. 図19は、第3の実施の形態の第1の変形例における動作内容を表すフローを示す図である。FIG. 19 is a diagram showing a flow of operations in the first modification of the third embodiment. 図20は、第3の実施の形態の第2の変形例における動作内容を表すフローを示す図である。FIG. 20 is a diagram showing a flow of operations in the second modification of the third embodiment. 図21は、第3の実施の形態の第3の変形例における動作内容を表すフローを示す図である。FIG. 21 is a diagram showing a flow representing operation contents in the third modification of the third embodiment. 図22は、第1の実施の形態の第4の変形例における動作内容を表すフローを示す図である。FIG. 22 is a diagram showing a flow representing operation contents in the fourth modification of the first embodiment. 図23は、第1の実施の形態の第6の変形例における動作内容を表すフローを示す図である。FIG. 23 is a diagram showing a flow of operations in the sixth modification of the first embodiment. 図24は、第1の実施の形態の第8の変形例における動作内容を表すフローを示す図である。FIG. 24 is a diagram showing a flow of operations in the eighth modification of the first embodiment. 図25は、第1の実施の形態の第10の変形例における動作内容を表すフローを示す図である。FIG. 25 is a diagram showing a flow representing operation contents in the tenth modification of the first embodiment. 図26は、第4の実施の形態における動作内容を表すフローを示す図である。FIG. 26 is a diagram showing a flow representing operation contents in the fourth embodiment.
 以下、本発明の実施の形態について、電動アシスト車の一例である電動アシスト自転車の例をもって説明する。しかしながら、本発明の実施の形態は、電動アシスト自転車だけに適用対象を限定するものではなく、人力に応じて移動する移動体(例えば、手押し車、台車など)のためのモータ制御装置についても適用可能である。 Embodiments of the present invention will be described below using an example of an electrically assisted bicycle, which is an example of an electrically assisted vehicle. However, the embodiments of the present invention are not limited to application only to electric assist bicycles, but are also applicable to motor control devices for mobile bodies (for example, handcarts, trolleys, etc.) that move according to human power. It is possible.
[実施の形態1]
 本発明の実施の形態では、1以上の前輪と2以上の後輪とを有する電動アシスト自転車や、2以上の前輪と1以上の後輪とを有する電動アシスト自転車を対象とする。このような電動アシスト自転車であれば、停車時に自立可能である。例えば、図1に示すように、1つの前輪と2つの後輪とを有する電動アシスト自転車1である。但し、1つの前輪と2つの後輪とを有する電動アシスト自転車であってもよい。
[Embodiment 1]
The embodiments of the present invention are intended for electrically assisted bicycles having one or more front wheels and two or more rear wheels, or electrically assisted bicycles having two or more front wheels and one or more rear wheels. Such an electrically assisted bicycle can stand on its own when stopped. For example, as shown in FIG. 1, it is an electrically assisted bicycle 1 having one front wheel and two rear wheels. However, it may be an electrically assisted bicycle having one front wheel and two rear wheels.
 図1に示した電動アシスト自転車1は、モータ制御装置102と、バッテリパック101と、トルクセンサ103と、クランク回転センサ104と、モータ105と、操作パネル106と、ブレーキセンサ107とを有する。なお、変形例や他の実施の形態では、サドルなどに、人が電動アシスト自転車1に乗車しているか否かを検出するための乗車検出センサ108を設ける場合がある。 The power-assisted bicycle 1 shown in FIG. 1 has a motor control device 102, a battery pack 101, a torque sensor 103, a crank rotation sensor 104, a motor 105, an operation panel 106, and a brake sensor 107. Note that, in a modified example or another embodiment, a riding detection sensor 108 for detecting whether or not a person is riding the electrically assisted bicycle 1 may be provided on the saddle or the like.
 バッテリパック101は、例えば、リチウムイオン二次電池、リチウムイオンポリマー二次電池、ニッケル水素蓄電池などを含み、モータ制御装置102を介してモータ105に対して電力を供給し、回生時にはモータ制御装置102を介してモータ105からの回生電力によって充電も行う。 The battery pack 101 includes, for example, a lithium-ion secondary battery, a lithium-ion polymer secondary battery, a nickel-hydrogen storage battery, or the like, supplies power to the motor 105 via the motor control device 102, and supplies power to the motor control device 102 during regeneration. Charging is also performed by regenerative power from the motor 105 via .
 トルクセンサ103は、クランク軸周辺に取付けられたホイールに設けられており、運転者によるペダルの踏力を検出し、この検出結果をモータ制御装置102に出力する。また、クランク回転センサ104は、トルクセンサ103と同様に、クランク軸周辺に取付けられたホイールに設けられており、例えば回転に応じたパルス信号等をモータ制御装置102に出力する。 The torque sensor 103 is provided on a wheel attached around the crankshaft, detects the force applied to the pedal by the driver, and outputs the detection result to the motor control device 102 . Further, the crank rotation sensor 104 is provided on a wheel attached around the crankshaft, like the torque sensor 103, and outputs a pulse signal or the like according to the rotation to the motor control device 102, for example.
 モータ105は、例えば周知の三相ブラシレスモータであり、例えば電動アシスト自転車1の前輪に装着されている。モータ105は、前輪を回転させるとともに、前輪の回転に応じてローターが回転するように、ローターが前輪に直接又は減速器などを介して連結されている。さらに、モータ105はホール素子等の回転センサを備えてローターの回転情報(例えばホール信号)をモータ制御装置102に出力する。 The motor 105 is, for example, a well-known three-phase brushless motor, and is attached to the front wheel of the electrically assisted bicycle 1, for example. The motor 105 rotates the front wheels, and the rotor is connected to the front wheels directly or via a speed reducer or the like so that the rotor rotates according to the rotation of the front wheels. Further, the motor 105 has a rotation sensor such as a Hall element, and outputs rotor rotation information (for example, a Hall signal) to the motor control device 102 .
 乗車検出センサ108は、例えばサドルに運転者が着席しているかどうかを検出するためのセンサであり、例えば重量センサ、着席に応じてオンになるスイッチなどである。乗車検出センサ108は、サドル以外に設置してもよく、その場合にはカメラや赤外線センサなどであっても良い。カメラや赤外線センサに、サドルに着席している人を確認できるようにする。 The boarding detection sensor 108 is, for example, a sensor for detecting whether or not the driver is seated on the saddle. The boarding detection sensor 108 may be installed in a place other than the saddle, in which case it may be a camera, an infrared sensor, or the like. To enable a camera or an infrared sensor to confirm a person sitting on a saddle.
 モータ制御装置102は、モータ105の回転センサ、トルクセンサ103及びクランク回転センサ104等からの信号に基づき演算を行って、モータ105の駆動を制御し、モータ105による回生の制御も行う。 The motor control device 102 performs calculations based on signals from the rotation sensor of the motor 105, the torque sensor 103, the crank rotation sensor 104, etc., controls the driving of the motor 105, and also controls regeneration by the motor 105.
 操作パネル106は、例えばアシストの有無に関する指示入力(例えば電源スイッチのオン及びオフ)、アシスト有りの場合には希望アシスト比等の入力を運転者から受け付けて、当該指示入力等をモータ制御装置102に出力する。また、操作パネル106は、モータ制御装置102によって演算された結果である走行距離、走行時間、消費カロリー、回生電力量等のデータを表示する機能を有する場合もある。また、操作パネル106は、LED(Light Emitting Diode)などによる表示部を有している場合もある。これによって、例えばバッテリパック101の充電レベルや、オンオフの状態、希望アシスト比に対応するモードなどを運転者に提示する。 The operation panel 106 accepts, for example, an instruction input regarding the presence or absence of assistance (for example, turning on and off a power switch) and an input such as a desired assist ratio in the case of assistance, from the driver. output to In some cases, the operation panel 106 also has a function of displaying data such as travel distance, travel time, calorie consumption, and regenerative power amount calculated by the motor control device 102 . Also, the operation panel 106 may have a display unit such as an LED (Light Emitting Diode). As a result, the driver is presented with, for example, the charge level of the battery pack 101, the on/off state, the mode corresponding to the desired assist ratio, and the like.
 ブレーキセンサ107は、運転者のブレーキ操作を検出して、ブレーキ操作に関する信号をモータ制御装置102に出力する。 The brake sensor 107 detects the driver's braking operation and outputs a signal regarding the braking operation to the motor control device 102 .
 次に、モータ制御装置102に関連する構成を図2に示す。モータ制御装置102は、制御器1020と、FET(Field Effect Transistor)ブリッジ1030とを有する。FETブリッジ1030は、モータ105のU相についてのスイッチングを行うハイサイドFET(Suh)及びローサイドFET(Sul)と、モータ105のV相についてのスイッチングを行うハイサイドFET(Svh)及びローサイドFET(Svl)と、モータ105のW相についてのスイッチングを行うハイサイドFET(Swh)及びローサイドFET(Swl)とを含む。このFETブリッジ1030は、コンプリメンタリ型スイッチングアンプの一部を構成している。 Next, the configuration related to the motor control device 102 is shown in FIG. The motor control device 102 has a controller 1020 and a FET (Field Effect Transistor) bridge 1030 . The FET bridge 1030 includes a high-side FET (Suh) and a low-side FET (Sul) for switching the U-phase of the motor 105, and a high-side FET (Svh) and a low-side FET (Svl) for switching the V-phase of the motor 105. ), and a high-side FET (Swh) and a low-side FET (Swl) for switching the W phase of the motor 105 . This FET bridge 1030 constitutes a part of a complementary switching amplifier.
 また、制御器1020は、演算部1021と、クランク回転入力部1022と、モータ回転入力部1024と、可変遅延回路1025と、モータ駆動タイミング生成部1026と、トルク入力部1027と、ブレーキ入力部1028と、AD(Analog-Digital)入力部1029と、乗車検出センサ108からの入力を受け付けるセンサ入力部1023とを有する。 Further, the controller 1020 includes a calculation unit 1021, a crank rotation input unit 1022, a motor rotation input unit 1024, a variable delay circuit 1025, a motor drive timing generation unit 1026, a torque input unit 1027, and a brake input unit 1028. , an AD (Analog-Digital) input section 1029 , and a sensor input section 1023 that receives input from the boarding detection sensor 108 .
 演算部1021は、操作パネル106からの入力(例えばアシストのオン/オフなど)、クランク回転入力部1022からの入力、モータ回転入力部1024からの入力、トルク入力部1027からの入力、ブレーキ入力部1028からの入力、AD入力部1029からの入力を用いて演算を行って、モータ駆動タイミング生成部1026及び可変遅延回路1025に対して出力を行う。なお、演算部1021は、メモリ10211を有しており、メモリ10211は、演算に用いる各種データ及び処理途中のデータ等を格納する。さらに、演算部1021は、プログラムをプロセッサが実行することによって実現される場合もあり、この場合には当該プログラムがメモリ10211に記録されている場合もある。また、メモリ10211は、演算部1021とは別に設けられる場合もある。 The calculation unit 1021 receives input from the operation panel 106 (for example, ON/OFF of assist), input from the crank rotation input unit 1022, input from the motor rotation input unit 1024, input from the torque input unit 1027, and brake input unit. The input from 1028 and the input from the AD input unit 1029 are used to perform calculations and output to the motor drive timing generation unit 1026 and the variable delay circuit 1025 . Note that the calculation unit 1021 has a memory 10211, and the memory 10211 stores various data used for calculation, data during processing, and the like. Furthermore, the arithmetic unit 1021 may be implemented by a processor executing a program, and in this case the program may be recorded in the memory 10211 . Also, the memory 10211 may be provided separately from the calculation unit 1021 .
 クランク回転入力部1022は、例えばクランク回転センサ104からの信号から得られる、クランクの回転位相角(ペダルの回転位相角とも呼ぶ。なお、回転方向を表す信号を含む。)を、ディジタル化して演算部1021に出力する。モータ回転入力部1024は、モータ105が出力するホール信号からモータ105の回転(本実施の形態においては前輪の回転)に関する信号(例えば回転位相角、回転方向など)を、ディジタル化して演算部1021に出力する。トルク入力部1027は、トルクセンサ103からの踏力に相当する信号をディジタル化して演算部1021に出力する。ブレーキ入力部1028は、ブレーキセンサ107からのブレーキ有り又は無しを表す信号をディジタル化して演算部1021に出力する。AD入力部1029は、二次電池からの出力電圧をディジタル化して演算部1021に出力する。センサ入力部1023は、乗車検出センサ108からの入力信号から、運転者が乗車しているか否かを表すディジタル信号を生成して、演算部1021に出力する。 The crank rotation input unit 1022 digitizes and calculates a rotation phase angle of the crank (also called a rotation phase angle of the pedal, including a signal representing the rotation direction) obtained from a signal from the crank rotation sensor 104, for example. Output to the unit 1021 . A motor rotation input unit 1024 digitizes a signal (for example, a rotation phase angle, a rotation direction, etc.) related to the rotation of the motor 105 (rotation of the front wheels in this embodiment) from the Hall signal output by the motor 105, and outputs it to the calculation unit 1021. output to Torque input section 1027 digitizes a signal corresponding to the pedaling force from torque sensor 103 and outputs the digitized signal to calculation section 1021 . The brake input unit 1028 digitizes the signal indicating whether or not the brake is applied from the brake sensor 107 and outputs the digitized signal to the calculation unit 1021 . AD input section 1029 digitizes the output voltage from the secondary battery and outputs it to arithmetic section 1021 . The sensor input unit 1023 generates a digital signal representing whether or not the driver is on board from the input signal from the boarding detection sensor 108 and outputs the digital signal to the calculation unit 1021 .
 演算部1021は、演算結果として進角値を可変遅延回路1025に出力する。可変遅延回路1025は、演算部1021から受け取った進角値に基づきホール信号の位相を調整してモータ駆動タイミング生成部1026に出力する。演算部1021は、演算結果として例えばPWM(Pulse Width Modulation)のデューティー比に相当するPWMコードをモータ駆動タイミング生成部1026に出力する。モータ駆動タイミング生成部1026は、可変遅延回路1025からの調整後のホール信号と演算部1021からのPWMコードとに基づいて、FETブリッジ1030に含まれる各FETに対するスイッチング信号を生成して出力する。演算部1021の演算結果によって、モータ105は、前進及び後退についての力行駆動される場合もあれば、前進及び後退についての回生制御される場合もある。なお、モータ駆動の基本動作については、国際公開第2012/086459号パンフレット等に記載されており、本実施の形態の主要部ではないので、ここでは説明を省略する。 The computation unit 1021 outputs the lead angle value to the variable delay circuit 1025 as a computation result. The variable delay circuit 1025 adjusts the phase of the Hall signal based on the lead angle value received from the calculation unit 1021 and outputs the Hall signal to the motor drive timing generation unit 1026 . The calculation unit 1021 outputs, for example, a PWM code corresponding to a duty ratio of PWM (Pulse Width Modulation) to the motor drive timing generation unit 1026 as a calculation result. Motor drive timing generator 1026 generates and outputs a switching signal for each FET included in FET bridge 1030 based on the adjusted Hall signal from variable delay circuit 1025 and the PWM code from calculator 1021 . Depending on the calculation result of the calculation unit 1021, the motor 105 may be powered forward and backward, or may be regeneratively controlled forward and backward. Note that the basic operation of the motor drive is described in the pamphlet of International Publication No. 2012/086459, etc., and is not the main part of the present embodiment, so the description is omitted here.
 なお、本実施の形態では、図3に示すように、坂の高い方に前輪が配置され、坂の低い方に後輪が配置されて、電動アシスト自転車1が矢印で示す方向(後退方向)に後退する場合を想定する。後退していても、演算部1021は、前輪に設けられたモータ105からのホール信号から、前進の場合とは逆方向に前輪が回転していること、その回転位相角などのデータを得ることができる。以下の説明では、車輪について前進の場合とは逆方向の回転を「正」の回転として説明する。なお、前輪に設けられたモータ105からのホール信号を用いずに、後輪に後輪の回転を検出するセンサを設けることで、後輪の回転方向及び回転位相角などのデータを得るようにしても良い。 In the present embodiment, as shown in FIG. 3, the front wheels are arranged on the higher side of the slope, and the rear wheels are arranged on the lower side of the slope, so that the power-assisted bicycle 1 moves in the direction indicated by the arrow (backward direction). Suppose the case of retreating to . Even if the vehicle is moving backward, the calculation unit 1021 can obtain data such as the fact that the front wheels are rotating in the direction opposite to the direction in which the vehicle is moving forward from the hall signal from the motor 105 provided in the front wheels, and the rotation phase angle. can be done. In the following description, the rotation of the wheels in the direction opposite to the forward movement is referred to as "forward" rotation. Data such as the rotation direction and rotation phase angle of the rear wheels can be obtained by providing a sensor for detecting the rotation of the rear wheels instead of using the Hall signal from the motor 105 provided on the front wheels. can be
 また、図4に模式的に示すように、前進する場合にはクランクを、0°、90°、180°と角度が増加する方向に回転させるが、例えば坂で何もせずに後退する場合には、後輪が逆回転するのに連動してチェーンが動いて、クランクが、矢印で示すように0°(360°)、270°、180°と角度が減少する方向、すなわち前進の場合とは逆方向に回転してしまう構成が多い。クランクが逆回転している場合にも、演算部1021は、クランク回転センサ104からの信号から、クランクが逆方向に回転していること、その回転位相角などのデータを得ることができる。なお、電動アシスト自転車1によっては、後輪の回転に応じてクランクが逆方向に回転しない構成の場合もあるが、本実施の形態では、クランクについて逆方向の回転を「正」の回転として説明する。 Also, as schematically shown in FIG. 4, when moving forward, the crank is rotated in increasing angles of 0°, 90°, and 180°. In this case, the chain moves in conjunction with the reverse rotation of the rear wheels, and the crank angle decreases from 0° (360°), 270°, and 180° as indicated by the arrows. is often configured to rotate in the opposite direction. Even when the crank is rotating in the reverse direction, the calculation unit 1021 can obtain data such as the fact that the crank is rotating in the reverse direction and the rotation phase angle from the signal from the crank rotation sensor 104 . Depending on the power-assisted bicycle 1, the crank may not rotate in the opposite direction according to the rotation of the rear wheel. do.
 次に、図5に、演算部1021において実現される制御部3000に関連する機能ブロック構成例(本実施の形態に係る部分)を示す。本実施の形態に係る制御部3000は、検出部3100と、回生制御部3200とを有する。 Next, FIG. 5 shows a functional block configuration example (part according to the present embodiment) related to the control unit 3000 realized in the calculation unit 1021. In FIG. Control unit 3000 according to the present embodiment has detection unit 3100 and regeneration control unit 3200 .
 検出部3100は、クランク回転入力部1022からのクランク回転のデータとモータ回転入力部1024からのモータ回転のデータとから、電動アシスト自転車1が後退しているか否か、クランク回転と車輪回転との関係が、後に説明する所定の関係となっているか否かなどを判定し、判定結果を回生制御部3200に出力する。なお、検出部3100は、センサ入力部1023からの、乗車の有無に関するセンサ入力に応じて、更に判定を行う場合もある。 The detector 3100 determines whether the electrically power-assisted bicycle 1 is moving backward based on the crank rotation data from the crank rotation input unit 1022 and the motor rotation data from the motor rotation input unit 1024, and determines the relationship between the crank rotation and the wheel rotation. It determines whether or not the relationship satisfies a predetermined relationship to be described later, and outputs the determination result to regeneration control section 3200 . Note that the detection unit 3100 may also perform further determination according to sensor input regarding whether or not the vehicle is boarded from the sensor input unit 1023 .
 なお、検出部3100は、ギア比を算出する場合には、トルク入力部1027からの入力トルクに基づき適切なタイミングを選択してギア比を算出する。 When calculating the gear ratio, the detection unit 3100 selects an appropriate timing based on the input torque from the torque input unit 1027 and calculates the gear ratio.
 回生制御部3200は、検出部3100の判定結果等に応じて、減速すべき後退における回生の有無及び回生の度合いを決定し、当該決定に応じた回生制御が行われるように可変遅延回路1025及びモータ駆動タイミング生成部1026に対する出力を行う。 The regeneration control unit 3200 determines the presence or absence of regeneration and the degree of regeneration in reverse to decelerate according to the determination result of the detection unit 3100, and the variable delay circuit 1025 and the variable delay circuit 1025 and It outputs to the motor drive timing generator 1026 .
 次に、制御部3000の動作について、図6及び図7を用いて説明する。図6及び図7の処理については、制御周期毎に実行され、以下で用いられるタイマは処理の開始前には0に初期化され、フラグもオフに初期化されているものとする。 Next, the operation of the control unit 3000 will be explained using FIGS. 6 and 7. FIG. The processing in FIGS. 6 and 7 is executed in each control cycle, and the timer used below is initialized to 0 and the flag is also initialized to OFF before the processing is started.
 まず、検出部3100は、例えばモータ回転のデータに含まれる回転方向から電動アシスト自転車1が後退中であるか否かを判定する(図6:ステップS1)。後退中ではない、すなわち前進中であるか又は停車中である場合には、検出部3100は、後退における回生を行うか否かを表すフラグをオフに設定することで、回生制御部3200に回生を行う事象ではないことを通知する(ステップS7)。そして、処理はステップS9に移行する。 First, the detection unit 3100 determines whether or not the power-assisted bicycle 1 is moving backward, for example, from the rotation direction included in the motor rotation data (Fig. 6: step S1). When the vehicle is not in reverse, that is, when the vehicle is moving forward or stopped, detection unit 3100 turns off a flag indicating whether or not to perform regeneration in reverse, so that regeneration control unit 3200 performs regeneration. (step S7). Then, the process moves to step S9.
 一方、後退中である場合には、検出部3100は、例えばモータ回転に基づく車輪回転とクランク回転とに基づき、減速すべき後退が起こっているか否かを判定する(ステップS3)。本ステップでは、例えば運転者の意図に反する後退が生じており、減速すべきであるか否かを、以下の条件が成立しているか否かで判定する。 On the other hand, if the vehicle is moving backward, the detection unit 3100 determines whether or not the vehicle is moving backward to decelerate based on wheel rotation and crank rotation based on motor rotation, for example (step S3). In this step, it is determined whether or not the vehicle should be decelerated because the vehicle is moving backward against the driver's intention, for example, based on whether or not the following conditions are satisfied.
 具体的には、以下の式で判定する。
 車輪の回転数×α≧クランクの回転数×ギア比  (1)
Specifically, it is determined by the following formula.
Wheel rotation speed x α ≥ crank rotation speed x gear ratio (1)
 例えば、上で述べた特許文献1では、意図的にクランクを逆回転させて後退方向にモータ105を駆動させる。このような意図的なクランクの逆回転ではなく、例えば坂で何もせず後退している場合を検出するには、車輪の回転数>クランクの回転数×ギア比であるか否かで判定する。一方で、後輪の回転に応じてクランクも回転してしまう構成の電動アシスト自転車1が多いので、上記式(1)のようにマージンα(例えば1.2)を導入して、確実に運転者の意図せざる後退で減速すべきであることを検出する。なお、後輪の回転に応じてクランクも回転してしまう構成ではない電動アシスト自転車であっても、上記式(1)で判定できる。 For example, in Patent Document 1 mentioned above, the crank is intentionally rotated in the reverse direction to drive the motor 105 in the backward direction. Instead of such intentional reverse rotation of the crank, for example, in order to detect the case where the vehicle is reversing without doing anything on a slope, it is determined whether or not the number of rotations of the wheels > the number of rotations of the crank x the gear ratio. . On the other hand, there are many electric power-assisted bicycles 1 that are configured such that the crank rotates according to the rotation of the rear wheel. Detects that the vehicle should decelerate due to unintended reversing of the vehicle. It should be noted that the above formula (1) can be used to determine whether or not the crank is rotated according to the rotation of the rear wheel, even if the bicycle is electrically assisted.
 なお、ギア比は、フロントギア/リアギア(変速機を含む)で算出されるものである。しかしながら、内装変速機(変速機無しの場合も含む)の場合には、後退時には現在の変速段にかかわらず、最小のギア比でクランクが回転する。すなわち、内装変速機(変速機無しの場合も含む)の場合には、演算部1021のメモリに用いるべきギア比を記憶しておき、そのギア比を用いる。 It should be noted that the gear ratio is calculated from the front gear/rear gear (including the transmission). However, in the case of an internal transmission (including a case without a transmission), the crank rotates at the minimum gear ratio when reversing, regardless of the current gear stage. That is, in the case of an internal transmission (including a case without a transmission), the gear ratio to be used is stored in the memory of the calculation unit 1021, and that gear ratio is used.
 一方、外装変速機の場合には、例えば演算部1021のメモリにギア比を算出することを求めるフラグをセットしておき、検出部3100は、電動アシスト自転車1が前進しており入力トルクがある場合に、車輪の回転数/クランクの回転数によりギア比を算出して、演算部1021のメモリに記憶しておく。また、電源がオンにされた直後でギア比が算出されていない場合には、電源オフ前に算出されて演算部1021のメモリに記憶されていたギア比を用いる。 On the other hand, in the case of an external transmission, for example, a flag requesting calculation of the gear ratio is set in the memory of the calculation unit 1021. In this case, the gear ratio is calculated from the number of rotations of the wheel/the number of rotations of the crank and stored in the memory of the calculation unit 1021 . If the gear ratio is not calculated immediately after the power is turned on, the gear ratio calculated before the power is turned off and stored in the memory of the calculation unit 1021 is used.
 上で述べた式(1)が成り立たず、減速すべき後退ではないと判定された場合には、処理はステップS7に移行する。なお、クランクが順方向に回転している場合にも、減速すべき後退ではないと判定する。 If the above formula (1) does not hold and it is determined that the vehicle should not be reversed to decelerate, the process proceeds to step S7. Even if the crank is rotating in the forward direction, it is determined that the vehicle is not in reverse to decelerate.
 なお、式(1)は、様々な形に変形可能である。車輪の回転数/(クランクの回転数×ギア比)≧1/α、車輪の回転数≧クランクの回転数×ギア比/α、車輪の回転数×α-クランクの回転数×ギア比≧0などで判定しても良い。さらに他の変形も可能である。加えて、適切な定数を加算又は減算する形で、マージンを加味するようにしても良い。 Note that formula (1) can be transformed into various forms. Wheel rotation speed/(crank rotation speed x gear ratio) ≥ 1/α, wheel rotation speed ≥ crank rotation speed x gear ratio/α, wheel rotation speed x α - crank rotation speed x gear ratio ≥ 0 and so on. Still other variations are possible. Additionally, a margin may be added by adding or subtracting an appropriate constant.
 一方、上で述べた式(1)が成立して、減速すべき後退であると判定された場合には、検出部3100は、後退における回生を行うか否かを表すフラグをオンに設定することで、回生制御部3200へ回生を行う事象であることを通知する(ステップS5)。 On the other hand, when the above-described formula (1) is established and it is determined that the vehicle is in reverse to decelerate, the detection unit 3100 turns on a flag indicating whether or not to perform regeneration in reverse. This notifies the regeneration control unit 3200 of the event of regeneration (step S5).
 そして、回生制御部3200は、フラグがオンであるか判断する(ステップS9)。フラグがオンであれば、回生制御部3200は、回生を行う事象が継続している時間を計測するためのタイマを、制御周期分だけ増分する(ステップS11)。そして処理は端子Aを介して図7の処理に移行する。一方、フラグがオフであれば、回生制御部3200は、回生を行う事象が継続している時間を計測するためのタイマを、0にリセットする(ステップS13)。そして処理は端子Aを介して図7の処理に移行する。 Then, the regeneration control unit 3200 determines whether the flag is on (step S9). If the flag is ON, the regeneration control unit 3200 increments the timer for measuring the duration of the regeneration event by the control period (step S11). Then, the process shifts to the process of FIG. 7 via terminal A. FIG. On the other hand, if the flag is off, the regeneration control unit 3200 resets to 0 the timer for measuring the duration of the regeneration event (step S13). Then, the process shifts to the process of FIG. 7 via terminal A. FIG.
 図7の処理の説明に移行して、回生制御部3200は、タイマの値が、閾値TH1(例えば3秒)以上となったか否かを判断する(ステップS15)。タイマの値<閾値TH1であれば、回生制御部3200は、回生の強度(減速度合い又は速度の抑制度合いとも呼ぶ)を表す係数に0を設定する(ステップS23)。そして処理はステップS25に移行する。このように、タイマの値が例えば3秒未満であれば、回生は行われない。例えば、運転者による手押しの後退であれば、おおよそ3秒未満なので、閾値TH1で区別できる。  Transitioning to the description of the process in FIG. 7, the regeneration control unit 3200 determines whether or not the value of the timer has become equal to or greater than the threshold TH1 (for example, 3 seconds) (step S15). If the timer value<threshold value TH1, the regeneration control unit 3200 sets 0 as a coefficient representing the intensity of regeneration (also called the degree of deceleration or the degree of speed suppression) (step S23). Then, the process moves to step S25. Thus, if the timer value is less than 3 seconds, for example, no regeneration is performed. For example, if the driver pushes backward, it is less than about 3 seconds, so it can be distinguished by the threshold value TH1.
 一方、タイマの値≧閾値TH1であれば、回生制御部3200は、タイマの値が、閾値TH2(例えば6秒)以上であるか否かを判断する(ステップS17)。タイマの値<閾値TH2であれば、回生制御部3200は、回生の強度を表す係数に、(タイマの値-TH1)/(TH2-TH1)を設定する(ステップS21)。そして処理はステップS25に移行する。このように、タイマの値が例えば3秒以上6秒未満であれば、(タイマの値-TH1)に応じて線形に係数の値が増加するようになっている。例えば、運転者による手押しの後退に少々時間が掛かっても、回生の強度が弱い間であれば、運転者に大きな影響はない。 On the other hand, if timer value≧threshold TH1, regeneration control unit 3200 determines whether the timer value is equal to or greater than threshold TH2 (for example, 6 seconds) (step S17). If timer value<threshold TH2, regeneration control unit 3200 sets (timer value−TH1)/(TH2−TH1) as a coefficient representing the intensity of regeneration (step S21). Then, the process moves to step S25. Thus, if the timer value is, for example, 3 seconds or more and less than 6 seconds, the coefficient value increases linearly according to (timer value-TH1). For example, even if it takes a little time for the driver to push the vehicle backward, it does not have a large effect on the driver as long as the strength of regeneration is low.
 一方、タイマの値≧閾値TH2であれば、回生制御部3200は、回生の強度を表す係数に、1.0を設定する(ステップS19)。 On the other hand, if the timer value≧threshold TH2, the regeneration control unit 3200 sets 1.0 as the coefficient representing the intensity of regeneration (step S19).
 なお、閾値TH1及びTH2は小さすぎると、運転者による手押し操作で後退してから切り返しするような場合にも回生が始まってしまって、運転者が操作しづらくなる。一方、閾値TH1及びTH2が大きすぎると、回生が始まるまでに後退が加速してしまい、減速するまでに時間が掛かってしまうので、実験などで適切な値を決めることが好ましい。 It should be noted that if the thresholds TH1 and TH2 are too small, regeneration will start even when the driver manually pushes the vehicle in reverse and then turns back, making it difficult for the driver to operate. On the other hand, if the threshold values TH1 and TH2 are too large, the backward movement will accelerate before regeneration starts, and it will take time to decelerate.
 そして、回生制御部3200は、回生の強度を表す係数に基づく回生量で、モータ105に回生を行わせる(ステップS25)。例えば、基準となる回生量を別途決定して、その回生量に係数を乗ずることで、最終的な回生量を決定する。なお、回生量は、回生によって生ずるトルクの量で規定されてもよいし、回生によって流れる電流の量で規定されてもよい。 Then, the regeneration control unit 3200 causes the motor 105 to perform regeneration with the amount of regeneration based on the coefficient representing the intensity of regeneration (step S25). For example, a reference regeneration amount is determined separately, and the regeneration amount is multiplied by a coefficient to determine the final regeneration amount. The amount of regeneration may be defined by the amount of torque generated by regeneration, or may be defined by the amount of current flowing by regeneration.
 そして、制御部3000は、電源断が指示されるなどの理由で処理終了であるか否かを判断し(ステップS27)、処理終了でなければ処理は端子Bを介してステップS1に戻る。一方、電源断が指示されるなどの理由で処理終了であれば、回生制御部3200は、タイマを0にリセットすると共に、フラグをオフに設定する(ステップS29)。そして処理を終了する。 Then, the control unit 3000 determines whether or not the process has ended due to an instruction to turn off the power (step S27). On the other hand, if the processing ends due to an instruction to turn off the power, the regeneration control unit 3200 resets the timer to 0 and sets the flag to OFF (step S29). Then the process ends.
 このように、例えば運転者の意図しない後退を検出して、その後退を減速させることができれば、安全性が高まる。 In this way, for example, if the driver's unintended reversing can be detected and the reversing can be decelerated, safety will be enhanced.
[実施の形態1の変形例1]
 第1の実施の形態では、運転者が乗車していているか否かを確認することはなかったが、運転者が乗車している場合には、後退を認識した運転者がクランクを順方向に漕いだり、機械ブレーキを掛けるなどして停止させることを比較的容易に行うことができる。従って、第1の実施の形態の変形例1では、乗車検出センサ108が出力する信号に応じて処理をする場合について説明する。
[Modification 1 of Embodiment 1]
In the first embodiment, it is not confirmed whether or not the driver is in the vehicle. It can be relatively easily stopped by rowing or applying a mechanical brake. Therefore, in Modification 1 of the first embodiment, a case will be described in which processing is performed according to the signal output by the boarding detection sensor 108 .
 本変形例では、図6の代わりに図8の処理を実行する。なお、追加されているのは、ステップS1のYesルートにおけるステップS31のみであるから、この部分のみを説明する。 In this modified example, the processing in FIG. 8 is executed instead of FIG. Since only step S31 in the Yes route of step S1 is added, only this part will be explained.
 ステップS1で後退中であると判定された場合、検出部3100は、センサ入力部1023からの、乗車の有無に関するセンサ入力に基づき、運転者が電動アシスト自転車1に乗車しているか否か、即ち乗車が検出されたか否かを判断する(ステップS31)。例えば、サドルに設置された重量センサで一定以上の重量が検出された場合、サドルに設置されたスイッチがオンになった場合、運転者が乗車していると判断する。赤外線センサやカメラなどからの入力により、人がサドルに着席していることを認識した場合には、運転者が乗車していると判断する。 If it is determined in step S1 that the vehicle is in reverse, the detection unit 3100 determines whether or not the driver is riding the power-assisted bicycle 1 based on the sensor input from the sensor input unit 1023 regarding whether or not the driver is riding. It is determined whether boarding is detected (step S31). For example, when a weight sensor installed on the saddle detects a weight above a certain level and a switch installed on the saddle is turned on, it is determined that the driver is on the vehicle. When it is recognized that a person is seated on the saddle by an input from an infrared sensor, a camera, or the like, it is determined that the driver is in the vehicle.
 運転者が電動アシスト自転車1に乗車していない、すなわち乗車が検出されなかった場合には、処理はステップS3に移行する。一方、運転者が電動アシスト自転車1に乗車している、すなわち乗車が検出された場合には、処理はステップS7に移行する。 If the driver is not riding the electrically assisted bicycle 1, that is, if the riding is not detected, the process proceeds to step S3. On the other hand, if the driver is riding the electrically assisted bicycle 1, that is, if the riding is detected, the process proceeds to step S7.
 このような処理を実行することで、運転者が電動アシスト自転車1に乗車していない場合に、意図しない後退が発生したことを検出することができ、それに応じて後退の減速がなされるようになる。 By executing such processing, it is possible to detect the occurrence of unintended reversing when the driver is not riding the electrically power-assisted bicycle 1, and to decelerate reversing accordingly. Become.
[実施の形態1の変形例2]
 第1の実施の形態では、タイマで計測した時間に応じて回生の強度を変化させる例を示したが、時間の代わりに距離に基づき回生の強度を変化させても良い。
[Modification 2 of Embodiment 1]
In the first embodiment, an example was given in which the intensity of regeneration is changed according to the time measured by the timer, but the intensity of regeneration may be changed based on distance instead of time.
 そこで、第1の実施の形態における変形例2に係る制御部3000の動作について、図9及び図10を用いて説明する。図9及び図10の処理については、制御周期毎に実行され、以下で用いられる距離は処理の開始前には0に初期化され、フラグもオフに初期化されているものとする。 Therefore, the operation of the control unit 3000 according to Modification 2 of the first embodiment will be described with reference to FIGS. 9 and 10. FIG. 9 and 10 are executed in each control cycle, the distance used below is initialized to 0, and the flag is also initialized to OFF before the start of the processing.
 なお、図9においてステップS1乃至S7については、図6におけるステップS1乃至S7と同じであるから、説明は省略する。 Note that steps S1 to S7 in FIG. 9 are the same as steps S1 to S7 in FIG. 6, so description thereof will be omitted.
 そうすると、回生制御部3200は、後退における回生を行うか否かを表すフラグがオンであるか否かを判断する(ステップS9)。フラグがオンであれば、回生制御部3200は、継続して後退した距離を算出する(ステップS41)。例えば、演算部1021のメモリには車輪の周長が記録されているものとする。そして、例えば、モータ回転のデータに含まれる回転位相角から本制御周期で回転した角度を特定し、当該角度/360°に周長を乗ずることで、本制御周期で後退した距離を算出する。そして、前の制御周期で得られている距離を加算することで、継続して後退した距離を算出する。そして処理は、端子Cを介して図10の処理に移行する。 Then, the regeneration control unit 3200 determines whether or not a flag indicating whether or not to perform regeneration in reverse is on (step S9). If the flag is ON, the regeneration control unit 3200 continuously calculates the backward distance (step S41). For example, it is assumed that the memory of the calculation unit 1021 stores the circumference of the wheel. Then, for example, the angle of rotation in this control cycle is specified from the rotation phase angle included in the motor rotation data, and the distance that has retreated in this control cycle is calculated by multiplying this angle/360° by the circumference. Then, by adding the distance obtained in the previous control cycle, the distance of continuous retreat is calculated. Then, the process shifts to the process of FIG. 10 via terminal C. FIG.
 一方、後退における回生を行うか否かを表すフラグがオフであれば、回生制御部3200は、継続して後退した距離を0に設定する(ステップS43)。そして処理は端子Cを介して図10の処理に移行する。 On the other hand, if the flag indicating whether or not to regenerate in reverse is off, the regeneration control unit 3200 sets the distance of continuous retreat to 0 (step S43). Then, the process shifts to the process of FIG. 10 via the terminal C. FIG.
 図10の処理の説明に移行して、回生制御部3200は、継続して後退した距離が閾値TH31(例えば2m。電動アシスト自転車1の車両長程度)以上であるか否かを判断する(ステップS45)。運転者による手押し操作による後退との区別を行うためである。継続して後退した距離<閾値TH31であれば、回生制御部3200は、回生の強度を表す係数を0に設定する(ステップS53)。そして処理はステップS55に移行する。このように、継続して後退した距離が2m未満であれば、回生は行われない。 Moving on to the description of the processing in FIG. 10, the regeneration control unit 3200 determines whether or not the distance of continuous backward movement is equal to or greater than a threshold value TH31 (for example, 2 m, about the vehicle length of the electrically power-assisted bicycle 1) (step S45). This is to distinguish it from the backward operation by the driver's manual push operation. If the distance of continuous retreat<threshold TH31, the regeneration control unit 3200 sets the coefficient representing the strength of regeneration to 0 (step S53). Then, the process moves to step S55. In this way, regeneration is not performed if the distance of continuous retreat is less than 2 m.
 一方、継続して後退した距離≧閾値TH31であれば、回生制御部3200は、継続して後退した距離が閾値TH32(例えば、4m。電動アシスト自転車1の車両長の2倍程度)以上であるか否かを判断する(ステップS47)。継続して後退した距離<閾値TH32であれば、回生制御部3200は、回生の強度を表す係数に、(継続して後退した距離-TH31)/(TH32-TH31)を設定する(ステップS51)。そして処理はステップS55に移行する。このように、継続して後退した距離が2m以上4m未満であれば、(継続して後退した距離-TH31)に応じて線形に係数の値が増加するようになっている。 On the other hand, if the continuously reversed distance≧threshold TH31, the regeneration control unit 3200 determines that the continuously reversed distance is equal to or greater than the threshold TH32 (for example, 4 m, about twice the vehicle length of the electrically power-assisted bicycle 1). It is determined whether or not (step S47). If the distance of continuous retreat<threshold TH32, the regeneration control unit 3200 sets (continuous retreat distance−TH31)/(TH32−TH31) as a coefficient representing the intensity of regeneration (step S51). . Then, the process moves to step S55. Thus, if the distance of continuous retreat is 2 m or more and less than 4 m, the value of the coefficient increases linearly according to (continuous retreat distance - TH31).
 一方、継続して後退した距離≧閾値TH32であれば、回生制御部3200は、回生の強度を表す係数に、1.0を設定する(ステップS49)。 On the other hand, if the continuously retreated distance≧threshold value TH32, the regeneration control unit 3200 sets 1.0 as the coefficient representing the strength of regeneration (step S49).
 なお、閾値TH31及びTH32は小さすぎると、運転者による手押し操作で後退してから切り返しするような場合にも回生が始まってしまって、運転者が操作しづらくなる。一方、閾値TH31及びTH32が大きすぎると、回生が始まるまでに後退が加速してしまい、減速するまでに時間が掛かってしまうので、実験などで適切な値を決めることが好ましい。 It should be noted that if the thresholds TH31 and TH32 are too small, regeneration will start even when the vehicle is reversed by the driver's manual push operation and then turned back, making it difficult for the driver to operate. On the other hand, if the thresholds TH31 and TH32 are too large, the backward movement will accelerate before regeneration starts, and it will take time to decelerate.
 そして、回生制御部3200は、回生の強度を表す係数に基づく回生量で、モータ105に回生を行わせる(ステップS55)。例えば、基準となる回生量を別途決定して、その回生量に係数を乗ずることで、最終的な回生量を決定する。なお、回生量は、回生によって生ずるトルクの量で規定されてもよいし、回生によって流れる電流の量で規定されてもよい。 Then, the regeneration control unit 3200 causes the motor 105 to perform regeneration with the amount of regeneration based on the coefficient representing the intensity of regeneration (step S55). For example, a reference regeneration amount is determined separately, and the regeneration amount is multiplied by a coefficient to determine the final regeneration amount. The amount of regeneration may be defined by the amount of torque generated by regeneration, or may be defined by the amount of current flowing by regeneration.
 そして、制御部3000は、電源断が指示されるなどの理由で処理終了であるか否かを判断し(ステップS57)、処理終了でなければ処理は端子Dを介してステップS1に戻る。一方、電源断が指示されるなどの理由で処理終了であれば、回生制御部3200は、継続して後退した距離を0にリセットすると共に、フラグをオフに設定する(ステップS59)。そして処理を終了する。 Then, the control unit 3000 determines whether or not the process has ended due to an instruction to turn off the power (step S57). On the other hand, if the process ends due to an instruction to turn off the power, the regeneration control unit 3200 resets the distance of continuous retreat to 0 and sets the flag to OFF (step S59). Then the process ends.
 このように、例えば運転者の意図しない後退を検出して、その後退を減速させることができれば、安全性が高まる。 In this way, for example, if the driver's unintended reversing can be detected and the reversing can be decelerated, safety will be enhanced.
[実施の形態1の変形例3]
 第1の実施の形態の変形例2では、運転者が乗車していているか否かを確認することはなかったが、運転者が乗車している場合には、後退を認識した運転者がクランクを順方向に漕いだり、機械ブレーキを掛けるなどして停止させることを比較的容易に行うことができる。従って、第1の実施の形態の変形例3では、乗車検出センサ108が出力する信号に応じて処理をする場合について説明する。
[Modification 3 of Embodiment 1]
In the modification 2 of the first embodiment, it is not confirmed whether or not the driver is in the vehicle. It is relatively easy to stop by rowing in the forward direction or applying a mechanical brake. Therefore, in the modification 3 of the first embodiment, a case will be described in which processing is performed according to the signal output by the boarding detection sensor 108. FIG.
 本変形例では、図9の代わりに図11の処理を実行する。なお、追加されているのは、ステップS1のYesルートにおけるステップS61のみであるから、この部分のみを説明する。 In this modified example, the processing in FIG. 11 is executed instead of FIG. Since only step S61 in the Yes route of step S1 is added, only this part will be explained.
 ステップS1で後退中であると判定された場合、検出部3100は、センサ入力部1023からの、乗車の有無に関するセンサ入力に基づき、運転者が電動アシスト自転車1に乗車しているか否か、即ち乗車が検出されたか否かを判断する(ステップS61)。このステップは、ステップS31と同じである。 If it is determined in step S1 that the vehicle is in reverse, the detection unit 3100 determines whether or not the driver is riding the power-assisted bicycle 1 based on the sensor input from the sensor input unit 1023 regarding whether or not the driver is riding. It is determined whether boarding has been detected (step S61). This step is the same as step S31.
 運転者が電動アシスト自転車1に乗車していない、すなわち乗車が検出されなかった場合には、処理はステップS3に移行する。一方、運転者が電動アシスト自転車1に乗車している、すなわち乗車が検出された場合には、処理はステップS7に移行する。 If the driver is not riding the electrically assisted bicycle 1, that is, if the riding is not detected, the process proceeds to step S3. On the other hand, if the driver is riding the electrically assisted bicycle 1, that is, if the riding is detected, the process proceeds to step S7.
 このような処理を実行することで、運転者が電動アシスト自転車1に乗車していない場合に、意図しない後退が発生したことを検出することができ、それに応じて後退の減速がなされるようになる。 By executing such processing, it is possible to detect the occurrence of unintended reversing when the driver is not riding the electrically power-assisted bicycle 1, and to decelerate reversing accordingly. Become.
[実施の形態2]
 ある程度の後退を意図していたとしても、意図しないほど速い速度が生ずる場合にも、安全性を確保することが好ましい。本実施の形態では、後退における速度に着目する。
[Embodiment 2]
Even if some reversal is intended, it is desirable to ensure safety in the event of unintended high speeds. In the present embodiment, attention is paid to the speed in reverse.
 図12に、演算部1021において実現される制御部3000bに関連する機能ブロック構成例(本実施の形態に係る部分)を示す。本実施の形態に係る制御部3000bは、検出部3100bと、回生制御部3200bとを有する。 FIG. 12 shows a functional block configuration example (part according to the present embodiment) related to the control unit 3000b implemented in the calculation unit 1021. FIG. Control unit 3000b according to the present embodiment has detection unit 3100b and regeneration control unit 3200b.
 検出部3100bは、モータ回転入力部1024からのモータ回転のデータから、電動アシスト自転車1が後退しているか否かを判定し、判定結果を回生制御部3200bに出力する。また、検出部3100bは、例えばモータ回転のデータから後退の速度も算出し、回生制御部3200bに出力する。なお、検出部3100bは、センサ入力部1023からの、乗車の有無に関するセンサ入力に応じて、更に判定を行う場合もある。 The detection unit 3100b determines whether or not the electrically assisted bicycle 1 is moving backward from the motor rotation data from the motor rotation input unit 1024, and outputs the determination result to the regeneration control unit 3200b. The detection unit 3100b also calculates the reverse speed from, for example, motor rotation data, and outputs the calculated speed to the regeneration control unit 3200b. It should be noted that the detection unit 3100b may perform further determination according to the sensor input from the sensor input unit 1023 regarding the presence or absence of boarding.
 回生制御部3200bは、検出部3100bの判定結果に応じて、減速すべき後退における回生の有無及び回生の度合いを決定し、当該決定に応じた回生制御が行われるように可変遅延回路1025及びモータ駆動タイミング生成部1026に対する出力を行う。 The regeneration control unit 3200b determines the presence/absence of regeneration and the degree of regeneration in backward deceleration to be decelerated according to the determination result of the detection unit 3100b. It outputs to the drive timing generator 1026 .
 次に、制御部3000bの動作について、図13及び図14を用いて説明する。図13及び図14の処理については、制御周期毎に実行され、以下で用いられるフラグはオフに初期化されているものとする。 Next, the operation of the control section 3000b will be explained using FIGS. 13 and 14. FIG. 13 and 14 are executed in each control cycle, and flags used below are initialized to be OFF.
 まず、検出部3100bは、例えばモータ回転のデータに含まれる回転方向から電動アシスト自転車1が後退中であるか否かを判定する(図13:ステップS71)。後退中ではない、すなわち前進中であるか又は停車中である場合には、検出部3100bは、後退における回生を行うか否かを表すフラグをオフに設定することで、回生制御部3200bに回生を行う事象ではないことを通知する(ステップS81)。そして、処理は端子Eを介して図14の処理に移行する。 First, the detection unit 3100b determines whether or not the power-assisted bicycle 1 is moving backward, for example, from the rotation direction included in the motor rotation data (FIG. 13: step S71). When the vehicle is not in reverse, that is, when the vehicle is moving forward or stopped, the detection unit 3100b sets off a flag indicating whether or not to perform regeneration in reverse, so that the regeneration control unit 3200b performs regeneration. (step S81). Then, the processing shifts to the processing of FIG.
 一方、後退中である場合には、検出部3100bは、後退における回生を行うか否かを表すフラグがオフであるか否かを判定する(ステップS73)。当該フラグがオフである場合には、検出部3100bは、例えばモータ回転のデータから算出される後退の速度が閾値TH11(例えば4km/h)以上であるか否かを判定する(ステップS75)。 On the other hand, if the vehicle is reversing, the detection unit 3100b determines whether or not the flag indicating whether or not to perform regeneration during reversing is off (step S73). When the flag is off, the detection unit 3100b determines whether or not the reverse speed calculated from, for example, motor rotation data is equal to or greater than a threshold TH11 (eg, 4 km/h) (step S75).
 後退の速度が閾値TH11以上である場合には、検出部3100bは、後退における回生を行うか否かを表すフラグをオンに設定することで、回生制御部3200bに回生を行う事象が発生したことを通知する(ステップS77)。そして処理は、端子Eを介して図14の処理に移行する。一方、後退の速度が閾値TH11未満である場合には、そのまま処理は端子Eを介して図14の処理に移行する。 When the speed of reversing is equal to or higher than the threshold TH11, the detection unit 3100b sets on a flag indicating whether or not to regenerate in reversing, thereby indicating that an event to regenerate in the regenerative control unit 3200b has occurred. (step S77). Then, the process shifts to the process of FIG. 14 via the terminal E. On the other hand, when the backward speed is less than the threshold value TH11, the process proceeds directly to the process of FIG.
 一方、後退における回生を行うか否かを表すフラグが既にオンである場合には、検出部3100bは、例えばモータ回転のデータから算出される後退の速度が閾値TH12(例えば3km/s)以下であるか否かを判定する(ステップS79)。閾値TH11と閾値TH12とが異なるのは、速度が少し変化しただけでフラグがオンオフされるのを防止し、本ステップにおいて後退が減速傾向にあるのか否かを判断するためである。後退の速度が閾値TH12を超えている場合には、処理は端子Eを介して図14の処理に移行する。一方、後退の速度が閾値TH12以下である場合には、検出部3100bは、後退における回生を行うか否かを表すフラグをオフに設定することで、回生制御部3200bに回生を行う事象ではないことを通知する(ステップS81)。そして、処理は端子Eを介して図14の処理に移行する。 On the other hand, if the flag indicating whether or not to regenerate in reverse is already on, the detection unit 3100b detects that the reverse speed calculated from the motor rotation data is a threshold value TH12 (for example, 3 km/s) or less. It is determined whether or not there is (step S79). The reason why the threshold TH11 and the threshold TH12 are different is to prevent the flag from being turned on and off due to a slight change in the speed, and to determine whether or not the reverse movement tends to decelerate in this step. If the backward speed exceeds the threshold TH12, the process proceeds via terminal E to the process of FIG. On the other hand, when the reverse speed is equal to or lower than the threshold TH12, the detection unit 3100b sets off the flag indicating whether or not to perform regeneration in reverse, thereby causing the regeneration control unit 3200b to perform regeneration. (step S81). Then, the processing shifts to the processing of FIG.
 図14の処理の説明に移行して、回生制御部3200bは、フラグがオンであるか判断する(ステップS83)。フラグがオンであれば、回生制御部3200bは、後退の速度が閾値TH13(例えば6km/s)以上であるか否かを判定する(ステップS85)。後退の速度が閾値TH13以上であれば、回生制御部3200bは、回生の強度(減速度合い又は速度の抑制度合いとも呼ぶ)を表す係数に1.0を設定する(ステップS87)。そして処理はステップS93に移行する。 Moving on to the description of the processing in FIG. 14, the regeneration control unit 3200b determines whether the flag is ON (step S83). If the flag is on, the regeneration control unit 3200b determines whether or not the reverse speed is equal to or greater than a threshold TH13 (eg, 6 km/s) (step S85). If the reverse speed is equal to or higher than the threshold TH13, the regeneration control unit 3200b sets 1.0 as a coefficient representing the strength of regeneration (also referred to as the degree of deceleration or the degree of speed suppression) (step S87). Then, the process moves to step S93.
 一方、後退の速度が閾値TH13未満であれば、回生制御部3200bは、回生の強度を表す係数に、(後退の速度-TH12)/(TH13-TH12)を設定する(ステップS89)。そして処理はステップS93に移行する。このように、後退の速度が閾値TH12以上TH13未満であれば、(後退の速度-TH12)に応じて線形に係数の値が増加するようになっている。すなわち、閾値TH13未満であれば、後退の速度が速いほど回生の強度を強めるものである。 On the other hand, if the reverse speed is less than the threshold TH13, the regeneration control unit 3200b sets (reverse speed-TH12)/(TH13-TH12) as the coefficient representing the strength of regeneration (step S89). Then, the process moves to step S93. In this manner, if the reverse speed is greater than or equal to the threshold value TH12 and less than TH13, the value of the coefficient increases linearly according to (reverse speed−TH12). That is, if the vehicle is less than the threshold value TH13, the strength of regeneration is strengthened as the speed of reverse movement increases.
 一方、フラグがオフである場合には、回生制御部3200bは、回生の強度を表す係数に0を設定する(ステップS91)。そして処理はステップS93に移行する。 On the other hand, when the flag is off, the regeneration control unit 3200b sets 0 to the coefficient representing the intensity of regeneration (step S91). Then, the process moves to step S93.
 そして、回生制御部3200bは、回生の強度を表す係数に基づく回生量で、モータ105に回生を行わせる(ステップS93)。例えば、基準となる回生量を別途決定して、その回生量に係数を乗ずることで、最終的な回生量を決定する。なお、回生量は、回生によって生ずるトルクの量で規定されてもよいし、回生によって流れる電流の量で規定されてもよい。 Then, the regeneration control unit 3200b causes the motor 105 to perform regeneration with the amount of regeneration based on the coefficient representing the intensity of regeneration (step S93). For example, a reference regeneration amount is determined separately, and the regeneration amount is multiplied by a coefficient to determine the final regeneration amount. The amount of regeneration may be defined by the amount of torque generated by regeneration, or may be defined by the amount of current flowing by regeneration.
 そして、制御部3000bは、電源断が指示されるなどの理由で処理終了であるか否かを判断し(ステップS95)、処理終了でなければ処理は端子Fを介してステップS71に戻る。一方、電源断が指示されるなどの理由で処理終了であれば、回生制御部3200bは、フラグをオフに設定する(ステップS97)。そして処理を終了する。 Then, the control unit 3000b determines whether or not the process has ended due to an instruction to turn off the power (step S95). On the other hand, if the processing ends due to an instruction to turn off the power, the regeneration control unit 3200b sets the flag to off (step S97). Then the process ends.
 このように、意図しないほど速い速度で後退するような事象を検出して、その後退を減速させることができれば、安全性が高まる。 In this way, if it is possible to detect events such as unintended reversing at a faster speed and slow down the reversing, safety will increase.
[実施の形態2の変形例1]
 第2の実施の形態では、運転者が乗車していているか否かを確認することはなかったが、運転者が乗車している場合には、後退を認識した運転者が機械ブレーキを掛けるなどして停止させることを比較的容易に行うことができる。従って、第2の実施の形態の変形例1では、乗車検出センサ108が出力する信号に応じて処理をする場合について説明する。
[Modification 1 of Embodiment 2]
In the second embodiment, it is not confirmed whether or not the driver is in the vehicle. However, if the driver is in the vehicle, the driver who recognizes that the vehicle is going backwards applies a mechanical brake. can be relatively easily stopped. Therefore, in Modification 1 of the second embodiment, a case will be described in which processing is performed according to the signal output by the boarding detection sensor 108 .
 図15及び図16を用いて、本変形例における制御部3000bの動作について説明する。図15及び図16の処理については、制御周期毎に実行され、以下で用いられるフラグはオフに初期化されているものとする。 The operation of the control unit 3000b in this modified example will be described using FIGS. 15 and 16. FIG. 15 and 16 are executed in each control cycle, and the flags used below are initialized to be off.
 まず、検出部3100bは、例えばモータ回転のデータに含まれる回転方向から電動アシスト自転車1が後退中であるか否かを判定する(図15:ステップS101)。後退中ではない、すなわち前進中であるか又は停車中である場合には、検出部3100bは、後退における回生を行うか否かを表すフラグをオフに設定することで、回生制御部3200bに回生を行う事象ではないことを通知する(ステップS113)。そして、処理は端子Gを介して図16の処理に移行する。 First, the detection unit 3100b determines whether or not the power-assisted bicycle 1 is moving backward, for example, from the rotation direction included in the motor rotation data (FIG. 15: step S101). When the vehicle is not in reverse, that is, when the vehicle is moving forward or stopped, the detection unit 3100b sets off a flag indicating whether or not to perform regeneration in reverse, so that the regeneration control unit 3200b performs regeneration. (step S113). Then, the process shifts to the process of FIG. 16 via the terminal G. FIG.
 一方、後退中である場合には、検出部3100bは、後退における回生を行うか否かを表すフラグがオフであるか否かを判定する(ステップS103)。当該フラグがオフである場合には、検出部3100bは、例えばモータ回転のデータから算出される後退の速度が閾値TH21(例えば4km/h)以上であるか否かを判定する(ステップS105)。 On the other hand, if the vehicle is reversing, the detection unit 3100b determines whether or not the flag indicating whether or not to perform regeneration during reversing is off (step S103). When the flag is off, the detection unit 3100b determines whether or not the reverse speed calculated from, for example, motor rotation data is equal to or greater than a threshold TH21 (eg, 4 km/h) (step S105).
 後退の速度が閾値TH21以上である場合には、検出部3100bは、後退における回生を行うか否かを表すフラグがオンに設定することで、回生制御部3200bに回生を行う事象が発生したことを通知する(ステップS107)。そして処理は、端子Gを介して図16の処理に移行する。一方、後退の速度が閾値TH21未満である場合には、そのまま処理は端子Gを介して図16の処理に移行する。 When the speed of reversing is equal to or higher than the threshold TH21, the detection unit 3100b turns on a flag indicating whether or not to regenerate in reversing, thereby indicating that an event of regenerating in the regenerative control unit 3200b has occurred. (step S107). Then, the process shifts to the process of FIG. 16 via the terminal G. FIG. On the other hand, if the backward speed is less than the threshold value TH21, the process directly proceeds to the process of FIG.
 一方、後退における回生を行うか否かを表すフラグが既にオンである場合には、検出部3100bは、センサ入力部1023からの、乗車の有無に関するセンサ入力に基づき、運転者が電動アシスト自転車1に乗車しているか否か、即ち乗車が検出されたか否かを判断する(ステップS109)。例えば、サドルに設置された重量センサで一定以上の重量が検出された場合、サドルに設置されたスイッチがオンになった場合、運転者が乗車していると判断する。赤外線センサやカメラなどからの入力により、人がサドルに着席していることを認識した場合には、運転者が乗車していると判断する。 On the other hand, if the flag indicating whether or not to perform regeneration in reverse is already on, the detection unit 3100b detects whether the driver is riding the electrically assisted bicycle 1 based on the sensor input from the sensor input unit 1023 regarding whether or not the driver is riding. It is determined whether or not the driver is boarding the vehicle, that is, whether or not boarding is detected (step S109). For example, when a weight sensor installed on the saddle detects a weight above a certain level and a switch installed on the saddle is turned on, it is determined that the driver is on the vehicle. When it is recognized that a person is seated on the saddle by an input from an infrared sensor, a camera, or the like, it is determined that the driver is in the vehicle.
 乗車が検出された場合には、検出部3100bは、例えばモータ回転のデータから算出される後退の速度が閾値TH22(例えば3km/s)以下であるか否かを判定する(ステップS111)。閾値TH21と閾値TH22とが異なるのは、速度が少し変化しただけでフラグがオンオフされるのを防止するものである。このように乗車が検出された場合には、運転者が機械ブレーキを掛けるなどして減速することも可能であるから、後退の速度が閾値TH22を超えている場合に後退における回生を実行する。後退の速度が閾値TH22を超えている場合には、処理は端子Gを介して図16の処理に移行する。 When boarding is detected, the detection unit 3100b determines whether or not the reverse speed calculated from, for example, motor rotation data is equal to or lower than a threshold TH22 (eg, 3 km/s) (step S111). The difference between the threshold TH21 and the threshold TH22 is to prevent the flag from being turned on or off due to a slight change in speed. When boarding is detected in this way, it is possible for the driver to decelerate by applying a mechanical brake, so if the speed of reversing exceeds the threshold TH22, regeneration in reversing is executed. If the backward speed exceeds the threshold TH22, the process proceeds to the process of FIG.
 一方、後退の速度が閾値TH22以下である場合には、検出部3100bは、後退における回生を行うか否かを表すフラグをオフに設定することで、回生制御部3200bへ回生を行う事象ではないことを通知する(ステップS113)。そして、処理は端子Gを介して図16の処理に移行する。 On the other hand, when the reverse speed is equal to or lower than the threshold TH22, the detection unit 3100b sets off the flag indicating whether or not to perform regeneration in reverse, so that the regeneration control unit 3200b does not perform regeneration. (step S113). Then, the process shifts to the process of FIG. 16 via the terminal G. FIG.
 一方、乗車が検出されなかった場合には、検出部3100bは、例えばモータ回転のデータから算出される後退の速度が閾値TH24(例えば0km/s)以下であるか否かを判定する(ステップS115)。これは、十分に減速したか否かを判断するものである。運転者が乗車していない場合には運転者が機械ブレーキを掛けて即座に減速するのが難しいかもしれないためである。 On the other hand, when boarding is not detected, the detection unit 3100b determines whether or not the reverse speed calculated from, for example, motor rotation data is equal to or lower than a threshold TH24 (for example, 0 km/s) (step S115). ). This is to determine whether the vehicle has sufficiently decelerated. This is because it may be difficult for the driver to immediately decelerate by applying the mechanical brake when the driver is not in the vehicle.
 後退の速度が閾値TH24を超えている場合には、処理は端子Gを介して図16の処理に移行する。一方、後退の速度が閾値TH24以下である場合には、処理はステップS113に移行する。すなわち、フラグをオフに設定することになる。 When the backward speed exceeds the threshold TH24, the process shifts to the process of FIG. 16 via terminal G. On the other hand, when the backward speed is equal to or lower than the threshold TH24, the process proceeds to step S113. That is, the flag is set to off.
 図16の処理の説明に移行して、回生制御部3200bは、フラグがオンであるか判断する(ステップS117)。フラグがオンであれば、回生制御部3200bは、後退の速度が閾値TH23(例えば6km/s)以上であるか否かを判定する(ステップS119)。後退の速度が閾値TH23以上であれば、回生制御部3200bは、回生の強度を表す係数に1.0を設定する(ステップS121)。そして処理はステップS123に移行する。 Moving on to the description of the processing in FIG. 16, the regeneration control unit 3200b determines whether the flag is ON (step S117). If the flag is on, the regeneration control unit 3200b determines whether or not the reverse speed is equal to or greater than a threshold TH23 (eg, 6 km/s) (step S119). If the backward speed is equal to or higher than the threshold TH23, the regeneration control unit 3200b sets 1.0 as the coefficient representing the strength of regeneration (step S121). Then, the process moves to step S123.
 一方、後退の速度が閾値TH23未満であれば、回生制御部3200bは、センサ入力部1023からの、乗車の有無に関するセンサ入力に基づき、運転者が電動アシスト自転車1に乗車しているか否か、即ち乗車が検出されたか否かを判断する(ステップS127)。 On the other hand, if the reverse speed is less than the threshold TH23, the regeneration control unit 3200b determines whether the driver is riding the power-assisted bicycle 1 based on the sensor input from the sensor input unit 1023 regarding whether or not the driver is riding. That is, it is determined whether boarding has been detected (step S127).
 乗車が検出された場合には、回生制御部3200bは、回生の強度を表す係数に、(後退の速度-TH22)/(TH23-TH22)を設定する(ステップS129)。そして処理はステップS123に移行する。このように、後退の速度が閾値TH22以上TH23未満であれば、(後退の速度-TH22)に応じて線形に係数の値が増加するようになっている。すなわち、後退の速度が速いほどより回生の強度を強めるものである。 When boarding is detected, the regeneration control unit 3200b sets the coefficient representing the strength of regeneration to (reversing speed - TH22)/(TH23 - TH22) (step S129). Then, the process moves to step S123. Thus, if the reverse speed is greater than or equal to the threshold value TH22 and less than TH23, the value of the coefficient increases linearly according to (reverse speed-TH22). That is, the higher the speed of retreat, the stronger the strength of regeneration.
 一方、乗車が検出されなかった場合には、回生制御部3200bは、回生の強度を表す係数に、(後退の速度-TH24)/(TH23-TH24)を設定する(ステップS131)。そして処理はステップS123に移行する。このように、後退の速度が閾値TH24以上TH23未満であれば、(後退の速度-TH24)に応じて線形に係数の値が増加するようになっている。すなわち、後退の速度が速いほどより回生の強度を強めるものである。 On the other hand, if boarding is not detected, the regeneration control unit 3200b sets (reversing speed - TH24)/(TH23 - TH24) as the coefficient representing the intensity of regeneration (step S131). Then, the process moves to step S123. Thus, if the reverse speed is greater than or equal to the threshold value TH24 and less than TH23, the value of the coefficient increases linearly according to (reverse speed−TH24). That is, the higher the speed of retreat, the stronger the strength of regeneration.
 一方、フラグがオフである場合には、回生制御部3200bは、回生の強度を表す係数に0を設定する(ステップS133)。そして処理はステップS123に移行する。 On the other hand, if the flag is off, the regeneration control unit 3200b sets 0 to the coefficient representing the intensity of regeneration (step S133). Then, the process moves to step S123.
 そして、回生制御部3200bは、回生の強度を表す係数に基づく回生量で、モータ105に回生を行わせる(ステップS123)。例えば、基準となる回生量を別途決定して、その回生量に係数を乗ずることで、最終的な回生量を決定する。なお、回生量は、回生によって生ずるトルクの量で規定されてもよいし、回生によって流れる電流の量で規定されてもよい。 Then, the regeneration control unit 3200b causes the motor 105 to perform regeneration with the amount of regeneration based on the coefficient representing the intensity of regeneration (step S123). For example, a reference regeneration amount is determined separately, and the regeneration amount is multiplied by a coefficient to determine the final regeneration amount. The amount of regeneration may be defined by the amount of torque generated by regeneration, or may be defined by the amount of current flowing by regeneration.
 そして、制御部3000bは、電源断が指示されるなどの理由で処理終了であるか否かを判断し(ステップS125)、処理終了でなければ処理は端子Hを介してステップS101に戻る。一方、電源断が指示されるなどの理由で処理終了であれば、回生制御部3200bは、フラグをオフに設定する(ステップS135)。そして処理を終了する。 Then, the control unit 3000b determines whether or not the process has ended due to a power-off instruction or the like (step S125). On the other hand, if the processing ends due to an instruction to turn off the power, the regeneration control unit 3200b sets the flag to off (step S135). Then the process ends.
 このようにすれば、後退の速度が高い場合には後退の速度を抑制し、乗車が検出されれば、運転者の制御を念頭に比較的早期に当該抑制を停止し、乗車が検出されなかった場合には速度の抑制をより優先させるような制御が可能となる。 In this way, if the reversing speed is high, the reversing speed is suppressed, and if boarding is detected, the suppression is stopped relatively early in consideration of the driver's control, and if the boarding is not detected. In this case, it is possible to perform control that prioritizes speed suppression.
[実施の形態3]
 第1の実施の形態では、クランク回転と車輪回転との関係に基づき、減速すべき後退を検出するという一例として、クランク及び車輪の回転数を用いる例を示した。これは、電動アシスト自転車1の後退における速度に着目したものであるが、ゆっくり回転が継続する場合においても、減速すべき後退として検出すべき場合がある。以下、クランクの回転角度と、車輪の回転角度との関係に基づき、減速すべき後退を検出する例について説明する。
[Embodiment 3]
In the first embodiment, as an example of detecting backward movement to be decelerated based on the relationship between the rotation of the crank and the rotation of the wheels, the number of revolutions of the crank and the wheels is used. This is based on the speed of the power-assisted bicycle 1 in reverse, but even when the rotation continues slowly, there are cases where it should be detected as reverse to decelerate. An example of detecting backward movement to be decelerated based on the relationship between the rotation angle of the crank and the rotation angle of the wheels will be described below.
 なお、図5に示した第1の実施の形態に係る制御部3000における検出部3100の機能は、第1の実施の形態のものとは異なるが、以下では、検出部3100が、以下で述べるような検出機能を有しているものとして図17及び図18を用いて説明する。図17及び図18の処理については、制御周期毎に実行され、以下で用いられるタイマは処理の開始前には0に初期化され、フラグもオフに初期化されているものとする。 Note that the function of the detection unit 3100 in the control unit 3000 according to the first embodiment shown in FIG. 17 and 18, it is assumed that the sensor has such a detection function. The processing of FIGS. 17 and 18 is executed in each control cycle, and the timer used below is initialized to 0 and the flag is also initialized to off before the processing is started.
 まず、検出部3100は、例えばモータ回転のデータに含まれる回転方向から電動アシスト自転車1が後退中であるか否かを判定する(図17:ステップS201)。後退中ではない、すなわち前進中であるか又は停車中である場合には、検出部3100は、後退の継続を計測する第2タイマの値を0にリセットする(ステップS207)。また、検出部3100は、クランク及び車輪の回転角度を0に初期化する(ステップS213)。例えば、クランク回転センサ104から所定の回転角度毎にパルス信号が入力される場合には、逆回転角度を計測するために、当該パルス信号の数(パルス数又はエッジ数とも呼ぶ)を累積して計数するので、当該累積して計数したパルス数(又はエッジ数)を0に初期化する。同様に、モータ105から所定の回転角度毎にパルス信号(すなわちホール信号)が入力される場合には、逆回転角度を計測するために、当該パルス信号の数(パルス数又はエッジ数とも呼ぶ)を累積して計数するので、当該累積して計数したパルス数(又はエッジ数)を初期化する。さらに、検出部3100は、後退における回生を行うか否かを表すフラグをオフに設定することで、回生制御部3200に回生を行う事象ではないことを通知する(ステップS219)。そして、処理は端子Jを介して図18の処理に移行する。 First, the detection unit 3100 determines whether or not the power-assisted bicycle 1 is moving backward, for example, from the rotation direction included in the motor rotation data (FIG. 17: step S201). If the vehicle is not moving backward, that is, if the vehicle is moving forward or stopped, the detection unit 3100 resets the value of the second timer that measures the continuation of backward movement to 0 (step S207). The detection unit 3100 also initializes the rotation angles of the crank and the wheels to 0 (step S213). For example, when a pulse signal is input from the crank rotation sensor 104 at each predetermined rotation angle, the number of pulse signals (also called the number of pulses or the number of edges) is accumulated in order to measure the reverse rotation angle. Since it is counted, the number of pulses (or the number of edges) accumulated and counted is initialized to zero. Similarly, when a pulse signal (that is, a hall signal) is input from the motor 105 for each predetermined rotation angle, the number of pulse signals (also called the number of pulses or the number of edges) is used to measure the reverse rotation angle. is accumulated and counted, the accumulated counted number of pulses (or the number of edges) is initialized. Furthermore, the detection unit 3100 notifies the regeneration control unit 3200 that regeneration is not an event by setting off a flag indicating whether or not regeneration is to be performed in reverse (step S219). Then, the process shifts to the process of FIG. 18 via the terminal J.
 一方、後退中である場合には、検出部3100は、第2タイマの値を制御周期分、増分させる(ステップS203)。そして、検出部3100は、第2タイマの値が閾値TH41(例えば2秒)以上となったか否かを判断する(ステップS205)。第2タイマの値が閾値TH41未満である場合には、処理はステップS213に移行する。例えば、駐輪場において手押し操作で短時間(後に述べる変形例では短距離)切り返しをする場合などに置いては、回生による減速は不適切であるためである。 On the other hand, if the vehicle is moving backward, the detection unit 3100 increments the value of the second timer by the control period (step S203). Then, the detection unit 3100 determines whether or not the value of the second timer is equal to or greater than a threshold TH41 (for example, 2 seconds) (step S205). If the value of the second timer is less than the threshold TH41, the process proceeds to step S213. This is because deceleration by regeneration is inappropriate, for example, when turning the bicycle by pushing it by hand in a bicycle parking lot for a short time (a short distance in a modified example to be described later).
 一方、後退が閾値TH41以上継続した場合には、検出部3100は、クランクの回転角度に基づき車輪逆回転の許容角度を算出する(ステップS209)。上で述べたように、パルス数(又はエッジ数)から回転角度を得る場合には、例えば、今回の制御周期におけるクランクについてのパルス数(又はエッジ数)を計数しておき、それ以前の制御周期におけるクランクについてのパルス数(又はエッジ数)に加えることで、クランクについてのパルス数の累積値P1を算出する。なお、クランクについてのパルス数の累積値P1は、ステップS205に示した条件を満たした後の累積値となる。そして、以下の式にて、車輪逆回転の許容角度θ1を算出する。
θ1=β×P1×1パルスあたりの回転角度×ギア比
 βは、マージンを表す係数であり、例えば1.2程度の値である。クランクについての1パルスあたりの回転角度は、例えば30°である。ギア比については、第1の実施の形態で説明したとおりである。
On the other hand, if the backward movement continues for the threshold value TH41 or more, the detection unit 3100 calculates the permissible angle for reverse wheel rotation based on the rotation angle of the crank (step S209). As described above, when the rotation angle is obtained from the number of pulses (or the number of edges), for example, the number of pulses (or the number of edges) for the crank in the current control cycle is counted, and the previous control By adding to the number of pulses (or the number of edges) for the crank in the period, the cumulative value P1 of the number of pulses for the crank is calculated. Note that the cumulative value P1 of the number of pulses for the crank is the cumulative value after the condition shown in step S205 is satisfied. Then, the permissible angle θ1 for reverse wheel rotation is calculated using the following formula.
θ1=β×P1×rotational angle per pulse×gear ratio β is a coefficient representing a margin, and has a value of, for example, about 1.2. The rotation angle per pulse of the crank is 30°, for example. The gear ratio is as described in the first embodiment.
 そして、検出部3100は、実際の車輪逆回転の角度と車輪逆回転の許容角度の差であるΔ逆回転角度を算出する(ステップS211)。上で述べたように、パルス数(又はエッジ数)から回転角度を得る場合には、例えば、今回の制御周期における車輪についてのパルス数(又はエッジ数)を計数しておき、それ以前の制御周期における車輪についてのパルス数(又はエッジ数)に加えることで、車輪についてのパルス数の累積値P2を算出する。なお、車輪についてのパルス数の累積値P2は、ステップS205に示した条件を満たした後の累積値となる。そして、以下の式にて、車輪逆回転の角度θ2を算出する。
θ2=P2×1パルスあたりの回転角度
 車輪についての1パルスあたりの回転角度も、例えば30°である。本ステップでは、Δ逆回転角度=θ2-θ1で得られる。
Then, the detection unit 3100 calculates the Δ reverse rotation angle, which is the difference between the actual reverse rotation angle of the wheels and the permissible reverse rotation angle of the wheels (step S211). As described above, when the rotation angle is obtained from the number of pulses (or the number of edges), for example, the number of pulses (or the number of edges) for the wheels in the current control cycle is counted, and the previous control By adding to the number of pulses (or the number of edges) for the wheel in the period, the cumulative value P2 of the number of pulses for the wheel is calculated. Note that the cumulative value P2 of the number of pulses for the wheels is the cumulative value after the condition shown in step S205 is satisfied. Then, the wheel reverse rotation angle θ2 is calculated by the following equation.
θ2=P2×rotation angle per pulse The rotation angle per pulse of the wheels is also 30°, for example. In this step, Δreverse rotation angle=θ2−θ1 is obtained.
 さらに、検出部3100は、Δ逆回転角度が閾値TH42(例えば0°)以上であるか否かを判断する(ステップS215)。すなわち、実際の車輪逆回転の角度が、車輪逆回転の許容角度以上となっているか否かを判断している。なお、Δ逆回転角度(=車輪逆回転の角度-β×クランク逆回転の角度×ギア比)≧閾値TH42であるから、このような式を変形した各種の式が成立しているか否かを判断するようにしても良い。例えば、車輪逆回転の角度≧閾値TH42+β×クランク逆回転の角度×ギア比、といった式であっても良い。また、閾値TH42=0であれば、車輪逆回転の角度≧β×クランク逆回転の角度×ギア比となるから、車輪逆回転の角度/β≧クランク逆回転の角度×ギア比といったような式に変形しても良い。なお、βのような係数でマージンを加味するのではなく、所定の係数を加算するような形でマージンを加味するようにしても良い。 Furthermore, the detection unit 3100 determines whether or not the Δ reverse rotation angle is equal to or greater than a threshold TH42 (for example, 0°) (step S215). That is, it is determined whether or not the actual reverse wheel rotation angle is greater than or equal to the permissible wheel reverse rotation angle. Since Δ reverse rotation angle (= reverse wheel rotation angle - β x crank reverse rotation angle x gear ratio) ≥ threshold value TH42, it is determined whether various formulas obtained by modifying such formulas hold. You can make a decision. For example, a formula such as reverse wheel rotation angle≧threshold value TH42+β×crank reverse rotation angle×gear ratio may be used. Further, if the threshold value TH42=0, the reverse wheel rotation angle≧β×the reverse crank rotation angle×the gear ratio, so the formula such as the reverse wheel rotation angle/β≧the reverse crank rotation angle×the gear ratio can be transformed into Note that the margin may be added by adding a predetermined coefficient instead of adding the margin with a coefficient such as β.
 この条件を満たさない場合には、処理はステップS219に移行する。一方、ステップS215の条件が満たされている場合、すなわち減速すべき後退であると判定された場合には、検出部3100は、後退における回生を行うか否かを表すフラグをオンに設定することで、回生制御部3200へ回生を行う事象であることを通知する(ステップS217)。また、検出部3100は、Δ逆回転角度も回生制御部3200に通知する。そして処理は端子Jを介して図18の処理に移行する。 If this condition is not met, the process moves to step S219. On the other hand, if the condition of step S215 is satisfied, that is, if it is determined that the vehicle is moving backward to decelerate, the detection unit 3100 turns on a flag indicating whether or not to perform regeneration in moving backward. In step S217, the regeneration controller 3200 is notified that regeneration is to be performed (step S217). The detector 3100 also notifies the regeneration controller 3200 of the Δ reverse rotation angle. Then, the process shifts to the process of FIG. 18 via the terminal J.
 図18の処理の説明に移行して、回生制御部3200は、フラグがオンであるか判断する(ステップS221)。フラグがオフである場合には、回生制御部3200は、回生の強度を表す係数(減速度合い又は速度の抑制度合いとも呼ぶ)に0を設定する(ステップS229)。そして、処理はステップS231に移行する。一方、フラグがオンであれば、回生制御部3200は、Δ逆回転角度が閾値TH43(例えば180°)以上であるか否かを判断する(ステップS223)。Δ逆回転角度が閾値TH43未満である場合には、回生制御部3200は、回生の強度を表す係数に、(Δ逆回転角度-TH42)/(TH43-TH42)を設定する(ステップS227)。そして、処理はステップS231に移行する。 Moving on to the description of the processing in FIG. 18, the regeneration control unit 3200 determines whether the flag is ON (step S221). When the flag is off, the regeneration control unit 3200 sets 0 to a coefficient representing the strength of regeneration (also called the degree of deceleration or the degree of speed suppression) (step S229). Then, the process moves to step S231. On the other hand, if the flag is ON, regeneration control unit 3200 determines whether or not Δ reverse rotation angle is equal to or greater than threshold TH43 (for example, 180°) (step S223). When the Δ reverse rotation angle is less than the threshold TH43, the regeneration control unit 3200 sets the coefficient representing the strength of regeneration to (Δ reverse rotation angle−TH42)/(TH43−TH42) (step S227). Then, the process moves to step S231.
 一方、Δ逆回転角度が閾値TH43以上である場合には、回生制御部3200は、回生の強度を表す係数に、1.0を設定する(ステップS225)。このように、上限は設定されているが、Δ逆回転角度に応じて、回生の強度を表す係数を設定するようになっている。この例では、Δ逆回転角度の増加に応じて線形に係数の値も増加するようになっているが、非線形に増加するようにしても良い。 On the other hand, when the Δ reverse rotation angle is equal to or greater than the threshold TH43, the regeneration control unit 3200 sets the coefficient representing the strength of regeneration to 1.0 (step S225). Thus, although the upper limit is set, the coefficient representing the intensity of regeneration is set according to the Δ reverse rotation angle. In this example, the value of the coefficient increases linearly as the Δ reverse rotation angle increases, but it may also increase nonlinearly.
 そして、回生制御部3200は、回生の強度を表す係数に基づく回生量で、モータ105に回生を行わせる(ステップS231)。例えば、基準となる回生量を別途決定して、その回生量に係数を乗ずることで、最終的な回生量を決定する。なお、回生量は、回生によって生ずるトルクの量で規定されてもよいし、回生によって流れる電流の量で規定されてもよい。 Then, the regeneration control unit 3200 causes the motor 105 to perform regeneration with the amount of regeneration based on the coefficient representing the intensity of regeneration (step S231). For example, a reference regeneration amount is determined separately, and the regeneration amount is multiplied by a coefficient to determine the final regeneration amount. The amount of regeneration may be defined by the amount of torque generated by regeneration, or may be defined by the amount of current flowing by regeneration.
 そして、制御部3000は、電源断が指示されるなどの理由で処理終了であるか否かを判断し(ステップS235)、処理終了でなければ処理は端子Kを介してステップS201に戻る。一方、電源断が指示されるなどの理由で処理終了であれば、回生制御部3200は、使用したタイマを0にリセットすると共に、フラグをオフに設定する(ステップS237)。そして処理を終了する。 Then, the control unit 3000 determines whether or not the processing has ended due to an instruction to turn off the power (step S235). On the other hand, if the processing ends due to an instruction to turn off the power, the regeneration control unit 3200 resets the used timer to 0 and sets the flag to off (step S237). Then the process ends.
 このように、例えば運転者の意図しない後退を検出して、その後退を減速させることができれば、安全性が高まる。 In this way, for example, if the driver's unintended reversing can be detected and the reversing can be decelerated, safety will be enhanced.
[実施の形態3の変形例1]
 図17においては、クランク及び車輪の回転角度を計測し始める条件として、継続する後退の時間を計測していたが、継続して後退した距離を条件としても良い。例えば図17は、図19に示すように変形しても良い。
[Modification 1 of Embodiment 3]
In FIG. 17, as a condition for starting to measure the rotation angles of the crank and wheels, the time of continuous retreat was measured, but the distance of continuous retreat may be used as a condition. For example, FIG. 17 may be modified as shown in FIG.
 すなわち、ステップS203の代わりにステップS243として、検出部3100は、継続して後退した距離を算出する(ステップS243)。例えば、演算部1021のメモリには車輪の周長が記録されているものとする。また、モータ105からのホール信号に基づき、今回の制御周期における車輪についてのパルス数(又はエッジ数)を計数しておき、後退開始から直前の制御周期までの、車輪についてのパルス数(又はエッジ数)に加えることで、後退開始からの累計のパルス数(又はエッジ数)を算出する。そして、累計のパルス数(又はエッジ数)×1パルスあたりの回転角度/360°×車輪の周長にて、継続して後退した距離を算出する。制御周期毎に、当該制御周期において後退した距離を算出して、それ以前に算出された累計の距離に加算するようにしても良い。 That is, in step S243 instead of step S203, the detection unit 3100 calculates the distance of continuous retreat (step S243). For example, it is assumed that the memory of the calculation unit 1021 stores the circumference of the wheel. In addition, based on the Hall signal from the motor 105, the number of pulses (or the number of edges) for the wheels in the current control cycle is counted, and the number of pulses (or the number of edges) for the wheels from the start of backward movement to the immediately preceding control cycle is counted. number) to calculate the total number of pulses (or the number of edges) from the start of the retreat. Then, the continuous backward distance is calculated by multiplying the cumulative number of pulses (or the number of edges)×the rotation angle per pulse/360°×the circumference of the wheel. It is also possible to calculate the retreated distance in each control period and add it to the total distance calculated before that.
 また、ステップS205の代わりにステップS245として、検出部3100は、継続して後退した距離が閾値TH46(例えば2m)以上であるか否かを判断する(ステップS245)。この条件を満たす場合には、処理はステップS209に移行し、この条件を満たさない場合には、処理はステップS213に移行する。また、ステップS207の代わりにステップS247として、検出部3100は、距離情報を初期化する(ステップS247)。上の例では、累計のパルス数をゼロにするか、累計の距離を0にする。 Also, in step S245 instead of step S205, the detection unit 3100 determines whether or not the distance of continuous retreat is equal to or greater than a threshold TH46 (for example, 2 m) (step S245). If this condition is met, the process proceeds to step S209, and if this condition is not met, the process proceeds to step S213. Also, in step S247 instead of step S207, the detection unit 3100 initializes the distance information (step S247). In the above example, the cumulative number of pulses is set to zero, or the cumulative distance is set to zero.
 以上のような処理を導入することでも、第3の実施の形態と同様に、運転者の意図しない後退を検出して、当該後退を減速させることができる。 By introducing the above-described processing, it is possible to detect reversing unintended by the driver and decelerate the reversing, as in the third embodiment.
[実施の形態3の変形例2]
 第3の実施の形態及びその変形例1における図18の処理については、第1の実施の形態におけるステップS9乃至S29に類似する処理に変更しても良い。具体的には、図20に示すような処理に変更する。
[Modification 2 of Embodiment 3]
The processing of FIG. 18 in the third embodiment and its modified example 1 may be changed to processing similar to steps S9 to S29 in the first embodiment. Specifically, the process is changed to that shown in FIG.
 回生制御部3200は、フラグがオンであるか判断する(ステップS251)。フラグがオンであれば、回生制御部3200は、回生を行う事象が継続している時間を計測するための第3タイマを、制御周期分だけ増分する(ステップS253)。そして処理はステップS257に移行する。一方、フラグがオフであれば、回生制御部3200は、回生を行う事象が継続している時間を計測するための第3タイマを、0にリセットする(ステップS255)。そして処理はステップS257に移行する。 The regeneration control unit 3200 determines whether the flag is on (step S251). If the flag is ON, the regeneration control unit 3200 increments the third timer for measuring the duration of the regeneration event by the control period (step S253). Then, the process moves to step S257. On the other hand, if the flag is off, the regeneration control unit 3200 resets to 0 the third timer for measuring the duration of the regeneration event (step S255). Then, the process moves to step S257.
 回生制御部3200は、第3タイマの値が、閾値TH51(例えば2秒)以上となったか否かを判断する(ステップS257)。第3タイマの値<閾値TH51であれば、回生制御部3200は、回生の強度を表す係数に0を設定する(ステップS265)。そして処理はステップS267に移行する。このように、第3タイマの値が例えば2秒未満であれば、回生は行われない。閾値TH51は、閾値TH1よりも短くても良いし、同程度であっても良い。 The regeneration control unit 3200 determines whether or not the value of the third timer is equal to or greater than the threshold TH51 (for example, 2 seconds) (step S257). If the value of the third timer<threshold value TH51, the regeneration control unit 3200 sets 0 to the coefficient representing the strength of regeneration (step S265). The process then proceeds to step S267. Thus, if the value of the third timer is less than 2 seconds, for example, no regeneration is performed. The threshold TH51 may be shorter than or substantially equal to the threshold TH1.
 一方、第3タイマの値≧閾値TH51であれば、回生制御部3200は、第3タイマの値が、閾値TH52(例えば5秒)以上であるか否かを判断する(ステップS259)。第3タイマの値<閾値TH52であれば、回生制御部3200は、回生の強度を表す係数に、(第3タイマの値-TH51)/(TH52-TH51)を設定する(ステップS263)。そして処理はステップS267に移行する。このように、第3タイマの値が例えば2秒以上5秒未満であれば、(第3タイマの値-TH51)に応じて線形に係数の値が増加するようになっている。但し、線形でなく非線形に変化させても良い。なお、閾値TH52は、閾値TH2よりも短くても良いし、同程度であっても良い。 On the other hand, if the value of the third timer≧threshold TH51, the regeneration control unit 3200 determines whether the value of the third timer is equal to or greater than the threshold TH52 (for example, 5 seconds) (step S259). If the third timer value<threshold TH52, the regeneration control unit 3200 sets (third timer value−TH51)/(TH52−TH51) as the coefficient representing the intensity of regeneration (step S263). The process then proceeds to step S267. In this way, if the value of the third timer is, for example, 2 seconds or more and less than 5 seconds, the value of the coefficient increases linearly according to (the value of the third timer - TH51). However, it may be changed non-linearly instead of linearly. Note that the threshold TH52 may be shorter than the threshold TH2, or may be approximately the same.
 一方、第3タイマの値≧閾値TH52であれば、回生制御部3200は、回生の強度を表す係数に、1.0を設定する(ステップS261)。 On the other hand, if the value of the third timer≧threshold TH52, the regeneration control unit 3200 sets 1.0 as the coefficient representing the intensity of regeneration (step S261).
 そして、回生制御部3200は、回生の強度を表す係数に基づく回生量で、モータ105に回生を行わせる(ステップS267)。例えば、基準となる回生量を別途決定して、その回生量に係数を乗ずることで、最終的な回生量を決定する。なお、回生量は、回生によって生ずるトルクの量で規定されてもよいし、回生によって流れる電流の量で規定されてもよい。 Then, the regeneration control unit 3200 causes the motor 105 to perform regeneration with the amount of regeneration based on the coefficient representing the intensity of regeneration (step S267). For example, a reference regeneration amount is determined separately, and the regeneration amount is multiplied by a coefficient to determine the final regeneration amount. The amount of regeneration may be defined by the amount of torque generated by regeneration, or may be defined by the amount of current flowing by regeneration.
 そして、制御部3000は、電源断が指示されるなどの理由で処理終了であるか否かを判断し(ステップS269)、処理終了でなければ処理は端子Kを介してステップS201に戻る。一方、電源断が指示されるなどの理由で処理終了であれば、回生制御部3200は、使用したタイマを0にリセットすると共に、フラグをオフに設定する(ステップS271)。そして処理を終了する。 Then, the control unit 3000 determines whether or not the process has ended due to an instruction to turn off the power, etc. (step S269). On the other hand, if the processing ends due to an instruction to turn off the power, the regeneration control unit 3200 resets the used timer to 0 and sets the flag to off (step S271). Then the process ends.
 このように、例えば運転者の意図しない後退を検出して、その後退を減速させることができれば、安全性が高まる。 In this way, for example, if the driver's unintended reversing can be detected and the reversing can be decelerated, safety will be enhanced.
[実施の形態3の変形例3]
 第3の実施の形態及びその変形例1における図18の処理については、第1の実施の形態の変形例2におけるステップS9乃至S59に類似する処理に変更しても良い。具体的には、図21に示すような処理に変更する。
[Modification 3 of Embodiment 3]
The processing of FIG. 18 in the third embodiment and its modification 1 may be changed to processing similar to steps S9 to S59 in modification 2 of the first embodiment. Specifically, the process is changed to that shown in FIG.
 回生制御部3200は、後退における回生を行うか否かを表すフラグがオンであるか判断する(ステップS281)。フラグがオンであれば、回生制御部3200は、継続して後退した距離を算出する(ステップS283)。このステップは、ステップS243と同様である。但し、ステップS243では後退を検出すると距離を累積するが、本ステップでは、フラグがオンになると距離を累積することになる。もし、第1の実施の形態の変形1について、本処理を適用する場合には、ステップS243と本ステップとは別々に距離を算出する。そして処理は、ステップS287に移行する。 The regeneration control unit 3200 determines whether a flag indicating whether or not to perform regeneration in reverse is on (step S281). If the flag is on, the regeneration control unit 3200 calculates the distance of continuous retreat (step S283). This step is similar to step S243. However, although the distance is accumulated when the backward movement is detected in step S243, the distance is accumulated when the flag is turned on in this step. If this process is applied to Modification 1 of the first embodiment, the distance is calculated separately in step S243 and this step. The process then proceeds to step S287.
 一方、後退における回生を行うか否かを表すフラグがオフであれば、回生制御部3200は、距離情報を初期化する(ステップS285)。本ステップも、ステップS247と同様である。もし、第1の実施の形態の変形例1について、本処理を適用する場合には、ステップS247ではステップS243についての距離情報を初期化するが、本ステップではステップS283についての距離情報を初期化する。そして処理は、ステップS287に移行する。 On the other hand, if the flag indicating whether or not to perform regeneration in reverse is off, the regeneration control unit 3200 initializes the distance information (step S285). This step is also the same as step S247. If this process is applied to modification 1 of the first embodiment, the distance information for step S243 is initialized in step S247, but the distance information for step S283 is initialized in this step. do. The process then proceeds to step S287.
 そして、回生制御部3200は、継続して後退した距離が閾値TH61(例えば1m)以上であるか否かを判断する(ステップS287)。継続して後退した距離<閾値TH61であれば、回生制御部3200は、回生の強度を表す係数を0に設定する(ステップS295)。そして処理はステップS297に移行する。このように、継続して後退した距離が1m未満であれば、回生は行われない。なお、閾値TH61は、閾値TH31より短くても良いし、同程度であっても良い。 Then, the regeneration control unit 3200 determines whether or not the distance of continuous retreat is equal to or greater than a threshold TH61 (for example, 1 m) (step S287). If the distance of continuous retreat<threshold value TH61, the regeneration control unit 3200 sets the coefficient representing the intensity of regeneration to 0 (step S295). The process then proceeds to step S297. In this way, regeneration is not performed if the distance of continuous retreat is less than 1 m. Note that the threshold TH61 may be shorter than the threshold TH31, or may be approximately the same.
 一方、継続して後退した距離≧閾値TH61であれば、回生制御部3200は、継続して後退した距離が閾値TH62(例えば、3m)以上であるか否かを判断する(ステップS289)。なお、閾値TH62は、閾値TH32よりも短くても良いし、同程度であっても良い。継続して後退した距離<閾値TH62であれば、回生制御部3200は、回生の強度を表す係数に、(継続して後退した距離-TH61)/(TH62-TH61)を設定する(ステップS293)。そして処理はステップS297に移行する。このように、継続して後退した距離が1m以上3m未満であれば、(継続して後退した距離-TH61)に応じて線形に係数の値が増加するようになっている。但し、線形ではなく、非線形であっても良い。 On the other hand, if the continuously retreated distance≧threshold TH61, the regeneration control unit 3200 determines whether the continuously retreated distance is equal to or greater than the threshold TH62 (for example, 3 m) (step S289). Note that the threshold TH62 may be shorter than the threshold TH32, or may be approximately the same. If the distance of continuous retreat<threshold TH62, the regeneration control unit 3200 sets the coefficient representing the intensity of regeneration to (distance of continuous retreat-TH61)/(TH62-TH61) (step S293). . The process then proceeds to step S297. Thus, if the distance of continuous retreat is 1 m or more and less than 3 m, the value of the coefficient increases linearly according to (distance of continuous retreat - TH61). However, it may be non-linear instead of linear.
 一方、継続して後退した距離≧閾値TH62であれば、回生制御部3200は、回生の強度を表す係数に、1.0を設定する(ステップS291)。 On the other hand, if the continuously retreated distance≧threshold value TH62, the regeneration control unit 3200 sets 1.0 as the coefficient representing the intensity of regeneration (step S291).
 そして、回生制御部3200は、回生の強度を表す係数に基づく回生量で、モータ105に回生を行わせる(ステップS297)。例えば、基準となる回生量を別途決定して、その回生量に係数を乗ずることで、最終的な回生量を決定する。なお、回生量は、回生によって生ずるトルクの量で規定されてもよいし、回生によって流れる電流の量で規定されてもよい。 Then, the regeneration control unit 3200 causes the motor 105 to perform regeneration with the amount of regeneration based on the coefficient representing the intensity of regeneration (step S297). For example, a reference regeneration amount is determined separately, and the regeneration amount is multiplied by a coefficient to determine the final regeneration amount. The amount of regeneration may be defined by the amount of torque generated by regeneration, or may be defined by the amount of current flowing by regeneration.
 そして、制御部3000は、電源断が指示されるなどの理由で処理終了であるか否かを判断し(ステップS299)、処理終了でなければ処理は端子Kを介してステップS201に戻る。一方、電源断が指示されるなどの理由で処理終了であれば、回生制御部3200は、継続して後退した距離を0にリセットすると共に、フラグをオフに設定する(ステップS301)。そして処理を終了する。 Then, the control unit 3000 determines whether or not the process has ended due to an instruction to turn off the power (step S299). On the other hand, if the process ends due to an instruction to turn off the power, the regeneration control unit 3200 resets the distance of continuous retreat to 0 and sets the flag to OFF (step S301). Then the process ends.
 このように、例えば運転者の意図しない後退を検出して、その後退を減速させることができれば、安全性が高まる。 In this way, for example, if the driver's unintended reversing can be detected and the reversing can be decelerated, safety will be enhanced.
[実施の形態1の変形例4]
 第1の実施の形態では、減速すべき後退であるか否かを、後退を検出すると直ぐに判定するような処理例を示したが、第3の実施の形態(図17)と同様に、先に後退が継続する時間を計測してから、減速すべき後退であるか否かを判定するようにしても良い。具体的には、図6に代って、図22に示すような処理を実行する。
[Modification 4 of Embodiment 1]
In the first embodiment, an example of processing is shown in which it is determined whether or not the vehicle is moving backward to decelerate immediately upon detection of the backward movement. It is also possible to determine whether or not the vehicle should decelerate in reverse after measuring the time for which the reverse continues. Specifically, instead of FIG. 6, the process shown in FIG. 22 is executed.
 すなわち、ステップS1とステップS3の間に、図17に示したステップS203乃至S207を挿入する。具体的には、ステップS1で後退中ではない、すなわち前進中であるか又は停車中であると判定された場合には、検出部3100は、後退の継続を計測する第2タイマの値を0にリセットする(ステップS207)。そして処理はステップS7に移行する。 That is, steps S203 to S207 shown in FIG. 17 are inserted between steps S1 and S3. Specifically, when it is determined in step S1 that the vehicle is not moving backward, that is, the vehicle is moving forward or stopped, the detection unit 3100 sets the value of the second timer that measures the continuation of backward movement to 0. (step S207). Then, the process moves to step S7.
 一方、後退中である場合には、検出部3100は、第2タイマの値を制御周期分、増分させる(ステップS203)。そして、検出部3100は、第2タイマの値が閾値TH41(例えば2秒)以上となったか否かを判断する(ステップS205)。第2タイマの値が閾値TH41未満であれば、処理はステップS7に移行する。一方、第2タイマの値が閾値TH41以上である場合には、処理はステップS3に移行して、減速すべき後退であるか否かを判断する。 On the other hand, if the vehicle is moving backward, the detection unit 3100 increments the value of the second timer by the control period (step S203). Then, the detection unit 3100 determines whether or not the value of the second timer is equal to or greater than a threshold TH41 (for example, 2 seconds) (step S205). If the value of the second timer is less than the threshold TH41, the process proceeds to step S7. On the other hand, when the value of the second timer is equal to or greater than the threshold value TH41, the process proceeds to step S3 to determine whether or not the vehicle should be reversed to decelerate.
 なお、第1の実施の形態における図7の処理で使用される閾値TH1は、例えば3秒であったが、本変形例では、先に閾値TH41分だけ後退を許容するようになっているので、閾値TH1を2秒にするといったように短く設定するようにしても良い。同様に、閾値TH2も、例えば6秒であったが、本変形例では閾値TH2を5秒にするといったように短くするようにしても良い。 Note that the threshold TH1 used in the processing of FIG. 7 in the first embodiment was, for example, 3 seconds, but in this modified example, the backward movement is permitted by the threshold TH41 first. , the threshold TH1 may be set to 2 seconds. Similarly, the threshold TH2 was set to, for example, 6 seconds, but in this modified example, the threshold TH2 may be shortened to 5 seconds.
[実施の形態1の変形例5]
 第1の実施の形態の変形例4では、図6におけるステップS1とステップS3の間に、図17に示したステップS203乃至S207を挿入する例を示したが、第1の実施の形態の変形例2についての図9においても、図22で示したように、ステップS1乃至ステップS3の間に、図17に示したステップS203乃至S207を挿入しても良い。
[Modification 5 of Embodiment 1]
In the modification 4 of the first embodiment, steps S203 to S207 shown in FIG. 17 are inserted between steps S1 and S3 in FIG. 6, but the modification of the first embodiment Also in FIG. 9 for example 2, steps S203 to S207 shown in FIG. 17 may be inserted between steps S1 to S3 as shown in FIG.
[実施の形態1の変形例6]
 第1の実施の形態では、減速すべき後退であるか否かを、後退を検出すると直ぐに判定するような処理例を示したが、第3の実施の形態の変形例1(図19)と同様に、先に継続して後退した距離を計測してから、減速すべき後退であるか否かを判定するようにしても良い。具体的には、図6に代って、図23に示すような処理を実行する。
[Modification 6 of Embodiment 1]
In the first embodiment, an example of processing is shown in which it is determined whether or not the vehicle is moving backwards to decelerate immediately upon detection of backwards movement. Similarly, it is also possible to first measure the distance that the vehicle has continuously moved backward, and then determine whether or not the vehicle should decelerate. Specifically, instead of FIG. 6, the process shown in FIG. 23 is executed.
 すなわち、ステップS1とステップS3の間に、図19に示したステップS243乃至S247を挿入する。具体的には、ステップS1で後退中ではない、すなわち前進中であるか又は停車中であると判定された場合には、検出部3100は、距離情報を初期化する(ステップS247)。そして処理はステップS7に移行する。 That is, steps S243 to S247 shown in FIG. 19 are inserted between steps S1 and S3. Specifically, when it is determined in step S1 that the vehicle is not moving backward, that is, the vehicle is moving forward or stopped, the detection unit 3100 initializes the distance information (step S247). Then, the process moves to step S7.
 一方、後退中である場合には、検出部3100は、継続して後退した距離を算出する(ステップS243)。そして、検出部3100は、継続して後退した距離が閾値TH46以上であるか否かを判断する(ステップS245)。継続して後退した距離が閾値TH46未満であれば、処理はステップS7に移行する。一方、継続して後退した距離が閾値TH46以上であれば、処理はステップS3に移行して、減速すべき後退であるか否かを判断する。 On the other hand, if the vehicle is moving backward, the detection unit 3100 calculates the distance that the vehicle continues to move backward (step S243). Then, the detection unit 3100 determines whether or not the distance that the vehicle has continuously retreated is equal to or greater than the threshold TH46 (step S245). If the continuously retreated distance is less than the threshold TH46, the process proceeds to step S7. On the other hand, if the distance that the vehicle has continuously moved backward is equal to or greater than the threshold value TH46, the process proceeds to step S3 to determine whether or not the backward movement should be decelerated.
[実施の形態1の変形例7]
 第1の実施の形態の変形例6では、図6におけるステップS1とステップS3の間に、図19に示したステップS243乃至S247を挿入する例を示したが、第1の実施の形態の変形例2についての図9においても、図23で示したように、ステップS1乃至ステップS3の間に、図19に示したステップS243乃至S247を挿入しても良い。
[Modification 7 of Embodiment 1]
In the sixth modification of the first embodiment, steps S243 to S247 shown in FIG. 19 are inserted between steps S1 and S3 in FIG. 6, but the modification of the first embodiment Also in FIG. 9 for example 2, steps S243 to S247 shown in FIG. 19 may be inserted between steps S1 to S3 as shown in FIG.
 なお、第1の実施の形態における図10の処理で使用される閾値TH31は、例えば2mであったが、本変形例では、先に閾値TH46分だけ後退を許容するようになっているので、閾値TH31を1mにするといったように短く設定するようにしても良い。同様に、閾値TH32も、例えば4mであったが、本変形例では閾値TH32を3mにするといったように短くするようにしても良い。 Note that the threshold TH31 used in the process of FIG. 10 in the first embodiment was, for example, 2 m, but in this modified example, the backward movement is permitted by the threshold TH46 first. The threshold TH31 may be set to a short value such as 1 m. Similarly, the threshold TH32 was set to, for example, 4 m, but in this modified example, the threshold TH32 may be shortened to 3 m.
[実施の形態1の変形例8]
 第1の実施の形態の変形例3では、運転者による乗車の有無を、後退を検出すると直ぐに判定するような処理例を示したが、第3の実施の形態(図17)と同様に、先に後退が継続する時間を計測してから、運転者による乗車を検出したり、減速すべき後退であるか否かを判定するようにしても良い。具体的には、図11に代って、図24に示すような処理を実行する。
[Modification 8 of Embodiment 1]
In the modification 3 of the first embodiment, a processing example is shown in which it is determined whether or not the driver is getting into the vehicle as soon as the backward movement is detected. It is also possible to first measure the time during which reverse movement continues, and then detect the driver's boarding, or determine whether or not the reverse movement should be decelerated. Specifically, instead of FIG. 11, the process shown in FIG. 24 is executed.
 すなわち、ステップS1とステップS61の間に、図17に示したステップS203乃至S207を挿入する。具体的には、ステップS1で後退中ではない、すなわち前進中であるか又は停車中であると判定された場合には、検出部3100は、後退の継続を計測する第2タイマの値を0にリセットする(ステップS207)。そして処理はステップS7に移行する。 That is, steps S203 to S207 shown in FIG. 17 are inserted between steps S1 and S61. Specifically, when it is determined in step S1 that the vehicle is not moving backward, that is, the vehicle is moving forward or stopped, the detection unit 3100 sets the value of the second timer that measures the continuation of backward movement to 0. (step S207). Then, the process moves to step S7.
 一方、後退中である場合には、検出部3100は、第2タイマの値を制御周期分、増分させる(ステップS203)。そして、検出部3100は、第2タイマの値が閾値TH41(例えば2秒)以上となったか否かを判断する(ステップS205)。第2タイマの値が閾値TH41未満であれば、処理はステップS7に移行する。一方、第2タイマの値が閾値TH41以上である場合には、処理はステップS61に移行して、検出部3100は、センサ入力部1023からの、乗車の有無に関するセンサ入力に基づき、運転者が電動アシスト自転車1に乗車しているか否か、即ち乗車が検出されたか否かを判断する(ステップS61)。 On the other hand, if the vehicle is moving backward, the detection unit 3100 increments the value of the second timer by the control period (step S203). Then, the detection unit 3100 determines whether or not the value of the second timer is equal to or greater than a threshold TH41 (for example, 2 seconds) (step S205). If the value of the second timer is less than the threshold TH41, the process proceeds to step S7. On the other hand, if the value of the second timer is equal to or greater than the threshold TH41, the process proceeds to step S61, and the detection unit 3100 detects whether or not the driver has boarded based on the sensor input from the sensor input unit 1023. It is determined whether or not the rider is riding on the electrically assisted bicycle 1, that is, whether or not riding has been detected (step S61).
[実施の形態1の変形例9]
 第1の実施の形態の変形例8では、図11におけるステップS1とステップS61の間に、図17に示したステップS203乃至S207を挿入する例を示したが、第1の実施の形態の変形例1についての図8においても、図24で示したように、ステップS1乃至ステップS31の間に、図17に示したステップS203乃至S207を挿入しても良い。
[Modification 9 of Embodiment 1]
In the eighth modification of the first embodiment, steps S203 to S207 shown in FIG. 17 are inserted between steps S1 and S61 in FIG. 11, but the modification of the first embodiment Also in FIG. 8 for example 1, steps S203 to S207 shown in FIG. 17 may be inserted between steps S1 to S31 as shown in FIG.
[実施の形態1の変形例10]
 第1の実施の形態の変形例3では、運転者による乗車の有無を、後退を検出すると直ぐに判定するような処理例を示したが、第3の実施の形態の変形例1(図19)と同様に、先に継続して後退した距離を計測してから、運転者による乗車を検出したり、減速すべき後退であるか否かを判定するようにしても良い。具体的には、図11に代って、図25に示すような処理を実行する。
[Modification 10 of Embodiment 1]
In modification 3 of the first embodiment, a processing example was shown in which it is determined whether or not the driver is getting into the vehicle immediately upon detection of backward movement, but modification 1 of the third embodiment (FIG. 19) Similarly, it is also possible to first measure the distance that the vehicle has continuously moved backward, and then detect that the vehicle is getting on by the driver, or determine whether or not the vehicle is moving backward to decelerate. Specifically, instead of FIG. 11, the process shown in FIG. 25 is executed.
 すなわち、ステップS1とステップS61の間に、図19に示したステップS243乃至S247を挿入する。具体的には、ステップS1で後退中ではない、すなわち前進中であるか又は停車中であると判定された場合には、検出部3100は、距離情報を初期化する(ステップS247)。そして処理はステップS7に移行する。 That is, steps S243 to S247 shown in FIG. 19 are inserted between steps S1 and S61. Specifically, when it is determined in step S1 that the vehicle is not moving backward, that is, the vehicle is moving forward or stopped, the detection unit 3100 initializes the distance information (step S247). Then, the process moves to step S7.
 一方、後退中である場合には、検出部3100は、継続して後退した距離を算出する(ステップS243)。そして、検出部3100は、継続して後退した距離が閾値TH46以上であるか否かを判断する(ステップS245)。継続して後退した距離が閾値TH46未満であれば、処理はステップS7に移行する。一方、継続して後退した距離が閾値TH46以上であれば、処理はステップS61に移行して、検出部3100は、センサ入力部1023からの、乗車の有無に関するセンサ入力に基づき、運転者が電動アシスト自転車1に乗車しているか否か、即ち乗車が検出されたか否かを判断する(ステップS61)。 On the other hand, if the vehicle is moving backward, the detection unit 3100 calculates the distance that the vehicle continues to move backward (step S243). Then, the detection unit 3100 determines whether or not the distance that the vehicle has continuously retreated is equal to or greater than the threshold TH46 (step S245). If the continuously retreated distance is less than the threshold TH46, the process proceeds to step S7. On the other hand, if the distance that the driver has moved back continuously is equal to or greater than the threshold value TH46, the process proceeds to step S61, and the detection unit 3100 detects whether or not the driver is driving based on the sensor input from the sensor input unit 1023 regarding whether or not the driver is riding. It is determined whether or not the user is riding on the assist bicycle 1, that is, whether or not riding has been detected (step S61).
 なお、ステップS243において計測される距離は、ステップS41において計測される距離とは、計測開始タイミングが異なるので異なっている。 Note that the distance measured in step S243 is different from the distance measured in step S41 because the measurement start timing is different.
[実施の形態1の変形例11]
 第1の実施の形態の変形例10では、図11におけるステップS1とステップS61の間に、図19に示したステップS243乃至S247を挿入する例を示したが、第1の実施の形態の変形例1についての図8においても、図25で示したように、ステップS1乃至ステップS31の間に、図19に示したステップS243乃至S247を挿入しても良い。
[Modification 11 of Embodiment 1]
In the tenth modification of the first embodiment, steps S243 to S247 shown in FIG. 19 are inserted between steps S1 and S61 in FIG. 11, but the modification of the first embodiment Also in FIG. 8 for example 1, steps S243 to S247 shown in FIG. 19 may be inserted between steps S1 to S31 as shown in FIG.
[実施の形態4]
 第3の実施の形態における、回生の強度を表す係数を設定する処理(図18)と同様の処理を、第1の実施の形態における各種変形例に適用するようにしても良い。この場合、ステップS9以降の処理を、図26に示すような端子M以降の処理に置換する。
[Embodiment 4]
A process similar to the process (FIG. 18) of setting the coefficient representing the intensity of regeneration in the third embodiment may be applied to various modifications of the first embodiment. In this case, the processing after step S9 is replaced with the processing after terminal M as shown in FIG.
 すなわち、回生制御部3200は、フラグがオンであるか判断する(図26:ステップS221)。フラグがオフである場合には、回生制御部3200は、検出部3100から通知されるクランク及び車輪の回転角度を0に初期化する(ステップS305)。このステップはステップS213と同様である。そして、回生制御部3200は、回生の強度を表す係数を0に設定する(ステップS229)。そして、処理はステップS231に移行する。 That is, the regeneration control unit 3200 determines whether the flag is on ( FIG. 26 : step S221). When the flag is off, the regeneration control unit 3200 initializes the rotation angles of the crank and the wheels notified from the detection unit 3100 to 0 (step S305). This step is similar to step S213. Regeneration control unit 3200 then sets the coefficient representing the intensity of regeneration to 0 (step S229). Then, the process moves to step S231.
 一方、フラグがオンであれば、回生制御部3200は、検出部3100から通知されたクランクの回転角度に基づき車輪逆回転の許容角度を算出する(ステップS301)。本ステップは、ステップS209と同様である。そして、回生制御部3200は、検出部3100から通知される実際の車輪逆回転の角度と車輪逆回転の許容角度の差であるΔ逆回転角度を算出する(ステップS303)。本ステップは、ステップS211と同様である。 On the other hand, if the flag is ON, the regeneration control unit 3200 calculates the permissible angle for reverse wheel rotation based on the rotation angle of the crank notified from the detection unit 3100 (step S301). This step is the same as step S209. Then, the regeneration control unit 3200 calculates the Δ reverse rotation angle, which is the difference between the actual reverse rotation angle of the wheels notified from the detection unit 3100 and the permissible reverse rotation angle of the wheels (step S303). This step is the same as step S211.
 そして、回生制御部3200は、Δ逆回転角度が閾値TH43(例えば180°)以上であるか否かを判断する(ステップS223)。Δ逆回転角度が閾値TH43未満である場合には、回生制御部3200は、回生の強度を表す係数に、(Δ逆回転角度-TH42)/(TH43-TH42)を設定する(ステップS227)。そして、処理はステップS231に移行する。 Then, the regeneration control unit 3200 determines whether or not the Δ reverse rotation angle is equal to or greater than the threshold TH43 (for example, 180°) (step S223). When the Δ reverse rotation angle is less than the threshold TH43, the regeneration control unit 3200 sets the coefficient representing the strength of regeneration to (Δ reverse rotation angle−TH42)/(TH43−TH42) (step S227). Then, the process moves to step S231.
 一方、Δ逆回転角度が閾値TH43以上である場合には、回生制御部3200は、回生の強度を表す係数に、1.0を設定する(ステップS225)。 On the other hand, when the Δ reverse rotation angle is equal to or greater than the threshold TH43, the regeneration control unit 3200 sets the coefficient representing the strength of regeneration to 1.0 (step S225).
 そして、回生制御部3200は、回生の強度を表す係数に基づく回生量で、モータ105に回生を行わせる(ステップS231)。例えば、基準となる回生量を別途決定して、その回生量に係数を乗ずることで、最終的な回生量を決定する。なお、回生量は、回生によって生ずるトルクの量で規定されてもよいし、回生によって流れる電流の量で規定されてもよい。 Then, the regeneration control unit 3200 causes the motor 105 to perform regeneration with the amount of regeneration based on the coefficient representing the intensity of regeneration (step S231). For example, a reference regeneration amount is determined separately, and the regeneration amount is multiplied by a coefficient to determine the final regeneration amount. The amount of regeneration may be defined by the amount of torque generated by regeneration, or may be defined by the amount of current flowing by regeneration.
 そして、制御部3000は、電源断が指示されるなどの理由で処理終了であるか否かを判断し(ステップS235)、処理終了でなければ処理は端子B又はDを介して端子Mより前の処理に戻る。一方、電源断が指示されるなどの理由で処理終了であれば、回生制御部3200は、使用したタイマ等をリセットすると共に、フラグをオフに設定する(ステップS307)。そして処理を終了する。 Then, the control unit 3000 determines whether or not the process has ended due to an instruction to turn off the power, etc. (step S235). return to the process of On the other hand, if the processing ends due to an instruction to turn off the power, the regeneration control unit 3200 resets the used timer or the like and sets the flag to off (step S307). Then the process ends.
 このように、Δ逆回転角度に基づいて、回生の強度を決定するようにしても良い。なお、本実施の形態の場合には、フラグがオンになってから逆回転の角度が累積されるようになる。 In this way, the intensity of regeneration may be determined based on the Δ reverse rotation angle. In the case of this embodiment, the reverse rotation angle is accumulated after the flag is turned on.
 以上本発明の実施の形態を説明したが、本発明はこれに限定されるものではない。例えば、目的に応じて、上で述べた各実施の形態における任意の技術的特徴を削除するようにしても良いし、他の実施の形態で述べた任意の技術的特徴を追加するようにしても良い。    Although the embodiment of the present invention has been described above, the present invention is not limited to this. For example, depending on the purpose, any technical feature in each embodiment described above may be deleted, or any technical feature described in other embodiments may be added. Also good.   
 さらに、上で述べた機能ブロック図は一例であって、1の機能ブロックを複数の機能ブロックに分けても良いし、複数の機能ブロックを1つの機能ブロックに統合しても良い。処理フローについても、処理内容が変わらない限り、ステップの順番を入れ替えたり、複数のステップを並列に実行するようにしても良い。 Furthermore, the functional block diagram described above is an example, and one functional block may be divided into a plurality of functional blocks, or a plurality of functional blocks may be integrated into one functional block. As for the processing flow, the order of the steps may be changed, or a plurality of steps may be executed in parallel, as long as the content of the processing does not change.
 以上述べた実施の形態をまとめると以下のようになる。 The above embodiments can be summarized as follows.
 本実施の形態に係る第1のモータ制御装置は、(A)前輪と後輪で3以上の車輪とクランクとモータとを有する電動アシスト車におけるクランク回転と車輪回転との関係に基づき、減速すべき後退を検出する検出部(例えば、実施の形態における検出部3100)と、(B)検出部が上記後退を検出した場合、上記後退の速度を抑制する(例えば後退を減速させる)ようにモータを制御する制御部(例えば、実施の形態における回生制御部3200)とを有する。 A first motor control device according to the present embodiment provides (A) a power-assisted vehicle having three or more front and rear wheels, a crank, and a motor, based on the relationship between the rotation of the crank and the rotation of the wheel. (B) a motor that controls the speed of the retraction (for example, slows down the retraction) when the detection unit detects the retraction (for example, the detector 3100 in the embodiment) that detects retraction; and a control unit (for example, the regeneration control unit 3200 in the embodiment) that controls the .
 運転者の意図しない後退は、クランク回転と車輪回転との関係に基づき、減速すべき後退として検出でき、適切に減速することができるようになる。なお、回生を用いても良いし、他の手段を用いるようにしても良い。 Unintentional reversing by the driver can be detected as reversing that should be decelerated based on the relationship between crank rotation and wheel rotation, enabling appropriate deceleration. Note that regeneration may be used, or other means may be used.
 なお、上で述べた検出部は、所定のマージンを加味した上で、逆回転方向における車輪の回転角度(例えば、実施の形態におけるθ2)が、逆回転方向におけるクランクの回転角度(例えば、実施の形態におけるθ1)とギア比との積以上であることを確認するための式(例えば、実施の形態におけるΔ逆回転角度の算出式)に基づき、上記後退を検出するようにしても良い。このように、逆回転方向における車輪の回転角度と逆回転方向におけるクランクの回転角度との関係に基づき、減速すべき後退を検出するようにしても良い。なお、上記式は、実施の形態で示した式だけではなく、様々な形に変形するようにしても良く、マージンについても乗算で加味しても良いし、加算で加味しても良い。 It should be noted that the above-described detection unit determines that the rotation angle of the wheel in the reverse rotation direction (for example, θ2 in the embodiment) is equal to the rotation angle of the crank in the reverse rotation direction (for example, The reverse rotation may be detected based on an equation for confirming that the product of θ1) in the embodiment and the gear ratio is greater than or equal to the gear ratio (for example, the equation for calculating the Δ reverse rotation angle in the embodiment). In this manner, reverse movement to be decelerated may be detected based on the relationship between the wheel rotation angle in the reverse rotation direction and the crank rotation angle in the reverse rotation direction. It should be noted that the above formula is not limited to the formula shown in the embodiment, and may be modified in various forms, and the margin may be added by multiplication or addition.
 また、上で述べた検出部は、所定のマージンを加味した上で、逆回転方向における車輪の回転数が、逆回転方向におけるクランクの回転数とギア比との積以上であることを確認するための式(例えば、実施の形態における式(1))に基づき、上記後退を検出するようにしても良い。このように、逆回転方向における車輪の回転数と、逆回転方向におけるクランクの回転数との関係に基づき、減速すべき後退を検出するようにしてもよい。例えば、車輪の回転数をAとし、クランクの回転数をBとし、マージンをαとすると、A×α≧B×gであっても良いし、A/(B×g)≧1/αであっても良いし、A≧B×g/αであっても良いし、αA-B×g≧0であっても良い。実質的に同様の式の変形であっても良い。なお、マージンについては加算によって加味するようにしても良い。 In addition, the detection unit described above confirms that the number of rotations of the wheels in the reverse rotation direction is equal to or greater than the product of the number of rotations of the crank in the reverse rotation direction and the gear ratio, taking into account a predetermined margin. The retreat may be detected based on an equation for (for example, equation (1) in the embodiment). In this manner, reverse movement to be decelerated may be detected based on the relationship between the number of rotations of the wheels in the reverse rotation direction and the number of rotations of the crank in the reverse rotation direction. For example, if the number of rotations of the wheel is A, the number of rotations of the crank is B, and the margin is α, then A×α≧B×g or A/(B×g)≧1/α. It may be A≧B×g/α, or αA−B×g≧0. It may be a variation of a substantially similar formula. Note that the margin may be added by addition.
 さらに、上で述べた検出部は、後退が継続する時間が所定時間以上である場合、又は後退が継続することにより電動アシスト車が後退した距離が所定距離以上である場合に、上記後退を検出するようにしても良い。運転者が意図して後退させている場合を除外するためである。 Furthermore, the detection unit described above detects the above-mentioned reversing when the time period during which the reversing continues is a predetermined time or more, or when the distance that the electrically assisted vehicle moves backward due to the continuation of reversing is a predetermined distance or more. You can make it work. This is to exclude cases where the driver intends to move backward.
 さらに、上で述べた検出部は、電動アシスト車に人が乗車しているか否かを所定のセンサの出力から判定し、人が乗車していない場合に、上記後退を検出するようにしても良い。人が乗車していない場合の方が、減速すべきケースが多いためである。 Furthermore, the detection unit described above may determine from the output of a predetermined sensor whether or not a person is riding in the electrically assisted vehicle, and may detect the above-described reversing if no person is riding. good. This is because there are many cases in which the vehicle should be decelerated when no one is on board.
 また、上で述べた制御部は、逆回転方向における車輪の回転角度と、逆回転方向におけるクランクの回転角度とギア比と所定係数の積との差(例えば、実施の形態におけるΔ逆回転角度)に基づき、上記後退の速度を抑制するようにモータを制御するようにしても良い。このような差が大きいほど、減速すべき度合いが高いためである。 In addition, the control unit described above determines the difference between the rotation angle of the wheel in the reverse rotation direction and the product of the rotation angle of the crank in the reverse rotation direction, the gear ratio, and a predetermined coefficient (for example, the Δ reverse rotation angle in the embodiment ), the motor may be controlled so as to suppress the backward speed. This is because the greater the difference, the higher the degree of deceleration.
 また、上で述べた制御部は、上記後退が継続する時間が第1の閾値(例えば実施の形態における閾値TH1)以上である場合に、上記後退の速度を抑制するようにモータを制御するようにしても良い。このように、上記後退が継続する時間によって、意図しない後退であることをより確実に確認できるためである。 Further, the control unit described above controls the motor so as to suppress the speed of the backward movement when the time period during which the backward movement continues is equal to or greater than a first threshold value (for example, the threshold value TH1 in the embodiment). You can do it. In this way, it is possible to more reliably confirm that the retreat is unintended based on the length of time that the retreat continues.
 さらに、上で述べた制御部は、上記後退が継続する時間が第2の閾値(例えば実施の形態における閾値TH2)未満である場合に、上記後退の速度の抑制度合いを増加させるようにモータを制御するようにしても良い。上記後退が継続する時間が長いほど後退の速度が上がったり後退した距離が長くなる可能性があり、それに対抗するためである。 Furthermore, the above-described control unit causes the motor to increase the degree of suppression of the speed of backward movement when the time period during which the backward movement continues is less than a second threshold value (for example, the threshold value TH2 in the embodiment). You may make it control. This is to counteract the possibility that the longer the retreat continues, the higher the retreat speed or the longer the retreat distance.
 さらに、上で述べた制御部は、上記後退が継続することにより電動アシスト車が後退した距離が第3の閾値(例えば実施の形態における閾値TH31)以上である場合に、後退の速度を抑制するようにモータを制御するようにしても良い。このように、後退が継続する距離によって、意図しない後退であることをより確実に確認できるためである。 Further, the control unit described above suppresses the speed of reversing when the distance that the electrically assisted vehicle has reversed due to the continuation of reversing is equal to or greater than a third threshold (threshold TH31 in the embodiment, for example). The motor may be controlled as follows. This is because it is possible to more reliably confirm that the backward movement is unintended based on the distance that the backward movement continues.
 また、上で述べた制御部は、上記距離が第4の閾値(例えば実施の形態における閾値TH32)未満である場合に、上記後退の速度の抑制度合いを増加させるようにモータを制御するようにしても良い。上記後退が継続する距離が長いと後退の速度が上がる可能性があり、それに対抗するためである。 Further, when the distance is less than a fourth threshold value (threshold value TH32 in the embodiment, for example), the control unit described above controls the motor so as to increase the degree of suppression of the backward speed. can be This is to counteract the possibility that the retreat speed will increase if the retreat continues for a long distance.
 さらに、上記後退が継続する時間を、あ)前記後退が検出されなくなった場合、い)所定のセンサの出力から電動アシスト車に人が乗車していると判定された場合、う)モータ制御装置の電源がオフにされた場合、え)電動アシスト車が前進した場合、及びお)クランクの順方向の回転を検出した場合のうち少なくともいずれかの場合に、ゼロに戻すようにしても良い。後に適切な判定を行うことができるようにするためである。 Further, the time period during which the backward movement continues is determined by: a) when the backward movement is no longer detected; b) when it is determined from the output of a predetermined sensor that a person is in the electrically assisted vehicle; and c) the motor control device. is turned off, d) the electrically assisted vehicle moves forward, and d) forward rotation of the crank is detected. This is so that an appropriate determination can be made later.
 また、上記後退が継続することにより電動アシスト車が後退した距離を、か)後退が検出されなくなった場合、き)所定のセンサの出力から電動アシスト車に人が乗車していると判定された場合、く)モータ制御装置の電源がオフにされた場合、け)電動アシスト車が前進した場合、及びこ)クランクの順方向の回転を検出した場合のうち少なくともいずれかの場合に、ゼロに戻すようにしても良い。後に適切な判定を行うことができるようにするためである。 In addition, it is determined from the output of a predetermined sensor that a person is in the electrically assisted vehicle based on the distance that the electrically assisted vehicle has moved backward due to the continuation of the above-mentioned backward movement, or (b) when the backward movement is no longer detected. c) when the power of the motor control device is turned off, i) when the electrically assisted vehicle moves forward, and c) when forward rotation of the crank is detected. You can put it back. This is so that an appropriate determination can be made later.
 また、上で述べたギア比は、固定値又は電動アシスト車が前進している間に得られた車輪の回転数及びクランクの回転数から算出される値である場合もある。適切に判定するためである。 In addition, the gear ratio mentioned above may be a fixed value or a value calculated from the number of rotations of the wheel and the number of rotations of the crank obtained while the electrically assisted vehicle is moving forward. This is for the purpose of making an appropriate judgment.
 本実施の形態に係る第2のモータ制御装置は、C)前輪と後輪で3以上の車輪とモータとを有する電動アシスト車が後退する速度を検出する検出部(例えば、実施の形態における検出部3100b)と、D)上記速度が第1の閾値以上である場合、速度を抑制するようにモータを制御する制御部(例えば、実施の形態における回生制御部3200b)とを有する。後退における意図しない速い速度(例えば実施の形態における閾値TH11以上の速度)を検出して、速度の抑制が可能となる。 The second motor control device according to the present embodiment includes C) a detection unit (for example, the detection unit in the embodiment) that detects the speed at which an electrically assisted vehicle having three or more front and rear wheels and a motor moves backward. D) a controller (for example, the regeneration controller 3200b in the embodiment) that controls the motor to suppress the speed when the speed is equal to or higher than the first threshold. It is possible to suppress the speed by detecting an unintended high speed in reverse (for example, a speed equal to or higher than the threshold TH11 in the embodiment).
 上で述べた検出部は、電動アシスト車に人が乗車しているか否かを所定のセンサの出力から判定し、上で述べた制御部は、上記検出部が電動アシスト車に人が乗車していると判定した場合には、上記速度が第2の閾値(例えば実施の形態における閾値TH22)を超えていれば、上記速度の抑制を継続させるようにしても良い。例えば、電動アシスト車に人が乗車していれば当該人による制御が期待できるので、早期に速度の抑制を停止させても良いが、速度が高い場合には、速度の抑制を継続させて、安全を図るものである。 The detection unit described above determines from the output of a predetermined sensor whether or not a person has boarded the electrically assisted vehicle. If it is determined that the speed exceeds a second threshold value (for example, the threshold value TH22 in the embodiment), the speed control may be continued. For example, if a person is riding in the electrically assisted vehicle, control by the person can be expected, so speed suppression may be stopped early. This is for safety.
 一方、上で述べた制御部は、検出部が電動アシスト車に人が乗車していないと判定した場合には、上記速度が第2の閾値より小さい第3の閾値を超えていれば、上記速度の抑制を継続させるようにしても良い。電動アシスト車に人が乗車していない場合には、十分減速するまで速度の抑制を行って、安全を図るものである。 On the other hand, if the detection unit determines that no person is riding in the electrically assisted vehicle, the above-described control unit determines that the speed exceeds the third threshold, which is smaller than the second threshold. You may make it continue suppression of a speed. When there is no passenger on the electrically assisted vehicle, the speed is controlled until the vehicle is sufficiently decelerated to ensure safety.
 さらに、上で述べた制御部は、上記速度に応じた上記抑制度合いでモータに回生を行わせるようにしても良い。 Furthermore, the control unit described above may cause the motor to regenerate with the degree of suppression according to the speed.
 このような構成は、実施の形態に述べられた事項に限定されるものではなく、実質的に同一の効果を奏する他の構成にて実施される場合もある。 Such configurations are not limited to the matters described in the embodiments, and may be implemented in other configurations that produce substantially the same effects.

Claims (18)

  1.  前輪と後輪で3以上の車輪とクランクとモータとを有する電動アシスト車におけるクランク回転と車輪回転との関係に基づき、減速すべき後退を検出する検出部と、
     前記検出部が前記後退を検出した場合、前記後退の速度を抑制するように前記モータを制御する制御部と、
     を有するモータ制御装置。
    a detection unit that detects reverse movement to be decelerated based on the relationship between crank rotation and wheel rotation in an electrically assisted vehicle having three or more wheels, a crank, and a motor for front and rear wheels;
    a control unit that controls the motor to suppress the speed of the backward movement when the detection unit detects the backward movement;
    A motor controller having a
  2.  前記検出部は、
     所定のマージンを加味した上で、逆回転方向における前記車輪の回転角度が、逆回転方向における前記クランクの回転角度とギア比との積以上であることを確認するための式に基づき、前記後退を検出する 
     請求項1記載のモータ制御装置。
    The detection unit is
    After taking into account a predetermined margin, the reverse rotation is performed based on a formula for confirming that the rotation angle of the wheels in the reverse rotation direction is greater than or equal to the product of the rotation angle of the crank in the reverse rotation direction and the gear ratio. to detect
    The motor control device according to claim 1.
  3.  前記検出部は、
     所定のマージンを加味した上で、逆回転方向における前記車輪の回転数が、逆回転方向における前記クランクの回転数とギア比との積以上であることを確認するための式に基づき、前記後退を検出する
     請求項1記載のモータ制御装置。
    The detection unit is
    The reverse rotation is based on a formula for confirming that the number of rotations of the wheels in the reverse direction is equal to or greater than the product of the number of rotations of the crank in the reverse direction and the gear ratio, with a predetermined margin. 2. The motor control device according to claim 1, which detects the .
  4.  前記検出部は、
     後退が継続する時間が所定時間以上である場合、又は後退が継続することにより前記電動アシスト車が後退した距離が所定距離以上である場合に、前記後退を検出する
     請求項1乃至3のいずれか1つ記載のモータ駆動制御装置。
    The detection unit is
    4. The reversing is detected when the time for which the reversing continues is a predetermined time or more, or when the distance that the electrically assisted vehicle moves backward due to the continuation of reversing is a predetermined distance or more. 1. A motor drive controller according to claim 1.
  5.  前記検出部は、
     前記電動アシスト車に人が乗車しているか否かを所定のセンサの出力から判定し、人が乗車していない場合に、前記後退を検出する
     請求項1乃至3のいずれか1つ記載のモータ制御装置。
    The detection unit is
    4. The motor according to any one of claims 1 to 3, wherein it is determined from the output of a predetermined sensor whether or not a person is on board the electrically assisted vehicle, and the backward movement is detected when no person is on the vehicle. Control device.
  6.  前記制御部は、
     逆回転方向における前記車輪の回転角度と、逆回転方向における前記クランクの回転角度とギア比と所定係数の積との差に基づき、前記後退の速度を抑制するように前記モータを制御する
     請求項1乃至3のいずれか1つ記載のモータ制御装置。
    The control unit
    The motor is controlled to suppress the reverse speed based on the difference between the rotation angle of the wheel in the reverse rotation direction and the product of the rotation angle of the crank in the reverse rotation direction, the gear ratio, and a predetermined coefficient. 4. The motor control device according to any one of 1 to 3.
  7.  前記制御部は、
     前記後退が継続する時間が第1の閾値以上である場合に、前記後退の速度を抑制するように前記モータを制御する
     請求項1乃至3のいずれか1つ記載のモータ制御装置。
    The control unit
    The motor control device according to any one of claims 1 to 3, wherein the motor is controlled so as to suppress the speed of the backward movement when the time for which the backward movement continues is equal to or longer than a first threshold value.
  8.  前記制御部は、
     前記後退が継続する時間が第2の閾値未満である場合に、前記後退の速度の抑制度合いを増加させるように前記モータを制御する
     請求項7記載のモータ制御装置。
    The control unit
    8. The motor control device according to claim 7, wherein the motor is controlled so as to increase the degree of suppression of the speed of the backward movement when the time for which the backward movement continues is less than a second threshold value.
  9.  前記制御部は、
     前記後退が継続することにより前記電動アシスト車が後退した距離が第3の閾値以上である場合に、前記後退の速度を抑制するように前記モータを制御する
     請求項1乃至3のいずれか1つ記載のモータ制御装置。
    The control unit
    4. The motor is controlled to suppress the speed of the backward movement when the distance that the electrically assisted vehicle has moved backward due to the continuation of the backward movement is equal to or greater than a third threshold value. A motor controller as described.
  10.  前記制御部は、
     前記距離が第4の閾値未満である場合に、前記後退の速度の抑制度合いを増加させるように前記モータを制御する
     前記請求項9記載のモータ制御装置。
    The control unit
    10. The motor control device according to claim 9, wherein, when the distance is less than a fourth threshold, the motor is controlled so as to increase the degree of suppression of the backward speed.
  11.  前記後退が継続する時間を、
     前記後退が検出されなくなった場合、所定のセンサの出力から前記電動アシスト車に人が乗車していると判定された場合、前記モータ制御装置の電源がオフにされた場合、前記電動アシスト車が前進した場合、及び前記クランクの順方向の回転を検出した場合のうち少なくともいずれかの場合に、ゼロに戻す
     請求項7記載のモータ制御装置。
    the time for which said retreat lasts,
    When the backward movement is no longer detected, when it is determined from the output of a predetermined sensor that a person is riding in the electrically assisted vehicle, when the power of the motor control device is turned off, the electrically assisted vehicle is turned off. 8. The motor control device of claim 7, wherein the motor controller returns to zero when moving forward and/or when forward rotation of the crank is detected.
  12.  前記後退が継続することにより前記電動アシスト車が後退した距離を、
     前記後退が検出されなくなった場合、所定のセンサの出力から前記電動アシスト車に人が乗車していると判定された場合、前記モータ制御装置の電源がオフにされた場合、前記電動アシスト車が前進した場合、及び前記クランクの順方向の回転を検出した場合のうち少なくともいずれかの場合に、ゼロに戻す
     請求項9記載のモータ制御装置。
    The distance that the electrically assisted vehicle has moved backward due to the continuation of the backward movement,
    When the backward movement is no longer detected, when it is determined from the output of a predetermined sensor that a person is riding in the electrically assisted vehicle, when the power of the motor control device is turned off, the electrically assisted vehicle is turned off. 10. The motor controller of claim 9, wherein the motor controller returns to zero upon forward movement and/or upon detection of forward rotation of the crank.
  13.  前記ギア比は、固定値又は前記電動アシスト車が前進している間に得られた前記車輪の回転数及び前記クランクの回転数から算出される値である
     請求項2又は3記載のモータ制御装置。
    4. The motor control device according to claim 2, wherein the gear ratio is a fixed value or a value calculated from the number of revolutions of the wheel and the number of revolutions of the crank obtained while the electrically assisted vehicle is moving forward. .
  14.  前輪と後輪で3以上の車輪とモータとを有する電動アシスト車が後退する速度を検出する検出部と、
     前記速度が第1の閾値以上である場合、前記速度を抑制するように前記モータを制御する制御部と、
     を有するモータ制御装置。
    a detection unit for detecting the speed at which an electrically assisted vehicle having three or more front wheels and three or more motors and a motor moves backward;
    a control unit that controls the motor to suppress the speed when the speed is equal to or greater than a first threshold;
    A motor controller having a
  15.  前記検出部は、
     前記電動アシスト車に人が乗車しているか否かを所定のセンサの出力から判定し、
     前記制御部は、
     前記検出部が前記電動アシスト車に人が乗車していると判定した場合には、前記速度が第2の閾値を超えていれば、前記速度の抑制を継続させる
     請求項14記載のモータ制御装置。
    The detection unit is
    determining from the output of a predetermined sensor whether or not a person is in the electrically assisted vehicle;
    The control unit
    15. The motor control device according to claim 14, wherein, when the detection unit determines that a person is riding in the electrically assisted vehicle, if the speed exceeds a second threshold value, the speed is continued to be suppressed. .
  16.  前記制御部は、
     前記検出部が前記電動アシスト車に人が乗車していないと判定した場合には、前記速度が前記第2の閾値より小さい第3の閾値を超えていれば、前記速度の抑制を継続させる
     請求項15記載のモータ制御装置。
    The control unit
    When the detection unit determines that no one is riding in the electrically assisted vehicle, if the speed exceeds a third threshold that is smaller than the second threshold, the speed suppression is continued. Item 16. A motor control device according to item 15.
  17.  前記制御部は、
     前記速度に応じた前記抑制度合いで前記モータに回生を行わせる
     請求項14乃至16のいずれか1つ記載のモータ制御装置。
    The control unit
    17. The motor control device according to any one of claims 14 to 16, wherein the motor is regenerated at the degree of suppression corresponding to the speed.
  18.  請求項1乃至3のいずれか1つに記載されたモータ制御装置を有し、
     前輪と後輪で3以上の車輪を有する電動アシスト車。
    Having a motor control device according to any one of claims 1 to 3,
    An electrically assisted vehicle having three or more front and rear wheels.
PCT/JP2022/020150 2021-05-31 2022-05-13 Motor control device for electrically assisted vehicle and electrically assisted vehicle WO2022255059A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2023525696A JPWO2022255059A1 (en) 2021-05-31 2022-05-13

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP2021091330 2021-05-31
JP2021-091330 2021-05-31

Publications (1)

Publication Number Publication Date
WO2022255059A1 true WO2022255059A1 (en) 2022-12-08

Family

ID=84324360

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/JP2022/020150 WO2022255059A1 (en) 2021-05-31 2022-05-13 Motor control device for electrically assisted vehicle and electrically assisted vehicle

Country Status (2)

Country Link
JP (1) JPWO2022255059A1 (en)
WO (1) WO2022255059A1 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005297641A (en) * 2004-04-07 2005-10-27 Shirouma Science Co Ltd Three-wheel type electric power assist bicycle
JP2008037340A (en) * 2006-08-09 2008-02-21 Matsushita Electric Ind Co Ltd Electric assistant vehicle
JP2013136302A (en) * 2011-12-28 2013-07-11 Yamaha Motor Engineering Kk Vehicle
WO2019189285A1 (en) * 2018-03-29 2019-10-03 太陽誘電株式会社 Motor control device and electrically assisted vehicle
JP2020172264A (en) * 2020-08-03 2020-10-22 株式会社シマノ Control device for bicycle and brake system for bicycle including the same

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005297641A (en) * 2004-04-07 2005-10-27 Shirouma Science Co Ltd Three-wheel type electric power assist bicycle
JP2008037340A (en) * 2006-08-09 2008-02-21 Matsushita Electric Ind Co Ltd Electric assistant vehicle
JP2013136302A (en) * 2011-12-28 2013-07-11 Yamaha Motor Engineering Kk Vehicle
WO2019189285A1 (en) * 2018-03-29 2019-10-03 太陽誘電株式会社 Motor control device and electrically assisted vehicle
JP2020172264A (en) * 2020-08-03 2020-10-22 株式会社シマノ Control device for bicycle and brake system for bicycle including the same

Also Published As

Publication number Publication date
JPWO2022255059A1 (en) 2022-12-08

Similar Documents

Publication Publication Date Title
JP3450078B2 (en) Power assist device for electric vehicles
JP3642364B2 (en) Bicycle regeneration control device with auxiliary power
US5226501A (en) Electric-motored bicycle
US10919600B2 (en) Motor driving control apparatus and method and motor-assisted vehicle
JP7308198B2 (en) MOTOR CONTROL DEVICE AND METHOD, AND POWER-ASSISTED VEHICLE
JP7379324B2 (en) Motor control device and electric assist vehicle
JPH09263290A (en) Motor-driven bicycle
JP2021062640A (en) Electric bicycle capable of traveling through self-charging
WO2022255059A1 (en) Motor control device for electrically assisted vehicle and electrically assisted vehicle
KR20110033622A (en) Regenerating control device for motor-driven bicycle and control method the same
TWI723328B (en) Motor drive control device and electric auxiliary vehicle
JP7313846B2 (en) Motor drive control device and electrically assisted vehicle
JPH07143603A (en) Power assisted bicycle
JPH09135504A (en) Hill holding device for electric vehicle
JPH10167161A (en) Electric bicycle
JP3312814B2 (en) Reverse drive device for electric vehicles
WO2024024381A1 (en) Motor control device for motor-assisted vehicle, and motor-assisted vehicle
JP7195288B2 (en) Motor drive control device and electrically assisted vehicle
JP3161543B2 (en) Bicycle with electric motor
WO2023281846A1 (en) Motor control device for electrically assisted vehicle, and electrically assisted vehicle
JP2000166025A (en) Electric motor car
JP2023078790A (en) Control device for electric assist vehicle, and electric assist vehicle
JP2022120454A (en) Control device of power-assisted vehicle, and power-assisted vehicle
JP2001025101A (en) Safety controller of electric vehicle
JP2001245402A (en) Electromotive vehicle

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22815814

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 2023525696

Country of ref document: JP

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 22815814

Country of ref document: EP

Kind code of ref document: A1