Motorcycle engine control method based on motor signals
By using a control method based on motor signals, and by generating simulated crankshaft position signals using Hall sensors and logic conversion modules, the problem of easy damage to crankshaft position sensors is solved, and sensorless accurate detection and stable engine operation are achieved.
Patent Information
- Application Number
- CN202511199785.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-08-26
- Publication Date
- 2025-11-07
AI Technical Summary
The crankshaft position sensor in a motorcycle engine is prone to damage, which affects the engine's reliability.
By using a control method based on motor signals, a simulated crankshaft position signal is generated using a Hall sensor and a logic conversion module. Combined with a signal processing module and a microcontroller unit, the crankshaft position can be detected without a crankshaft position sensor, and a shutdown signal is output when the sensor fails.
It enables accurate crankshaft position detection without the need for a crankshaft position sensor, improving engine reliability and stability, and reducing modifications required for compatibility with existing electronic fuel injection engines.
Smart Images

Figure CN120906705A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to a control method, in particular to a motorcycle engine control method based on motor signals. BACKGROUND
[0002] With the improvement of environmental awareness, motorcycles usually adopt electronic injection engines. When the electronic injection engine is running, the angle of the crankshaft of the engine needs to be known to obtain accurate fuel injection and ignition timing, so as to control the efficient operation of the engine. At present, the crankshaft position sensor is usually used to detect the angle of the crankshaft. However, the crankshaft position sensor of the motorcycle engine on the market is easy to be damaged, which easily affects the normal operation of the motorcycle and causes the reliability of the motorcycle to decrease. SUMMARY
[0003] In order to overcome the above defects, the present application provides a motorcycle engine control method based on motor signals, which has the advantage of detecting the position of the crankshaft without the need for a crankshaft position sensor.
[0004] The technical scheme adopted by the present application to solve the technical problems is: a motorcycle engine control method based on motor signals, comprising the following steps:
[0005] S1, after turning on the power switch, starting the engine, starting the generator and the crankshaft to rotate, collecting U-phase Hall signals, V-phase Hall signals, W-phase Hall signals and crankshaft Hall signals by the Hall sensor on the generator, and then inputting the U-phase Hall signals, V-phase Hall signals, W-phase Hall signals and crankshaft Hall signals into a logic conversion module and a micro control unit;
[0006] S2, after the logic conversion module receives the U-phase Hall signals, V-phase Hall signals, W-phase Hall signals and crankshaft Hall signals, the logic conversion module generates simulated crankshaft position signals and inputs the simulated crankshaft position signals into a signal processing module. If the micro control unit can receive the U-phase Hall signals, V-phase Hall signals, W-phase Hall signals and crankshaft Hall signals, the micro control unit outputs a continuous high level crankshaft control signal to the signal processing module. If the micro control unit cannot receive any one of the U-phase Hall signals, V-phase Hall signals, W-phase Hall signals and crankshaft Hall signals, the micro control unit outputs a continuous low level crankshaft control signal to the signal processing module;
[0007] S3, if the signal processing module receives the continuously high level of crankshaft control signal, the signal processing module converts the simulated crankshaft position signal into the processed crankshaft position signal which can be recognized by the fuel injection control unit, and then inputs the processed crankshaft position signal into the fuel injection control unit, if the signal processing module receives the continuously low level of crankshaft control signal, the signal processing module outputs the continuously low level of flameout signal to the fuel injection control unit.
[0008] S4, after the fuel injection control unit receives the processed crankshaft position signal, the fuel injection control unit calculates the crankshaft position and the rotating speed of the engine, and then adjusts the fuel injection timing and the ignition timing of the engine.
[0009] S5, after the fuel injection control unit receives the continuously low level of flameout signal, the fuel injection control unit stops the fuel injection and the ignition of the engine.
[0010] Optionally, the starting generator is a three-phase alternating current motor.
[0011] Optionally, the signal processing module is internally provided with an AND gate G1, the output end of the logic conversion module and the output end of the micro control unit are connected to the input end of the AND gate G1.
[0012] Optionally, the working voltage of the logic conversion module and the micro control unit is 5V.
[0013] Optionally, the U-phase Hall signal, the V-phase Hall signal, the W-phase Hall signal, the crankshaft Hall signal, the simulated crankshaft position signal and the processed crankshaft position signal are all square wave signals.
[0014] Optionally, the logic conversion module can generate 11 or 17 periods of square wave signals in one rotation of the crankshaft.
[0015] The motorcycle engine control method based on motor signals has the advantages that the U-phase Hall signal, the V-phase Hall signal, the W-phase Hall signal and the crankshaft Hall signal are converted into the simulated crankshaft position signal through the logic conversion module, and then the simulated crankshaft position signal is converted into the processed crankshaft position signal which can be recognized by the fuel injection control unit through the signal processing module, and then the fuel injection control unit adjusts the fuel injection timing and the ignition timing of the engine through the processed crankshaft position signal, and the micro control unit can monitor whether the U-phase Hall signal, the V-phase Hall signal, the W-phase Hall signal and the crankshaft Hall signal are normal, when one of the signals cannot be received, the micro control unit outputs the continuously low level of crankshaft control signal to the signal processing module, so that the signal processing module outputs the low level of flameout signal to shut down the engine, so as to realize the sensor fault detection function. The position of the crankshaft can be detected without the crankshaft position sensor. BRIEF DESCRIPTION OF DRAWINGS
[0016] Figure 1 is the circuit block diagram of the whole machine of the present application;
[0017] Figure 2 is the work flow chart of the present application;
[0018] Figure 3 is the waveform chart of the input and output signals of the logic conversion module of the present application;
[0019] Figure 4 is the logic block diagram of the logic conversion module outputting the CPS12-1 signal of the present application;
[0020] Figure 5 is the logic block diagram of the logic conversion module outputting the CPS18-1 signal of the present application; DETAILED DESCRIPTION
[0021] In order to make the technical means of the present application clearer and to enable the present application to be implemented according to the contents of the specification, the specific embodiments of the present application are described in further detail below in combination with the accompanying drawings and examples, and the following examples are used to illustrate the present application but not to limit the scope of the present application.
[0022] The specific embodiments of the present application detail the motorcycle engine control method based on motor signals as described in the present application, as shown in the figure, the motorcycle engine control method based on motor signals includes the following steps: Figures 1-5
[0023] S1, after turning on the power switch, start the engine, start the generator and the crankshaft rotation, start the Hall sensor on the generator to collect U-phase Hall signal, V-phase Hall signal, W-phase Hall signal and crankshaft Hall signal, and then input the U-phase Hall signal, V-phase Hall signal, W-phase Hall signal and crankshaft Hall signal into the logic conversion module and micro control unit;
[0024] S2, after the logic conversion module receives the U-phase Hall signal, V-phase Hall signal, W-phase Hall signal and crankshaft Hall signal, it generates an analog crankshaft position signal through logic conversion and inputs the analog crankshaft position signal into the signal processing module, if the micro control unit can receive the U-phase Hall signal, V-phase Hall signal, W-phase Hall signal and crankshaft Hall signal, it outputs a continuous high level crankshaft control signal to the signal processing module, if the micro control unit cannot receive any of the U-phase Hall signal, V-phase Hall signal, W-phase Hall signal and crankshaft Hall signal, it outputs a continuous low level crankshaft control signal to the signal processing module;
[0025] S3, if the signal processing module receives a continuously high level of crankshaft control signal, the signal processing module converts the analog crankshaft position signal into a processed crankshaft position signal that can be recognized by the fuel injection control unit, and then inputs the processed crankshaft position signal into the fuel injection control unit, if the signal processing module receives a continuously low level of crankshaft control signal, the signal processing module outputs a continuously low level of ignition-off signal to the fuel injection control unit.
[0026] S4, after the fuel injection control unit receives the processed crankshaft position signal, it calculates the crankshaft position and the speed of the engine, and then adjusts the fuel injection timing and the ignition timing of the engine.
[0027] S5, after the fuel injection control unit receives a continuously low level of ignition-off signal, it stops the fuel injection and ignition of the engine. The U-phase Hall signal, the V-phase Hall signal, the W-phase Hall signal and the crankshaft Hall signal are converted into an analog crankshaft position signal by the logic conversion module, and then the analog crankshaft position signal is converted into a processed crankshaft position signal that can be recognized by the fuel injection control unit by the signal processing module, and then the fuel injection control unit adjusts the fuel injection timing and the ignition timing of the engine through the processed crankshaft position signal, while the micro control unit can monitor whether the U-phase Hall signal, the V-phase Hall signal, the W-phase Hall signal and the crankshaft Hall signal are normal, when a certain signal cannot be received, the micro control unit outputs a continuously low level of crankshaft control signal to the signal processing module, so that the signal processing module outputs a low level of ignition-off signal to shut down the engine, thereby realizing the sensor fault detection function. It has the advantage of detecting the position of the crankshaft without the need for a crankshaft position sensor.
[0028] In this embodiment, the starting generator is provided with four Hall sensors, three of which correspond to the U-phase, V-phase and W-phase of the starting generator respectively, and the other one corresponds to the crankshaft. When the crankshaft rotates to a set position (angle), the Hall sensor corresponding to the crankshaft can be triggered (the crankshaft Hall sensor can only detect the number of revolutions or the approximate position of the crankshaft, and the precision of the crankshaft Hall sensor alone cannot detect the specific position of the crankshaft, so U-phase Hall signal, V-phase Hall signal and W-phase Hall signal are needed for logic conversion to accurately measure the position of the crankshaft). All Hall sensors are powered by the Hall power supply module, and the Hall power supply module is powered by the storage battery. In this embodiment, the storage battery is a lead-acid storage battery.
[0029] The logic conversion module generates an analogized crankshaft position signal (CPS signal) through logic conversion after receiving the U-phase Hall signal, the V-phase Hall signal, the W-phase Hall signal and the crankshaft Hall signal. In this embodiment, the logic conversion module can generate 11 cycles of square wave signals (CPS12-1 signal) as the analogized crankshaft position signal or 17 cycles of square wave signals (CPS18-1 signal) as the analogized crankshaft position signal, i.e. the analogized crankshaft position signal (CPS signal) is the CPS12-1 signal or the CPS18-1 signal, which can be selected by the user according to the requirement.
[0030] The logic conversion module generates an analogized crankshaft position signal in this embodiment, which has another advantage that this embodiment can be compatible with the existing gasoline direct injection engine on the market which detects the crankshaft position through a crankshaft position sensor. By replacing the crankshaft position sensor with the logic conversion module, the logic conversion module generates an analogized crankshaft position signal to simulate the crankshaft position signal detected by the crankshaft position sensor, and the signal processing module processes the analogized crankshaft position signal to adapt the signal to the existing fuel injection control unit, thereby reducing the modification of the engine.
[0031] Optionally in this embodiment, the starting generator is a three-phase alternating current motor.
[0032] Optionally in this embodiment, the signal processing module is internally provided with an AND gate G1, the output end of the logic conversion module and the output end of the micro control unit are connected to the input end of the AND gate G1. As shown in Figure 1 The signal processing module includes the AND gate G1, the resistor R1, the resistor R2, the resistor R3, the resistor R4, the resistor R5, the switch tube Q1 (NPN switch tube or NMOS tube), the switch tube Q2 (PNP switch tube or PMOS tube) and the capacitor C1. When the analogized crankshaft position signal (CPS signal) is output as a high level, the switch tube Q1 and the switch tube Q2 are turned on, and the processed crankshaft position signal (CPS1 signal) is output as a high level. When the analogized crankshaft position signal (CPS signal) is output as a low level, the switch tube Q1 and the switch tube Q2 are turned off, and the processed crankshaft position signal (CPS1 signal) is output as a low level, i.e. when the input signal of the signal processing module is a high level, the output signal is also a high level, and when the input signal is a low level, the output signal is also a low level. The AND gate G1 stops the machine when it detects an abnormal Hall sensor signal.
[0033] In some optional embodiments, the signal output by the signal processing module can also be adjusted according to the requirement of the input end of the fuel injection control unit.
[0034] Optionally in this embodiment, the working voltage of the logic conversion module and the micro control unit is 5V.
[0035] Optionally in this embodiment, the U-phase Hall signal, the V-phase Hall signal, the W-phase Hall signal, the crankshaft Hall signal, the analog crankshaft position signal and the processed crankshaft position signal are square wave signals.
[0036] Optionally in this embodiment, the logic conversion module for one rotation of the crankshaft can generate 11 (CPS 12-1 signal) or 17 (CPS 18-1 signal) period square wave signals. As shown in Figure 4 The logic devices in the logic conversion module outputting the CPS 12-1 signal include NOT gate G2, NOT gate G3, NOT gate G4, AND gate G5, AND gate G6, XNOR gate G7, OR gate G8 and AND gate G9, and the specific circuit is: the U-phase Hall signal enters AND gate G6, XNOR gate G7 and enters AND gate G5 through NOT gate G2, the V-phase Hall signal enters AND gate G5 and enters AND gate G6 through NOT gate G3, the W-phase Hall signal enters AND gate G5 and enters AND gate G6 through NOT gate G4, the crankshaft Hall signal enters XNOR gate G7, the signals outputted by AND gate G5 and AND gate G6 enter OR gate G8, the signal outputted by OR gate G8 and the signal outputted by XNOR gate G7 enter AND gate G9, and the analog CPS 12-1 signal outputted by AND gate G9 enters AND gate G1.
[0037] As shown in Figure 5 The logic devices in the logic conversion module outputting the CPS 18-1 signal include NOT gate G10, AND gate G11, AND gate G12, AND gate G13 and OR gate G14, and the specific circuit is: the U-phase Hall signal enters AND gate G11 and AND gate G12, the V-phase Hall signal enters AND gate G11 and AND gate G13, the W-phase Hall signal enters AND gate G12 and AND gate G13, the crankshaft Hall signal enters AND gate G13 through NOT gate G10, the signals outputted by AND gate G11, AND gate G12 and AND gate G13 enter OR gate G14, and the signal outputted by OR gate G14 outputting the analog CPS 18-1 signal enters AND gate G1. The logic devices in this embodiment are all prior art and will not be described herein.
[0038] The implementation of the function of stopping when detecting the abnormality of the Hall sensor in this embodiment is as follows: when the Hall sensor signal is normally output, the crankshaft control signal (CPS Ctrl) output by the control port of the micro control unit is high level, when the analog crankshaft position signal (CPS signal) and the crankshaft control signal (CPS Ctrl) enter the AND gate G1, the AND gate G1 outputs the same signal as the analog crankshaft position signal (CPS signal) (because the AND gate has the characteristic that the output signal is high level when all the input signals are high level, otherwise the output signal is low level), then the signal processing module processes the signal, and finally the processed crankshaft position signal (CPS1 signal) is output in the form of high / low square wave signal, and when the Hall signal is abnormal (such as lacking a certain Hall signal), the micro control unit port detects it and controls the port to output the low level crankshaft control signal (CPS Ctrl), the analog crankshaft position signal (CPS signal) and the low level crankshaft control signal (CPS Ctrl) enter the AND gate G1, the AND gate G1 outputs the continuous low level signal, then the signal processing module processes it and outputs the continuous low level signal, and the fuel injection control unit receives the continuous low level signal and stops the engine fuel injection and ignition.
[0039] The motorcycle engine control method based on the motor signal in this embodiment has the advantage that the position of the crankshaft can be detected without the crankshaft position sensor.
Claims
1. A motorcycle engine control method based on motor signals, characterized by, It comprises the following steps: S1, after turning on the power switch, start the engine, start the generator and the crankshaft rotation, start the Hall sensor on the generator to collect U-phase Hall signal, V-phase Hall signal, W-phase Hall signal and crankshaft Hall signal, and then input the U-phase Hall signal, V-phase Hall signal, W-phase Hall signal and crankshaft Hall signal into the logic conversion module and micro control unit; S2, after the logic conversion module receives the U-phase Hall signal, V-phase Hall signal, W-phase Hall signal and crankshaft Hall signal, it generates an analog crankshaft position signal through logic conversion and inputs it into the signal processing module. If the micro control unit can receive the U-phase Hall signal, V-phase Hall signal, W-phase Hall signal and crankshaft Hall signal, it outputs a continuous high level crankshaft control signal to the signal processing module. If the micro control unit cannot receive any of the U-phase Hall signal, V-phase Hall signal, W-phase Hall signal and crankshaft Hall signal, it outputs a continuous low level crankshaft control signal to the signal processing module; S3, if the signal processing module receives a continuous high level crankshaft control signal, the signal processing module converts the analog crankshaft position signal into a processed crankshaft position signal that can be recognized by the fuel injection control unit, and then inputs the processed crankshaft position signal into the fuel injection control unit. If the signal processing module receives a continuous low level crankshaft control signal, the signal processing module outputs a continuous low level ignition signal to the fuel injection control unit. S4, after the fuel injection control unit receives the processed crankshaft position signal, it calculates the crankshaft position and the engine speed, and then adjusts the engine fuel injection timing and ignition timing. S5, after the fuel injection control unit receives a continuous low level ignition signal, it stops the engine fuel injection and ignition.
2. The motorcycle engine control method based on motor signals according to claim 1, characterized in that: The starting generator is a three-phase alternating current motor.
3. The motor cycle engine control method based on motor signals as claimed in claim 1 wherein: The signal processing module is internally provided with an AND gate G1, the output end of the logic conversion module and the output end of the micro control unit are connected to the input end of the AND gate G1.
4. The motor cycle engine control method based on motor signals as claimed in claim 1 wherein: The working voltage of the logic conversion module and the micro control unit is 5V.
5. The motor cycle engine control method based on motor signals as claimed in claim 1 wherein: The U-phase Hall signal, V-phase Hall signal, W-phase Hall signal, crankshaft Hall signal, analog crankshaft position signal and processed crankshaft position signal are all square wave signals.
6. The motor cycle engine control method based on motor signals as claimed in claim 5 wherein: The logic conversion module can generate 11 or 17 cycles of square wave signals per rotation of the crankshaft.