Generator control method for electric bike, power generation apparatus, and electric bike
By acquiring and calculating data such as the pedaling force of the electric-assisted bicycle in real time, the power of the generator and drive motor is controlled, solving the problems of low kinetic energy recovery efficiency and poor stability, and realizing automatic gear shifting and effortless assistance for the rider.
Patent Information
- Application Number
- PCT/CN2025/098353
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2024-08-16
- Filing Date
- 2025-05-30
- Publication Date
- 2026-02-19
AI Technical Summary
Existing electric-assisted bicycles only recover kinetic energy in specific phases, resulting in short recovery times, low efficiency, poor stability due to chain drive, and inability to automatically change gears.
By acquiring real-time pedaling force data and other parameters such as angular velocity, acceleration, and road slope, the driving current and signals are calculated to control the power of the generator and drive motor, thereby achieving real-time kinetic energy recovery and automatic speed change.
It improves the efficiency and stability of kinetic energy recovery, reduces the rider's force requirements, enables automatic gear shifting, and enhances the assist effect of electric-assisted bicycles.
Smart Images

Figure CN2025098353_19022026_PF_FP_ABST
Abstract
Description
Generator control method of electric moped, generator device and electric moped TECHNICAL FIELD
[0001] The present application relates to the technical field of electric moped, and particularly relates to a generator control method of electric moped, a generator device, an electric moped, a computer device and a computer readable storage medium. BACKGROUND
[0002] The electric moped is an ordinary bicycle with added electric control components such as motor, controller and battery for assisting riding. Generally, the motor of the electric moped is a hub motor, which generally has a kinetic energy recovery function in the process of braking and deceleration, i.e. converting mechanical energy into electrical energy and storing it in the battery. However, the kinetic energy recovery technology of the existing hub motor is generally only connected when the rider brakes and decelerates, and the kinetic energy recovery time is short and the efficiency is not high.
[0003] In addition, the structure of the traditional bicycle has a chain or transmission shaft as a transmission mechanism, especially some models that require an extra-long transmission mechanism, such as cargo bicycles, recumbent bicycles, electric power-assisted three / four-wheel bicycles, etc. The transmission shaft of these models often requires special space design, which restricts the modeling creativity of the whole vehicle. At the same time, the extra-long transmission chain has poor stability and is prone to slipping and chain falling.
[0004] In addition, the traditional mechanical transmission bicycle gear shifting system changes the gear ratio to achieve gear shifting, which requires the rider to manually and actively switch gears.
[0005] At present, there is no effective solution to the problems of kinetic energy recovery only in a specific stage, short kinetic energy recovery time, low kinetic energy recovery efficiency, poor stability caused by chain transmission, and inability to automatically achieve gear shifting in the related art. SUMMARY
[0006] The purpose of the present application is to solve the problems of kinetic energy recovery only in a specific stage, short kinetic energy recovery time, low kinetic energy recovery efficiency, poor stability caused by chain transmission, and inability to automatically achieve gear shifting in the related art by providing a generator control method of electric moped, a generator device, an electric moped, a computer device and a computer readable storage medium.
[0007] To achieve the above-mentioned purpose, the technical solution adopted by the present application is as follows:
[0008] In a first aspect, the present application provides a generator control method of electric moped, comprising:
[0009] obtaining real-time pedaling force data;
[0010] According to the real-time pedaling force data, a real-time limit current is calculated, wherein the real-time limit current = real-time pedaling force data / maximum pedaling force data * maximum current, the maximum pedaling force data is a maximum pedaling force of the generator, and the maximum current is a maximum current for driving the motor;
[0011] According to the real-time limit current, a first driving signal is generated.
[0012] In some embodiments, the method further comprises:
[0013] A first angular velocity at a first time and a second angular velocity at a second time are obtained;
[0014] According to the first angular velocity and the second angular velocity, an angular acceleration is calculated, wherein the angular acceleration = ((first angular velocity - second angular velocity) * number of pole pairs of the generator) / (first time - second time);
[0015] According to the angular acceleration, a driving current is calculated, wherein the driving current = virtual inertia current sensitivity constant of the generator * angular acceleration / inertia constant of the generator;
[0016] According to the driving current, a second driving signal is generated.
[0017] In some embodiments, the method further comprises:
[0018] Acceleration data is obtained;
[0019] In a case where the acceleration data is a non-negative value, a brake force gain signal is generated;
[0020] In a case where the acceleration data is a negative value, a brake force loss signal is generated.
[0021] In some embodiments, the method further comprises:
[0022] A feedback force is obtained;
[0023] In a case where the feedback force is a non-0 value, a brake force gain signal is generated;
[0024] In a case where the feedback force is a 0 value, a brake force loss signal is generated.
[0025] In some embodiments, the method further comprises:
[0026] Road surface slope data is obtained;
[0027] According to the road surface slope data, a brake force current is calculated, wherein the brake force current = tan (road surface slope data) * generator slope resistance coefficient + generator resistance constant;
[0028] According to the braking force current, a third driving signal is generated.
[0029] In some embodiments, further comprising:
[0030] Obtaining road slope data;
[0031] According to the road slope data, calculation is performed to obtain a target speed, wherein the target speed = wheel diameter * pedal frequency * gear shift coefficient, and the gear shift coefficient = (1-tan road slope data) * gear ratio;
[0032] According to the target speed, a fourth driving signal is generated.
[0033] In a second aspect, the application provides a power generation device for an electrically assisted vehicle, which is used to perform the generator control method as described in the first aspect, comprising:
[0034] A generator connected with a driving motor of the electrically assisted vehicle, for supplying power to the driving motor;
[0035] A torque sensor connected with the generator, for obtaining pedal force data.
[0036] In some embodiments, further comprising:
[0037] A Hall sensor connected with the generator, for obtaining angular velocity data.
[0038] In some embodiments, further comprising:
[0039] An acceleration sensor connected with the generator, for obtaining acceleration data and road slope data.
[0040] In a third aspect, the application provides an electrically assisted vehicle, comprising:
[0041] A driving motor;
[0042] A power generation device as described in the second aspect, connected with the driving motor, for supplying power to the driving motor.
[0043] In some embodiments, further comprising:
[0044] A power source connected with the driving motor and the power generation device respectively, for supplying power to the driving motor and charging under the action of the power generation device.
[0045] In a fourth aspect, the present application provides a computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the generator control method according to the first aspect when executing the computer program.
[0046] In a fifth aspect, the present application provides a computer readable storage medium having a computer program stored thereon, wherein the program, when executed by a processor, implements the generator control method according to the first aspect.
[0047] Compared with the prior art, the present application has the following technical effects:
[0048] The generator control method, generator device, electric-assisted bicycle, computer device and computer readable storage medium of the electric-assisted bicycle according to the present application obtain real-time pedaling force data, control the current of the driving motor by the generator, and then control the power of the driving motor to assist the rider in riding and provide power assistance to the rider. The angular acceleration is used to assist in calculating the pedaling force, which can be used as a supplement to the real-time pedaling force data, increase the robustness, and prevent the pedaling force data from being distorted. The power generation and power collection actions in the process of human pedaling can be simulated, the braking force can be increased during the power generation process, the braking force and power assistance can be reduced during the power collection process, the rider can exert less force, and the rider can save energy. The road slope information can be used to realize automatic speed change of the electric-assisted bicycle, the rider can exert less force, and the rider can save energy. BRIEF DESCRIPTION OF DRAWINGS
[0049] Fig. 1 is a flowchart of the generator control method according to an embodiment of the present application (I);
[0050] Fig. 2 is a flowchart of the generator control method according to an embodiment of the present application (II);
[0051] Fig. 3 is a flowchart of the generator control method according to an embodiment of the present application (III);
[0052] Fig. 4 is a flowchart of the generator control method according to an embodiment of the present application (IV);
[0053] Fig. 5 is a flowchart of the generator control method according to an embodiment of the present application (V);
[0054] Fig. 6 is a schematic diagram of the frame of the generator device according to an embodiment of the present application;
[0055] Fig. 7 is a schematic diagram of the frame of the electric-assisted bicycle according to an embodiment of the present application.
[0056] The reference signs in the drawings are as follows: 610, generator; 620, torque sensor; 630, Hall sensor; 640, acceleration sensor; 710, driving motor; 720, generator device; 730, power supply. DETAILED DESCRIPTION
[0057] In order to make the purposes, technical solutions, and advantages of the present application clearer, the present application is described and explained below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and should not be used to limit the present application. Based on the embodiments provided in the present application, all other embodiments obtained by those of ordinary skill in the art without creative effort belong to the scope of the present application.
[0058] It is obvious that the accompanying drawings in the following description are only some examples or embodiments of the present application, and for those of ordinary skill in the art, the present application can be applied to other similar scenarios without creative effort based on the drawings. In addition, it can be understood that although the efforts made in the development process can be complex and lengthy, for those of ordinary skill in the art related to the content disclosed in the present application, some design, manufacture or production changes based on the technical content disclosed in the present application are only routine technical means and should not be understood as insufficient disclosure of the content disclosed in the present application.
[0059] In the present application, the phrase "embodiments" means that the specific features, structures or characteristics described in conjunction with the embodiments can be included in at least one embodiment of the present application. The appearance of this phrase at various places in the specification does not necessarily mean the same embodiment, nor is it an independent or alternative embodiment that is not mutually exclusive with other embodiments. It is explicitly and implicitly understood by those of ordinary skill in the art that the embodiments described in the present application can be combined with other embodiments without conflict.
[0060] Unless otherwise defined, technical terms and scientific terms used in the present application shall have the same meaning as commonly understood by one of ordinary skill in the art to which this application pertains. The terms "a", "an", "one", "this", and similar referents in the context of describing the application are to be construed to be open-ended, referring to one or more than one, unless otherwise noted. The terms "including", "comprising", "having" and variations thereof in this application are meant to encompass the possibility of non-exclusive inclusion, such that processes, methods, systems, products, or apparatuses that comprise a list of steps or elements are not limited to only those steps or elements but can include other steps or elements not expressly listed or inherent to such processes, methods, systems, products, or apparatuses. The terms "connected", "coupled", and similar referents in the context of this application are to be construed as beading in a manner that permits the causal agent or signal to act upon the causally affected entity. The term "plurality" means two or more. The term "and / or" means "and" or "or". The term "first", "second", "third", etc. are used to distinguish similar objects, not to indicate a particular order.
[0061] Embodiment 1
[0062] The present embodiment relates to the generator control method of the present application.
[0063] Fig. 1 is a flowchart of the generator control method according to an embodiment of the present application (I). As shown in Fig. 1, a generator control method of an electrically assisted vehicle includes:
[0064] Step S102, acquiring real-time pedaling force data;
[0065] Step S104, calculating according to the real-time pedaling force data to obtain a real-time limiting current, wherein the real-time limiting current = real-time pedaling force data / maximum pedaling force data * maximum current, the maximum pedaling force data is the maximum pedaling force of the generator, and the maximum current is the maximum current of the driving motor;
[0066] Step S106, generating a first driving signal according to the real-time limiting current.
[0067] In the present application, the electrically assisted vehicle includes an electrically assisted two-wheeled vehicle, an electrically assisted three-wheeled vehicle, an electrically assisted four-wheeled vehicle, etc.
[0068] In the present application, the electrically assisted bicycle is divided into a battery-free electrically assisted bicycle and a battery-powered electrically assisted bicycle. For the battery-free electrically assisted bicycle, the generator is connected to the drive motor. For the battery-powered electrically assisted bicycle, the battery is connected to the generator and the drive motor respectively, and the generator can be connected to the drive motor or not. That is, the generator is only used to supply power to the battery, or the generator can supply power to both the battery and the drive motor.
[0069] In the present application, the electrically assisted bicycle generally does not contain a transmission chain structure and related structures.
[0070] In the present application, the electrically assisted bicycle is a chain-free electric transmission vehicle.
[0071] In step S102, generally, the real-time pedaling force data is obtained by a torque sensor. In addition, the real-time pedaling force data can also be obtained by other means, including but not limited to sensors, artificial intelligence, algorithms, etc.
[0072] In step S104, since the maximum pedaling force data and the maximum current are fixed values, known values, they do not need to be obtained in step S102. Of course, the maximum pedaling force data and the maximum current can also be obtained in step S102.
[0073] In step S104, the calculation formula of the real-time limiting current is EffectI=(Fr / Fmax)*LimitI. Wherein, EffectI is the real-time limiting current given to the drive motor, Fr is the real-time pedaling force data, Fmax is the maximum pedaling force that the generator can support, and LimitI is the maximum current that the drive motor can support.
[0074] In the present application, the real-time limiting current refers to the maximum allowable drive current on the drive motor bus.
[0075] In step S106, the first drive signal is used to control the drive motor to adjust the power of the drive motor. Generally, the power of the drive motor is positively correlated with the real-time limiting current, that is, the greater the real-time limiting current, the greater the power. Generally, since the voltage is constant, the power is proportional to the real-time limiting current.
[0076] Through the above steps, by obtaining the real-time pedaling force data, the generator controls the current of the drive motor, and then controls the power of the drive motor to assist the rider to ride and give power to the rider.
[0077] Fig. 2 is a flowchart of a generator control method according to an embodiment of the present application. As shown in Fig. 2, the generator control method further comprises:
[0078] Step S202, obtaining a first angular velocity at a first time and a second angular velocity at a second time;
[0079] Step S204, calculating according to the first angular velocity and the second angular velocity to obtain an angular acceleration, wherein the angular acceleration = ((the first angular velocity - the second angular velocity) * the number of generator pole pairs) / (the first time - the second time);
[0080] Step S206, calculating according to the angular acceleration to obtain a driving current, wherein the driving current = the virtual inertia current sensitivity constant of the generator * the angular acceleration / the inertia constant of the generator;
[0081] Step S208, generating the second driving signal according to the driving current.
[0082] In step S202, the first time is the current time, and the second time is the previous time. That is, the first time - the second time ≥ 0.
[0083] In step S202, generally, the angular velocity is obtained by a Hall sensor. In addition, the angular velocity can also be obtained by a magnetic encoding chip, non-inductive technology, etc.
[0084] In step S204, since the number of generator pole pairs is a fixed value, a known value, it does not need to be obtained in step S202. Of course, the number of generator pole pairs can also be obtained in step S202.
[0085] In step S204, the calculation formula of the angular acceleration is: hall_angle_acce = ((fabs(motor_rad_f) - fabs(motor_rad_last)) / NOPOLESPAIRS) * (InertiaCurrentRampTickes). Wherein, hall_angle_acce is the angular acceleration, motor_rad_f is the angular velocity at T1, motor_rad_last is the angular velocity at T2, NOPOLESPAIRS represents the number of motor pole pairs, and InertiaCurrentRampTickes represents the time interval between two angular velocity calculations.
[0086] In step S206, since the virtual inertia current sensitivity constant of the generator and the inertia constant of the generator are both fixed values, known values, they do not need to be obtained in step S202. Of course, the virtual inertia current sensitivity constant of the generator and the inertia constant of the generator can also be obtained in step S202.
[0087] In step S206, the calculation formula of the driving current is inertia_current=(VIRTUAL_INERTIA_STOP*hall_angle_acce) / INERTIA_K_SET, wherein inertia_current represents the driving current corresponding to the virtual inertia of the generator, VIRTUAL_INERTIA_STOP is a virtual inertia current sensitivity constant, and INERTIA_K_SET is a generator inertia constant.
[0088] In step S208, the second driving signal is used to control the driving motor to adjust the power of the driving motor. Generally, the power of the driving motor is positively correlated with the driving current, i.e., the greater the driving current, the greater the power. Generally, since the voltage is constant, the power is proportional to the driving current.
[0089] Through the above steps, the pedal force is calculated by using the angular acceleration as an auxiliary, which can be used as a supplement to the real-time pedal force data, increase the robustness, and prevent the pedal force data from being distorted.
[0090] FIG. 3 is a flowchart of a generator control method according to an embodiment of the present application (III). As shown in FIG. 3, the generator control method further comprises:
[0091] In step S302, acceleration data is obtained.
[0092] In step S304, a brake force gain signal is generated when the acceleration data is a non-negative value.
[0093] In step S306, a brake force loss signal is generated when the acceleration data is a negative value.
[0094] In step S302, the acceleration data includes angular acceleration data.
[0095] In step S304, the generation of the brake force gain signal can increase the brake force of the generator. Generally, after the brake force of the generator is increased, the driving current of the driving motor is also increased.
[0096] In step S306, the generation of the brake force loss signal can reduce the brake force of the generator. Generally, after the brake force of the generator is reduced, the driving current of the driving motor is also reduced.
[0097] Generally, the brake force of the generator is positively correlated with the driving force of the driving motor. When the brake force of the generator changes, the driving force of the driving motor also changes, i.e., the driving current flowing through the driving motor changes. The driving current can be added or subtracted to change the driving force of the driving motor.
[0098] Through the above steps, the power generation and force reduction action of the human pedaling process can be simulated, the increased braking force in the power generation process, the weakened braking force in the force reduction process and the power assistance can be obtained, the force exerted by the rider can be reduced, and the rider can save energy.
[0099] Fig. 4 is a flowchart of a generator control method according to an embodiment of the present application (four). As shown in Fig. 4, the generator control method further comprises:
[0100] Step S402, obtaining the feedback force;
[0101] Step S404, generating a braking force gain signal in the case that the feedback force is a non-zero value;
[0102] Step S406, generating a braking force loss signal in the case that the feedback force is a zero value.
[0103] In step S302, the feedback force is obtained by a torque sensor.
[0104] In step S404, generating the braking force gain signal can increase the braking force of the generator. Generally, after increasing the braking force of the generator, the driving current of the driving motor also increases.
[0105] In step S406, generating the braking force loss signal can reduce the braking force of the generator. Generally, after reducing the braking force of the generator, the driving current of the driving motor also decreases.
[0106] Generally, the braking force of the generator is positively related to the driving force of the driving motor. When the braking force of the generator changes, the driving force of the driving motor also changes, that is, the driving current flowing through the driving motor changes. The driving current can be added or subtracted, so as to change the driving force of the driving motor.
[0107] Through the above steps, the power generation and force reduction action of the human pedaling process can be simulated, the increased braking force in the power generation process, the weakened braking force in the force reduction process and the power assistance can be obtained, the force exerted by the rider can be reduced, and the rider can save energy.
[0108] Fig. 5 is a flowchart of a generator control method according to an embodiment of the present application (five). As shown in Fig. 5, the generator control method further comprises:
[0109] Step S502, obtaining road slope data;
[0110] Step S504, calculating according to the road slope data to obtain a braking force current, wherein the braking force current=tan road slope data*generator slope resistance coefficient+generator resistance constant;
[0111] Step S506, generating a third driving signal according to the braking force current.
[0112] In step S502, the angular velocity is generally acquired by the acceleration sensor.
[0113] In step S502, the road slope data includes uphill slope data and downhill slope data.
[0114] In step S504, since the generator slope resistance coefficient and the generator resistance constant are fixed values and known values, they do not need to be acquired in step S502. Of course, the generator slope resistance coefficient and the generator resistance constant can also be acquired in step S502.
[0115] In step S506, the braking force current is the coil current flowing through the generator. Generally, the resistance of the generator is positively correlated with the braking force current, that is, the greater the braking force current, the greater the resistance of the generator. Correspondingly, the pedaling force also becomes larger, thereby increasing the driving current.
[0116] In step S506, the third driving signal is used to control the driving motor to adjust the power of the driving motor. That is, the power of the driving motor is adjusted by adjusting the current of the driving motor.
[0117] Further, the generator control method further comprises:
[0118] In step S508, the target speed is calculated according to the road slope data, wherein the target speed = wheel diameter * pedaling frequency * gear shift coefficient, and the gear shift coefficient = (1-tan road slope data) * gear ratio.
[0119] In step S510, the fourth driving signal is generated according to the target speed.
[0120] In step S508, since the wheel diameter and the gear ratio are fixed values and known values, they do not need to be acquired in step S502. Of course, the wheel diameter and the gear ratio constant can also be acquired in step S502.
[0121] In S508, since the pedaling frequency is a non-fixed value and a non-known value, it needs to be acquired in steps S502-S506.
[0122] In some embodiments, the pedaling frequency matches the pedaling force data. Generally, the pedaling frequency is negatively correlated with the pedaling force data, that is, the greater the pedaling force data, the smaller the pedaling frequency. Or, the pedaling force becomes larger, and the pedaling frequency becomes smaller.
[0123] In some embodiments, the cadence is calculated by sampling the continuous pedaling force, applying a peak-finding algorithm to record the time of the two consecutive pedaling force peaks, the time difference between the two times is the time of a half pedaling circle ΔT, in seconds, and the cadence is calculated as Cadence = 30 / ΔT, in units of circle / minute.
[0124] In step S510, the fourth driving signal is used to control the driving motor to adjust the power of the driving motor. Specifically, the rotational speed of the driving motor is adjusted to match the target speed.
[0125] In some embodiments, the rotational speed of the driving motor is controlled by a pid speed closed loop control. Generally, the pid speed closed loop control includes two stages as follows:
[0126] (1) Open loop mode
[0127] The driving motor starts in open loop mode, and when the speed reaches a first preset speed threshold (e.g., 10 km / h), it switches to closed loop mode.
[0128] (2) Closed loop mode
[0129] In closed loop mode, the control target speed is a second preset speed threshold (e.g., 25 km / h).
[0130] Generally, the open loop mode adopts a maximum power output mode, and the closed loop mode adopts a pid adjustment mode.
[0131] Through the above steps, the automatic speed change of the electric assist bicycle can be realized by using the road slope information, reducing the effort of the rider, and saving the effort of the rider.
[0132] In some embodiments, the generator control method further includes:
[0133] Obtaining the bus voltage;
[0134] Determining whether the bus voltage reaches a first voltage preset threshold;
[0135] Generating a start signal when the bus voltage reaches the first voltage preset threshold.
[0136] In some embodiments, the first voltage preset threshold is 80V.
[0137] In some embodiments, determining whether the bus voltage reaches the first voltage preset threshold means determining whether the bus voltage is greater than or equal to the first voltage preset threshold.
[0138] In some embodiments, the bus voltage reaching the first voltage preset threshold means that the bus voltage is greater than or equal to the first voltage preset threshold.
[0139] In some embodiments, the start signal is to start discharging the bleeder resistor circuit.
[0140] In some embodiments, the generator control method further comprises:
[0141] acquiring the bus voltage;
[0142] determining whether the bus voltage reaches a second voltage preset threshold;
[0143] generating a close signal when the bus voltage reaches the second voltage preset threshold.
[0144] In some embodiments, the second voltage preset threshold is 65V.
[0145] In some embodiments, determining whether the bus voltage reaches the second voltage preset threshold means determining whether the bus voltage < the second voltage preset threshold.
[0146] In some embodiments, the bus voltage reaching the second voltage preset threshold means the bus voltage < the second voltage preset threshold.
[0147] In some embodiments, the close signal is to close the bleeder resistor circuit.
[0148] Through the above steps, the generator can be discharged by the bus voltage, avoiding the generator from continuously generating electricity, preventing the rear wheel motor from being blocked and unable to discharge or discharging not in time, and causing the bus voltage to be too high to burn out components.
[0149] In addition, the generator control method of the embodiments of the present application can be implemented by a computer device. The components of the computer device can include but are not limited to a processor and a memory having computer program instructions stored therein.
[0150] In some embodiments, the processor can include a central processing unit (CPU), or a specific integrated circuit (ASIC), or can be configured as one or more integrated circuits that implement one or more embodiments of the present application.
[0151] In some embodiments, the memory can include mass storage for data or instructions. By way of example, and not limitation, the memory can include a Hard Disk Drive (HDD), a floppy disk drive, a solid-state drive (SSD), flash memory, a USB drive, a magneto-optical disk, optical disk, a tape drive, or a combination of two or more of these, or the like. The memory can be removable and / or non-removable (or fixed) as appropriate. The memory can be internal or external as appropriate. In certain embodiments, the memory is a non-volatile memory. In certain embodiments, the memory includes a Read-Only Memory (ROM) and a Random Access Memory (RAM). The ROM can be a mask-programmed ROM, a Programmable ROM (PROM), an Erasable Programmable ROM (EPROM), an Electrically Erasable Programmable ROM (EEPROM), an Electrically Alterable ROM (EAROM), or a FLASH memory, or the like, or a combination of two or more of these, as appropriate. The RAM can be a Static Random-Access Memory (SRAM) or a Dynamic Random Access Memory (DRAM), which can be a Fast Page Mode Dynamic Random Access Memory (FPMDRAM), an Extended Data Output Dynamic Random Access Memory (EDODRAM), a Synchronous Dynamic Random-Access Memory (SDRAM), or the like, as appropriate.
[0152] The memory can be used to store or buffer various data files required for processing and / or communication, and possible computer program instructions executed by the processor.
[0153] The processor reads and executes the computer program instructions stored in the memory to implement any one of the generator control methods in the above embodiments.
[0154] In some embodiments, the computer device can further include a communication interface and a bus. The processor, the memory and the communication interface are connected through the bus and complete communication with each other.
[0155] The communication interface is used to realize the communication between the units, devices, units and / or devices in the embodiments of the application. The communication interface can also realize data communication with other components, such as external devices, image / data acquisition devices, databases, external storage and image / data processing workstations.
[0156] The bus includes hardware, software, or both, to couple components of the computer device to each other and to couple components to other components. The bus includes, but is not limited to, at least one of the following: a data bus, an address bus, a control bus, an expansion bus, a local bus, and the like. By way of example, and not limitation, the bus can include an Accelerated Graphics Port (AGP) or other graphics bus, an Extended Industry Standard Architecture (EISA) bus, a Front Side Bus (FSB), a Hyper Transport (HT) interconnect, an Industry Standard Architecture (ISA) bus, an InfiniBand (IB) interconnect, a Low Pin Count (LPC) bus, a memory bus, a Micro Channel Architecture (MCA) bus, a Peripheral Component Interconnect (PCI) bus, a PCI-Express (PCI-X) bus, a Serial Advanced Technology Attachment (SATA) bus, a Video Electronics Standards Association Local (VLB) bus, or the like, or a combination of two or more of these. Where appropriate, the bus can include one or more buses. Although the present application is described and illustrated with a particular bus, the present application contemplates any suitable bus or interconnect.
[0157] The computer device can execute the generator control method in the embodiments of the present application.
[0158] In addition, in combination with the generator control method in the above embodiments, the embodiments of the present application can provide a computer readable storage medium for implementation. The computer readable storage medium has computer program instructions stored thereon; the computer program instructions are executed by a processor to implement any one of the generator control methods in the above embodiments.
[0159] Embodiment 2
[0160] This embodiment relates to the generator device of the present application.
[0161] Fig. 6 is a schematic diagram of a frame of a power generation device according to an embodiment of the present application. As shown in Fig. 6, a power generation device for an electrically assisted bicycle for implementing the generator control method as described in Embodiment 1 comprises a generator 610 and a torque sensor 620. The generator 610 is connected to a drive motor of the electrically assisted bicycle and is configured to supply power to the drive motor. The torque sensor 620 is connected to the generator 610 and is configured to obtain pedaling force data.
[0162] Further, the power generation device further comprises a Hall sensor 630. The Hall sensor 630 is connected to the generator 610 and is configured to obtain angular velocity data.
[0163] Further, the power generation device further comprises an acceleration sensor 640. The acceleration sensor 640 is connected to the generator 610 and is configured to obtain acceleration data and road slope data.
[0164] Further, the power generation device further comprises a safety protector. The safety protector is connected to the generator 610 and is configured to prevent the generator 610 from continuously discharging.
[0165] The safety protector is configured to prevent the drive motor from being unable to discharge or discharging not in time, and to prevent the bus from being damaged due to excessively high voltage.
[0166] In some embodiments, the safety protector comprises, but is not limited to, a bleeder resistor.
[0167] Embodiment 3
[0168] This embodiment relates to an electrically assisted bicycle of the present application.
[0169] Fig. 7 is a schematic diagram of a frame of an electrically assisted bicycle according to an embodiment of the present application. As shown in Fig. 7, the electrically assisted bicycle comprises a drive motor 710 and a power generation device 720 as described in Embodiment 2. The power generation device 720 is connected to the drive motor 710 and is configured to supply power to the drive motor 710.
[0170] In some embodiments, the drive motor 710 comprises, but is not limited to, a hub motor.
[0171] Further, the electrically assisted bicycle further comprises a power supply 730. The power supply 730 is connected to the drive motor 710 and the power generation device 720, respectively, and is configured to supply power to the drive motor 710 and to be charged under the action of the power generation device 720.
[0172] The above merely describes preferred embodiments of the present application, and is not intended to limit the implementation and protection scope of the present application. Those skilled in the art should be able to understand that any equivalent substitutions and obvious changes made according to the present application description and drawings should be included in the protection scope of the present application.
Claims
1. A generator control method of an electric assist bicycle, characterized by, The method comprises: acquiring real-time pedaling force data; calculating according to the real-time pedaling force data to obtain real-time limiting current, wherein real-time limiting current = real-time pedaling force data / maximum pedaling force data * maximum current, maximum pedaling force data is the maximum pedaling force of the generator, and maximum current is the maximum current of the driving motor; generating a first driving signal according to the real-time limiting current.
2. The driving method according to claim 1, wherein The method further comprises: acquiring first angular velocity at a first time and second angular velocity at a second time; calculating according to the first angular velocity and the second angular velocity to obtain angular acceleration, wherein angular acceleration = ((first angular velocity - second angular velocity) * number of generator pole pairs) / (first time - second time); calculating according to the angular acceleration to obtain driving current, wherein driving current = generator virtual inertia current sensitivity constant * angular acceleration / generator inertia constant; generating a second driving signal according to the driving current.
3. The driving method according to claim 2, wherein The method further comprises: acquiring acceleration data; generating a brake force gain signal in the case that the acceleration data is a non-negative value; generating a brake force loss signal in the case that the acceleration data is a negative value; and / or acquiring feedback force; generating a brake force gain signal in the case that the feedback force is a non-0 value; generating a brake force loss signal in the case that the feedback force is a 0 value.
4. The generator control method according to any one of claims 1 to 4, characterized by, The method further comprises: acquiring road slope data; calculating according to the road slope data to obtain brake force current, wherein brake force current = tan (road slope data) * generator slope resistance coefficient + generator resistance constant; generating a third driving signal according to the brake force current; and / or acquiring road slope data; calculating according to the road slope data to obtain target speed, wherein target speed = wheel diameter * pedaling frequency * gear shift gear coefficient, gear shift gear coefficient = (1 - tan (road slope data)) * gear ratio; generating a fourth driving signal according to the target speed.
5. A power generation device for an electric assist bicycle for executing the generator control method according to any one of claims 1 to 4, characterized by The apparatus comprises: a generator connected with a driving motor of an electric-assisted bicycle, for supplying power to the driving motor; a torque sensor connected with the generator, for acquiring pedaling force data.
6. The power generation device of claim 5, wherein The apparatus further comprises: a Hall sensor connected with the generator, for acquiring angular velocity data; and / or an acceleration sensor connected with the generator, for acquiring acceleration data and road slope data.
7. An electric assist bicycle characterized by comprising: The apparatus comprises: a driving motor; a generator as claimed in any one of claims 5-6, connected with the driving motor, for supplying power to the driving motor.
8. The electric assist bicycle of claim 7, wherein, The apparatus further comprises: a power supply connected with the driving motor and the generator respectively, for supplying power to the driving motor and charging under the action of the generator.
9. A computer device comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, characterized in that, The processor executes the computer program to implement the generator control method as claimed in any one of claims 1-4.
10. A computer-readable storage medium having stored thereon a computer program, characterized in that, The program is executed by the processor to implement the generator control method as claimed in any one of claims 1-5.
Citation Information
Patent Citations
Method of speed adjustment by motor controller inclination sensing for electric aided-bicycle
CN106515985A
Power output control method of electric auxiliary bicycle
CN113022774A
Electronic system and motor driving method for electric power-assisted bicycle
CN115402459A
Generator control method of electric moped, power generation device and electric moped
CN118953055A
Servo driving system for high-precision control of large torque output of electric moped
CN220262975U