Mountain electric motorcycle main control system based on double 34-pin ECU (Electronic Control Unit) control interfaces

By using a main control system for mountain electric motorcycles based on dual 34-pin ECU control interfaces, and combining multiple modules and redundant design, the problems of high development complexity, high cost and difficulty of use of existing systems have been solved, achieving efficient, reliable multi-functional integration and simplified maintenance.

CN223736175UActive Publication Date: 2025-12-30JUNCHUANG DRIVE TECHNOLOGY (DONGGUAN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202520315210.3
Authority / Receiving Office
CN · China
Patent Type
Utility models(China)
Current Assignee / Owner
Filing Date
2025-02-26
Publication Date
2025-12-30
Estimated Expiration
2035-02-26

AI Technical Summary

Technical Problem

Existing main control systems for mountain electric motorcycles have shortcomings in terms of high development complexity, increased material and manufacturing costs, difficult interface usage, and large space occupation, making it difficult to meet diverse usage needs and high reliability requirements in complex environments.

Method used

The main control system for mountain electric motorcycles adopts a dual 34-pin ECU control interface. Multiple modules are connected through the first and second microcontrollers, including power supply, communication module, three-phase motor drive, Hall current detection sensor module and indicator light drive module. The interface layout and signal distribution are optimized, and redundancy design is added to improve the system's reliability and compatibility.

Benefits of technology

It achieves efficient data transmission and multi-functional integration, improves system reliability and compatibility, reduces development complexity and material costs, adapts to diverse usage needs and complex environments, and simplifies user maintenance processes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN223736175U_ABST
    Figure CN223736175U_ABST
Patent Text Reader

Abstract

The utility model discloses a mountain electric motorcycle main control system based on double 34-pin ECU (Electronic Control Unit) control interfaces, which is used for controlling a mountain electric motorcycle and comprises a front wheel brake, a rear wheel brake, an instrument panel controller and a complete machine controller system, the main control system comprises a first single-chip microcomputer, a second single-chip microcomputer, a power supply connected with the first single-chip microcomputer and the second single-chip microcomputer, a plurality of communication modules, a three-phase motor driver, a first 34-pin ECU interface control module, a second 34-pin ECU interface control module, and an A-phase / B-phase / C-phase programmable Hall current detection sensor module connected with the first single-chip microcomputer. The indicating lamp driving module is connected with the second single-chip microcomputer. According to the utility model, various different control interfaces are used, so that the performance of detection and control related to the main control system, the instrument panel controller and the whole machine controller system of the mountain electric motorcycle is greatly improved.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The utility model relates to mountain electric motorcycle main control system technical field, concretely relates to a kind of mountain electric motorcycle main control system based on double 34 needle foot ECU control interface. BACKGROUND

[0002] Mountain electric motorcycle main control system covers control interface, embedded system design, motor control, instrument panel controller, whole machine controller system and multiple fields.In technical demand, the control interface of mountain electric motorcycle main control system often needs to face the following technical demands:a) multifunctional integration: support power control, energy and heat dissipation management, multiple data recording and other functions.b) High reliability: working in harsh environment, must have higher waterproof, dustproof and anti-interference, anti-vibration ability.c) Fast response capability: in mountain cross-country and competition scene, control interface must be able to respond with millisecond and microsecond level fast speed.d) Low power consumption design: control interface wants to reduce energy consumption as much as possible, there are low-power working mode in multiple places, low power consumption and normal operation mode are closely combined together.

[0003] The use of double 34 needle foot interface can significantly alleviate the shortcomings of traditional single-joint control interface system.Through increasing more control and detection needle foot resources, the following functions can be realized:a) Accurate control of multiple independent subsystems (such as power unit, brake unit, suspension system) and the like.b) Realize more signal input and output, support more hall sensors and actuators.c) Provide reliable multiple communication channels, which can support remote diagnosis and OTA (over-the-air) program update.

[0004] Future development direction of prior art is:

[0005] 1) Intelligentization and Internet of Things.For cloud management: through the communication ability of double 34 needle foot interface, new type main control system can realize real-time connection with cloud, support data upload, remote diagnosis and control action optimization.For intelligent algorithm: AI algorithm can be introduced to optimize riding experience, such as adaptive power regulation, mountain cross-country path route analysis, simulation and regenerative braking efficiency optimization, energy recovery in time.

[0006] 2) Interface standardization and compatibility.Multi-brand compatibility: future double 34 needle foot interface will develop towards internationalization and standardization, so that it can be compatible with more brand components, such as battery pack, display screen and various sensors.Modular expansion: further optimize interface design, so that it can flexibly access new function modules, such as automatic driving auxiliary system.

[0007] 3) High performance and low power consumption. Use new materials: use high conductivity, low resistance new materials (such as TVS tube, silicon carbide) to improve interface performance. Optimize interface layout: while improving interface performance, optimize and reduce energy consumption through PCB layout and wiring, and optimize heat dissipation.

[0008] 4) Safety and stability. For redundant design: increase redundant space, lines and key signal backup to improve system fault tolerance.

[0009] 5) Environmental adaptability improvement. Adapt to extreme environment: future systems can further optimize the waterproof and dustproof performance of the interface to ensure normal operation in extremely cold, hot and high altitude environments. Vibration protection: through the optimization of the physical structure of the interface, the anti-vibration ability is improved to adapt to complex mountain off-road conditions. 6) Cost control. Simplify maintenance: optimize interface design and fault diagnosis process to reduce the maintenance difficulty of ordinary users and technicians. Reduce cost: through large-scale production and process optimization, further reduce manufacturing cost and material procurement cost, so that the main control system can cover a wider market.

[0010] Currently, the main control system of mountain electric motorcycles often needs to integrate multiple sensors and control interfaces to realize comprehensive management of instrument panel controllers, electric motors, whole machine controller systems and other aspects. Collect, analyze and output the optimal braking force for different input signals. This intelligent control interface has the following advantages.

[0011] (1) Efficient data transmission and multiple function integration. Based on the design of double 34-pin ECU connector interface, it provides rich pin resources to support the input and output of multiple signals, such as instrument panel controller, whole machine controller system, electric motor control, Hall sensor detection, various light control and other functions. This integration improves the overall reliability and performance of the system.

[0012] (2) Compatibility and modular design. The standardized interface design of double 34-pin makes the main control system compatible with different brands and specifications of peripheral devices. This modular design facilitates subsequent product upgrades and maintenance, reducing user costs. Good insulation, strong anti-interference ability.

[0013] (3) Double 34-pin connector interface, foolproof in use, through the interface structure, the skeleton (plastic column) used in different parts to avoid misplug and damage the interface.

[0014] (4) High reliability and stability. Using double 34-pin connector interface can significantly reduce the risk of failure caused by incorrect wiring or insufficient interface, thereby improving the reliability of the whole vehicle. This is particularly important in mountainous complex environments, ensuring that the vehicle operates normally in rugged terrain and adverse weather conditions.

[0015] (5) Support multiple communication methods and communication protocols. It can support multiple common communication protocols such as CAN bus, RS485, UART, I2C, SPI, Bluetooth, etc. This enables the main control system to efficiently implement real-time communication with other control modules and external devices, enabling the linkage of the entire controller system. Realize the networking of man-car, car-car, car-road, man-road, and man-car-home.

[0016] (6) Adapt to the diverse needs of users. Mountain electric motorcycles need to meet diverse usage needs, including mountains, off-road, climbing, race tracks, etc. Based on the design of double 34-pin interface, it can be more flexible to realize function expansion, such as adding power mode, regenerative braking, energy recovery, and remote monitoring, etc.

[0017] However, the current main control system of mountain electric motorcycles still has some shortcomings.

[0018] (1) High development complexity. The design of double 34-pin interface requires the cooperation of multiple professionals in development and debugging, especially in signal distribution, interface specification, and software and hardware adaptability and compatibility, which has high research and development complexity.

[0019] (2) Increased material and manufacturing costs. Due to the complexity of the interface and the high-density pin layout, the production process requirements for materials are higher, which will lead to an increase in material and manufacturing costs.

[0020] (3) Increased interface usage difficulty. For ordinary users or maintenance personnel with low technical level, the use of double 34-pin interface may be more complex, which is not conducive to quickly troubleshooting simple faults. At the same time, it is not convenient to disassemble.

[0021] (4) Large space occupation. Double 34-pin interface may require more structural design considerations in vehicle layout and space allocation, especially in miniaturization design, which may become a limiting factor. Practical new content

[0022] In view of the shortcomings of the prior art, the utility model provides a mountain electric motorcycle main control system based on double 34-pin ECU control interface, which greatly improves the performance of the mountain electric motorcycle main control system and the instrument panel controller, the entire controller system related to each detection and control.

[0023] The utility model provides a kind of mountain electric motorcycle main control system based on double 34 needle foot ECU control interface, the main control system is used to control mountain electric motorcycle, the system of mountain electric motorcycle includes front wheel brake, rear wheel brake, instrument panel controller and whole machine controller system, the main control system includes: first single-chip microcontroller and second single-chip microcontroller, power supply, multiple communication modules, three-phase motor drive, first 34 needle foot ECU interface control module and second 34 needle foot ECU interface control module connected with the first single-chip microcontroller and the second single-chip microcontroller, A phase / B phase / C phase programmable hall current detection sensor module connected with the first single-chip microcontroller, indicator light drive module connected with the second single-chip microcontroller, and mutually connected high current equalization module and parallel high-voltage large capacitor group;

[0024] The first 34 needle foot ECU interface control module is also connected with the first ground wire=GND1 of the first single-chip microcontroller, the power supply, the second ground wire=C_GND of the PCB board high current area of the main control system, the instrument panel controller and the whole machine controller system;

[0025] The second 34 needle foot ECU interface control module is also connected with the first ground wire=GND1 of the first single-chip microcontroller, the power supply, the A phase / B phase / C phase programmable hall current detection sensor module, the front wheel brake, the rear wheel brake and the whole machine controller system.

[0026] Preferably, the power supply includes: first power supply circuit, second power supply circuit, third power supply circuit, fourth power supply circuit, fifth power supply circuit and sixth power supply circuit, and power supply voltage positive pole B+ end and power supply voltage negative pole B- end, the B+ end is connected with +96V voltage, and the B- end is connected with third ground wire=PGND;

[0027] The first power supply circuit is a voltage stabilizing circuit for converting +96V voltage of the B+ end into +36V voltage;The second power supply circuit is a voltage stabilizing circuit for converting +36V voltage into +14.3V voltage;The third power supply circuit is a voltage stabilizing circuit for converting +14.3V voltage into +5V_LED all lamp power supply voltage;The fourth power supply circuit is a voltage stabilizing circuit for converting +14.3V voltage into +5V_EXT external power supply voltage;The fifth power supply circuit is a voltage stabilizing circuit for converting +14.3V voltage into +5V internal power supply voltage;The sixth power supply circuit is a voltage stabilizing circuit for converting +5V internal power supply voltage into +3.3V internal power supply voltage.

[0028] Preferably, the A / B / C phase programmable Hall current detection sensor module comprises: high-precision current acquisition circuit, A / B / C phase programmable Hall current detection sensor interface and Hall detection chip connected in sequence, the high-precision current acquisition circuit is connected with the second 34-pin ECU interface control module, and the Hall detection chip is connected with the first single-chip microcomputer.

[0029] Preferably, the first 34-pin ECU interface control module and the second 34-pin ECU interface control module adopt straight insertion 34-pin ECU connector joints, the first row of pin feet is provided with 9 columns, the second row is provided with 8 columns, the third row is provided with 8 columns, and the fourth row is provided with 9 columns.

[0030] Preferably, the whole machine controller system further comprises: a brake end, a support foot and a throttle;

[0031] The connection relationship of each pin foot of the first 34-pin ECU interface control module is as follows:

[0032] The first to fourth pin feet are connected with the positive electrode end B+ of the power supply voltage;

[0033] The fifth to eighth pin feet are connected with the second ground wire C_GND;

[0034] The ninth pin foot is connected with the anode CHG_D of the charging end;

[0035] The tenth pin foot is connected with the instrument panel controller and outputs the second bit DIN_2 of the instrument panel controller data line signal;

[0036] The eleventh pin foot is connected with the instrument panel controller and outputs the third bit DIN_3 of the instrument panel controller data line signal;

[0037] The twelfth pin foot is connected with the instrument panel controller and outputs the fourth bit DIN_4 of the instrument panel controller data line signal;

[0038] The thirteenth pin foot is connected with the instrument panel controller and outputs the fifth bit DIN_5 of the instrument panel controller data line signal;

[0039] The fourteenth pin foot is connected with the instrument panel controller and outputs the sixth bit DIN_6 of the instrument panel controller data line signal;

[0040] The fifteenth pin foot is connected with the instrument panel controller and outputs the seventh bit DIN_7 of the instrument panel controller data line signal;

[0041] The sixteenth pin foot is connected with the instrument panel controller and outputs the eighth bit DIN_8 of the instrument panel controller data line signal;

[0042] The 17th pin is connected with the first ground wire GND1;

[0043] The 18th pin is connected with the power voltage negative terminal B- and the third ground wire PGND;

[0044] The 19th pin is connected with the brake terminal and outputs the brake terminal signal BRAKE;

[0045] The 20th pin is connected with the support foot and outputs the support foot detection terminal signal KICK_STAND;

[0046] The 21st pin is connected with the throttle and outputs the throttle tilt outlet interface signal TILT;

[0047] The 22nd pin is connected with the first ground wire GND1;

[0048] The 23rd pin is connected with the instrument panel controller and outputs the pulse width modulation signal PWM_OUT for speed detection adjustment.

[0049] The 24th pin is connected with the first single chip microcomputer and bidirectionally transmits the first CAN communication high level output terminal signal CANH1;

[0050] The 25th pin is connected with the first single chip microcomputer and bidirectionally transmits the first CAN communication low level output terminal signal CANL1;

[0051] The 26th pin is connected with the first ground wire GND1;

[0052] The 27th pin is connected with the first single chip microcomputer and bidirectionally transmits the RS485 communication high side output terminal RS485_A signal;

[0053] The 28th pin is connected with the first single chip microcomputer and bidirectionally transmits the RS485 communication low side output terminal RS485_B signal;

[0054] The 29th pin is connected with the first ground wire GND1;

[0055] The 30th pin is connected with the second single chip microcomputer and outputs the burning data terminal signal F103_SWDIO;

[0056] The 31st pin is connected with the second single chip microcomputer and outputs the burning clock terminal signal F103_SWDCLK;

[0057] The 32nd pin is connected with the second single chip microcomputer and outputs the reset terminal signal F103_NRST;

[0058] The 33rd pin is connected with the instrument panel controller and outputs the instrument panel controller data line signal DIN_1;

[0059] The 34th pin is connected with the dashboard controller and outputs the dashboard controller data line signal DIN_0 bit 0.

[0060] Preferably, the whole machine controller system comprises: an energy recovery function detection module, a manual gear speed button / manual cruise button and an incremental encoder connected with the first single-chip microcomputer, and a motor and an unlocking starting module; the high-precision current acquisition circuit comprises an A-phase electromagnetic ring, a B-phase electromagnetic ring and a C-phase electromagnetic ring;

[0061] The connection relationship of each pin of the second 34-pin ECU interface control module is as follows:

[0062] The 1st-2nd pins are connected with the first ground wire GND1;

[0063] The 3rd pin is connected with the first single-chip microcomputer and the front wheel brake and outputs a front wheel brake detection signal THROTTLE_0;

[0064] The 4th pin is connected with the first single-chip microcomputer and the rear wheel brake and outputs a rear wheel brake detection signal THROTTLE_1;

[0065] The 5th pin is connected with the first single-chip microcomputer and outputs an energy recovery signal REGEN of the energy recovery function detection module;

[0066] The 6th pin is connected with the first single-chip microcomputer and outputs a button signal BUTTON of the manual gear speed button / manual cruise button;

[0067] The 7th pin is connected with the first ground wire GND1;

[0068] The 8th pin is connected with the first single-chip microcomputer and outputs a zero position signal Z_ENCODER of the incremental encoder, which is a key calibration signal.

[0069] The 9th pin is connected with the C-phase electromagnetic ring and outputs a C-phase Hall current signal HALL3;

[0070] The 10th pin is connected with the B-phase electromagnetic ring and outputs a B-phase Hall current signal HALL2;

[0071] The 11th pin is connected with the A-phase electromagnetic ring and outputs an A-phase Hall current signal HALL1;

[0072] The 12th pin is connected with the motor and outputs a temperature detection signal M_TEMP;

[0073] The 13th pin is connected with the first ground wire GND1;

[0074] The 14th pin is connected with the first single-chip microcomputer and inputs a first UART serial communication receiving end signal MCU_RX_1;

[0075] The 15th pin is connected with the first single-chip microcomputer and outputs a first UART serial communication sending end signal MCU_TX_1;

[0076] The 16th pin is connected with the first ground wire GND1;

[0077] The 17th pin is connected with the first single-chip microcomputer and inputs a second UART serial communication receiving end signal MCU_RX_2;

[0078] The 18th pin is connected with the first single-chip microcomputer and outputs a second UART serial communication sending end signal MCU_TX_2;

[0079] The 19th pin is connected with the first ground wire GND1;

[0080] The 20th pin is connected with the first single-chip microcomputer and inputs a third UART serial communication receiving end signal MCU_RX_3;

[0081] The 21st pin is connected with the first single-chip microcomputer and outputs a third UART serial communication sending end signal MCU_TX_3;

[0082] The 22nd pin is connected with the first ground wire GND1;

[0083] The 23rd pin is connected with the first single-chip microcomputer and outputs a burning clock end signal SWDCLK;

[0084] The 24th pin is connected with the first single-chip microcomputer and outputs a burning data end signal SWDIO;

[0085] The 25th pin is connected with the first single-chip microcomputer and outputs a reset end signal NRST;

[0086] The 26th pin is connected with the third power supply circuit +5V_LED;

[0087] The 27th pin is connected with the second single-chip microcomputer and outputs a second CAN communication high-level output end signal CANH2;

[0088] The 28th pin is connected with the second single-chip microcomputer and outputs a second CAN communication low-level output end signal CANL2;

[0089] The 29th pin is connected with the +36V of the first power supply circuit;

[0090] The 30th pin is connected with the +36V of the first power supply circuit;

[0091] The 31st pin is connected with +5V_EXT of the fourth power supply circuit;

[0092] The 32nd pin is connected with +5V_EXT of the fourth power supply circuit;

[0093] The 33rd pin is connected with the first ground wire GND1;

[0094] The 34th pin is connected with the unlocking starting module and outputs the unlocking starting signal KEYLOCK.

[0095] Preferably, the plurality of communication modules comprises a Bluetooth communication module, a CAN bus communication module, an RS485 communication module, an USART serial communication module, an UART serial communication module, and an IIC communication module connected with the first single-chip microcomputer and the second single-chip microcomputer; the main control system further comprises a three-axis gyroscope which communicates with the first single-chip microcomputer through the IIC communication module;

[0096] The first 34-pin ECU interface control module, the second 34-pin ECU interface control module, the three-axis gyroscope, the CAN bus communication module and the RS485 communication module are each provided with a corresponding TVS tube surge protection interface circuit;

[0097] The UART serial communication module and the whole machine controller system are each provided with a corresponding TVS tube surge protection interface circuit and an RC resistance-capacitance filter circuit.

[0098] Preferably, the three-phase motor drive comprises an A-phase MOS drive circuit, a B-phase MOS drive circuit and a C-phase MOS drive circuit;

[0099] The three-phase motor comprises an A-phase MOS drive circuit, a B-phase MOS drive circuit and a C-phase MOS drive circuit;

[0100] The A-phase MOS drive circuit comprises an A-phase main system board and a MOS tube aluminum substrate connection socket connected in sequence, an A-phase MOS drive chip and an A-phase voltage detection output interface;

[0101] The B-phase MOS drive circuit comprises a B-phase main system board and a MOS tube aluminum substrate connection socket connected in sequence, a B-phase MOS drive chip and a B-phase voltage detection output interface;

[0102] The C-phase MOS drive circuit comprises a C-phase main system board and a MOS tube aluminum substrate connection socket connected in sequence, a C-phase MOS drive chip and a C-phase voltage detection output interface;

[0103] The A-phase MOS drive chip, the B-phase MOS drive chip and the C-phase MOS drive chip are connected with the driving control output interface of the first single-chip microcomputer and / or the second single-chip microcomputer through corresponding sockets, and the A-phase voltage detection output interface, the B-phase voltage detection output interface and the C-phase voltage detection output interface are connected with the A / D port of the first single-chip microcomputer and / or the second single-chip microcomputer.

[0104] Preferably, the indicator lamp driving module comprises: phase indicator lamps of A phase / B phase / C phase of the three-phase motor connected with the second single-chip microcomputer, working indicator lamps of upward / downward / leftward / rightward / forward / backward movement of the vehicle, indicator lamps of various working states of normal uniform motion of the vehicle / slip of the vehicle / start of the vehicle / acceleration of the vehicle / climbing of the vehicle / downhill of the vehicle / deceleration of the vehicle / gear shifting of the vehicle / multi-gear vehicle speed change / short and sudden stop of the vehicle / jumping of the vehicle / obstacle crossing of the vehicle / air trick of the vehicle / empty gear of the vehicle / oil supplement during gear down of the vehicle / vehicle fault alarm / vehicle instrument display / vehicle communication.

[0105] Preferably, the main control system further comprises: a heat dissipation processing module connected with the large-current equalization module and the parallel high-voltage large-capacitance group.

[0106] Compared with the prior art, the utility model has the advantages that:

[0107] Through use of various different control interfaces, the main control system of the mountain electric motorcycle is associated with various detections and controls of the instrument panel controller and the whole machine controller system, and great performance improvement is obtained; various new functions and new technology improvements make the user's riding more efficient and stable. BRIEF DESCRIPTION OF DRAWINGS

[0108] Figure 1 A structural framework schematic view of the mountain electric motorcycle main control system based on the double 34-pin ECU control interface is provided for the utility model;

[0109] Figure 2 A logic relationship framework schematic view of the mountain electric motorcycle main control system based on the double 34-pin ECU control interface is provided for the utility model;

[0110] Figure 3 A control signal logic relationship view of the first 34-pin ECU interface control module ECU1 interface is provided for the utility model;

[0111] Figure 4 A pin function description and electrical performance index requirement schematic view of the first 34-pin ECU interface control module ECU1 interface is provided for the utility model;

[0112] Figure 5The utility model provides a second 34 needle foot ECU interface control module ECU2 interface's control signal logic relation diagram is provided for the utility model,

[0113] Figure 6 The utility model provides a second 34 needle foot ECU interface control module ECU2 interface's pin function description and electric performance index requirement schematic diagram is provided for the utility model,

[0114] Figure 7 The utility model provides ECU1 interface (left) and ECU2 interface (right) real object front view is provided for the utility model,

[0115] Figure 8 The utility model provides ECU1 interface (left) and ECU2 interface (right) real object back view is provided for the utility model,

[0116] Figure 9 The utility model provides ECU1 interface (left) and ECU2 interface (right) real object side view is provided for the utility model. DETAILED DESCRIPTION

[0117] In order to make the purpose, technical scheme and advantage of the utility model embodiment more clear, the technical scheme in the utility model embodiment will be described clearly and completely in conjunction with the drawings in the utility model embodiment, obviously, the described embodiment is a part of the embodiment of the utility model, not all the embodiment. Based on the embodiment in the utility model, all other embodiments obtained by the ordinary skill in the art without creative labor belong to the scope of the utility model protection.

[0118] The utility model will be described in further detail in conjunction with the drawings.

[0119] As Figures 1-2 The utility model embodiment provides a kind of mountain electric motorcycle master control system based on double 34 needle foot ECU control interface, and master control system is used to control mountain electric motorcycle, and the system of mountain electric motorcycle includes front wheel brake, rear wheel brake, instrument panel controller and whole machine controller system, and master control system includes: first single-chip microcomputer 100 and second single-chip microcomputer 200, power supply 300 connected with first single-chip microcomputer 100 and second single-chip microcomputer 200, multiple communication modules 400, three-phase motor drive 500, first 34 needle foot ECU interface control module 600 and second 34 needle foot ECU interface control module 700, A phase / B phase / C phase programmable hall current detection sensor module 800 connected with first single-chip microcomputer 100, indicator lamp drive module 900 connected with second single-chip microcomputer 200, and large current equalization module 1000 and parallel high-voltage large capacitor group 1100.

[0120] The first 34-pin ECU interface control module 600 is also connected with the first ground wire of the first single-chip microcomputer 100, the power supply 300, the second ground wire of the PCB board of the main control system, the instrument panel controller and the whole machine controller system.

[0121] As shown in Figure 2 , the first single-chip microcomputer adopts a GD32F405RGT6 chip, and the second single-chip microcomputer adopts an STM32F103C8T6 chip.

[0122] As shown in Figure 2 , the power supply includes a first power supply circuit, a second power supply circuit, a third power supply circuit, a fourth power supply circuit, a fifth power supply circuit and a sixth power supply circuit, and a power supply voltage positive pole B+ end and a power supply voltage negative pole B- end, the B+ end is connected with +96V voltage, and the B- end is connected with the third ground wire PGND.

[0123] The first power supply circuit is a voltage stabilizing circuit for converting +96V voltage at the B+ end into +36V voltage; the second power supply circuit is a voltage stabilizing circuit for converting +36V voltage into +14.3V voltage; the third power supply circuit is a voltage stabilizing circuit for converting +14.3V voltage into +5V_LED all lamp power supply voltage; the fourth power supply circuit is a voltage stabilizing circuit for converting +14.3V voltage into +5V_EXT external power supply voltage; the fifth power supply circuit is a voltage stabilizing circuit for converting +14.3V voltage into +5V internal power supply voltage; and the sixth power supply circuit is a voltage stabilizing circuit for converting +5V internal power supply voltage into +3.3V internal power supply voltage.

[0124] As shown in Figure 2 , the A-phase / B-phase / C-phase programmable Hall current detection sensor module includes a high-precision current acquisition circuit, an A-phase / B-phase / C-phase programmable Hall current detection sensor interface and a Hall detection chip connected in sequence, the high-precision current acquisition circuit is connected with the second 34-pin ECU interface control module, and the Hall detection chip is connected with the first single-chip microcomputer.

[0125] In the embodiment of the utility model, as shown in Figures 7-9 , the first 34-pin ECU interface control module and the second 34-pin ECU interface control module both adopt straight insertion 34-pin ECU connector joints, the first row of pin insertion pins is provided with 9 columns, the second row is provided with 8 columns, the third row is provided with 8 columns, and the fourth row is provided with 9 columns.

[0126] In the embodiment of the utility model, the whole machine controller system further includes a brake end, a supporting leg and a throttle.

[0127] As Figures 3-4 shown, the connection relationship of each pin of the first 34-pin ECU interface control module is as follows:

[0128] The first to fourth pins are connected with the positive terminal of the power supply voltage B+.

[0129] The fifth to eighth pins are connected with the second ground wire C_GND.

[0130] The ninth pin is connected with the anode of the charging end CHG_D.

[0131] The tenth pin is connected with the dashboard controller and outputs the second bit of the dashboard controller data line signal DIN_2.

[0132] The eleventh pin is connected with the dashboard controller and outputs the third bit of the dashboard controller data line signal DIN_3.

[0133] The twelfth pin is connected with the dashboard controller and outputs the fourth bit of the dashboard controller data line signal DIN_4.

[0134] The thirteenth pin is connected with the dashboard controller and outputs the fifth bit of the dashboard controller data line signal DIN_5.

[0135] The fourteenth pin is connected with the dashboard controller and outputs the sixth bit of the dashboard controller data line signal DIN_6.

[0136] The fifteenth pin is connected with the dashboard controller and outputs the seventh bit of the dashboard controller data line signal DIN_7.

[0137] The sixteenth pin is connected with the dashboard controller and outputs the eighth bit of the dashboard controller data line signal DIN_8.

[0138] The seventeenth pin is connected with the first ground wire GND1.

[0139] The eighteenth pin is connected with the negative terminal of the power supply voltage B- and the third ground wire PGND.

[0140] The nineteenth pin is connected with the brake end and outputs the brake end signal BRAKE.

[0141] The twentieth pin is connected with the support foot and outputs the support foot detection end signal KICK_STAND.

[0142] The twenty-first pin is connected with the throttle end and outputs the throttle tilt outlet interface signal TILT.

[0143] The twenty-second pin is connected with the first ground wire GND1.

[0144] The twenty-third pin is connected with the dashboard controller and outputs the pulse width modulation signal PWM_OUT for speed detection adjustment.

[0145] The 24th pin is connected with the first single-chip microcomputer and bidirectionally transmits a first CAN communication high-level output end signal CANH1.

[0146] The 25th pin is connected with the first single-chip microcomputer and bidirectionally transmits a first CAN communication low-level output end signal CANL1.

[0147] The 26th pin is connected with the first ground wire GND1.

[0148] The 27th pin is connected with the first single-chip microcomputer and bidirectionally transmits an RS485 communication high-end side output end RS485_A signal.

[0149] The 28th pin is connected with the first single-chip microcomputer and bidirectionally transmits an RS485 communication low-end side output end RS485_B signal.

[0150] The 29th pin is connected with the first ground wire GND1.

[0151] The 30th pin is connected with the second single-chip microcomputer and outputs a burning data end signal F103_SWDIO.

[0152] The 31st pin is connected with the second single-chip microcomputer and outputs a burning clock end signal F103_SWDCLK.

[0153] The 32nd pin is connected with the second single-chip microcomputer and outputs a reset end signal F103_NRST.

[0154] The 33rd pin is connected with the instrument panel controller and outputs an instrument panel controller data line signal DIN_1.

[0155] The 34th pin is connected with the instrument panel controller and outputs an instrument panel controller data line signal DIN_0.

[0156] In the embodiment of the utility model, the whole machine controller system includes: energy recovery function detection module, manual gear speed button / manual cruise button and increment encoder connected with the first single-chip microcomputer, and motor and lock starting module. High-precision current acquisition circuit includes A-phase electromagnetic ring, B-phase electromagnetic ring, C-phase electromagnetic ring.

[0157] As shown in Figures 5-6 The connection relationship of each pin of the second 34-pin ECU interface control module is as follows:

[0158] The 1st-2nd pins are connected with the first ground wire GND1.

[0159] The 3rd pin is connected with the first single-chip microcomputer and the front wheel brake and outputs a front wheel brake detection signal THROTTLE_0.

[0160] The fourth pin is connected with the first single-chip microcomputer and rear wheel brake and outputs rear wheel brake detection signal THROTTLE_1;

[0161] The fifth pin is connected with the first single-chip microcomputer and outputs energy recovery function detection module energy recovery signal REGEN;

[0162] The sixth pin is connected with the first single-chip microcomputer and outputs manual gear speed button / manual cruise button button signal BUTTON;

[0163] The seventh pin is connected with the first ground GND1;

[0164] The eighth pin is connected with the first single-chip microcomputer and outputs incremental encoder zero position signal Z_ENCODER; it is a key calibration signal.

[0165] The ninth pin is connected with C-phase magnetic ring and outputs C-phase Hall current signal HALL3;

[0166] The tenth pin is connected with B-phase magnetic ring and outputs B-phase Hall current signal HALL2;

[0167] The eleventh pin is connected with A-phase magnetic ring and outputs A-phase Hall current signal HALL1;

[0168] The twelfth pin is connected with the motor and outputs temperature signal M_TEMP;

[0169] The thirteenth pin is connected with the first ground GND1;

[0170] The fourteenth pin is connected with the first single-chip microcomputer and inputs first UART serial port communication receiving end signal MCU_RX_1;

[0171] The fifteenth pin is connected with the first single-chip microcomputer and outputs first UART serial port communication sending end signal MCU_TX_1;

[0172] The sixteenth pin is connected with the first ground GND1;

[0173] The seventeenth pin is connected with the first single-chip microcomputer and inputs second UART serial port communication receiving end signal MCU_RX_2;

[0174] The eighteenth pin is connected with the first single-chip microcomputer and outputs second UART serial port communication sending end signal MCU_TX_2;

[0175] The nineteenth pin is connected with the first ground GND1;

[0176] The twentieth pin is connected with the first single-chip microcomputer and inputs third UART serial port communication receiving end signal MCU_RX_3;

[0177] The 21st pin is connected with the first single chip microcomputer and outputs a third UART serial communication sending end signal MCU_TX_3;

[0178] The 22nd pin is connected with the first ground wire GND1;

[0179] The 23rd pin is connected with the first single chip microcomputer and outputs a burning clock end signal SWDCLK;

[0180] The 24th pin is connected with the first single chip microcomputer and outputs a burning data end signal SWDIO;

[0181] The 25th pin is connected with the first single chip microcomputer and outputs a reset end signal NRST;

[0182] The 26th pin is connected with the third power supply circuit +5V_LED;

[0183] The 27th pin is connected with the second single chip microcomputer and outputs a second CAN communication high level output end signal CANH2;

[0184] The 28th pin is connected with the second single chip microcomputer and outputs a second CAN communication low level output end signal CANL2;

[0185] The 29th pin is connected with the +36V of the first power supply circuit;

[0186] The 30th pin is connected with the +36V of the first power supply circuit;

[0187] The 31st pin is connected with the +5V_EXT of the fourth power supply circuit;

[0188] The 32nd pin is connected with the +5V_EXT of the fourth power supply circuit;

[0189] The 33rd pin is connected with the first ground wire GND1;

[0190] The 34th pin is connected with the unlocking starting module and outputs an unlocking starting signal KEYLOCK.

[0191] In the embodiment of the utility model, Figure 2As shown, the plurality of communication modules include: a Bluetooth communication module, a CAN bus communication module, an RS485 communication module, a USART serial communication module, a UART serial communication module connected with the first single-chip microcomputer and the second single-chip microcomputer, and an IIC communication module connected with the first single-chip microcomputer; the main control system further includes: a three-axis gyroscope, which communicates with the first single-chip microcomputer through the IIC communication module. The vehicle acceleration and angular velocity are monitored through the motion of the 16-bit digital three-axis gyroscope. The first 34-pin ECU interface control module, the second 34-pin ECU interface control module, the three-axis gyroscope, the CAN bus communication module and the RS485 communication module are all provided with corresponding TVS tube surge protection interface circuits; the UART serial communication module and the whole machine controller system are both provided with corresponding TVS tube surge protection interface circuits and RC resistance-capacitance filter circuits.

[0192] As shown in the embodiment of the utility model, Figure 2 The three-phase motor drive includes: an A-phase MOS drive circuit, a B-phase MOS drive circuit and a C-phase MOS drive circuit.

[0193] The A-phase MOS drive circuit includes: an A-phase main system board and a MOS tube aluminum substrate connection socket connected in sequence, an A-phase MOS drive chip, and an A-phase voltage detection output interface.

[0194] The B-phase MOS drive circuit includes: a B-phase main system board and a MOS tube aluminum substrate connection socket connected in sequence, a B-phase MOS drive chip, and a B-phase voltage detection output interface.

[0195] The C-phase MOS drive circuit includes: a C-phase main system board and a MOS tube aluminum substrate connection socket connected in sequence, a C-phase MOS drive chip, and a C-phase voltage detection output interface.

[0196] The A-phase MOS drive chip, the B-phase MOS drive chip and the C-phase MOS drive chip are respectively connected with the drive control output interface of the first single-chip microcomputer and / or the second single-chip microcomputer through the corresponding socket, and the A-phase voltage detection output interface, the B-phase voltage detection output interface and the C-phase voltage detection output interface are all connected with the A / D port of the first single-chip microcomputer and / or the second single-chip microcomputer.

[0197] The connection of the single-chip microcomputer and the three-phase asynchronous motor is mainly realized through a proper driving circuit and control signals. The single-chip microcomputer is responsible for sending control signals, which are converted into driving signals suitable for the motor through the driving circuit, so as to control the operation of the motor. In actual application, the current of the three-phase motor can be monitored in real time by the single-chip microcomputer to ensure that the motor operates within a safe range, and when the current is abnormal, an alarm can be given through a buzzer or a display screen. It should be noted that the A phase, B phase and C phase in this article are defined by the utility model, which correspond to the U phase, V phase and W phase of the three-phase motor respectively. Taking the A phase as an example, the transmission process of the A phase signal is: A phase signal→connection cable→main control system board shell→main control system board first input and output socket→MOS tube driving→single-chip microcomputer precision voltage sampling→single-chip microcomputer A / D port, and the B phase and C phase are the same.

[0198] In the embodiment of the utility model, as shown in Figure 2 The indicator lamp driving module includes: phase indicator lamps (real-time monitoring) of the A phase / B phase / C phase of the three-phase motor connected with the second single-chip microcomputer, work indicator lamps (real-time monitoring) of the up / down / left / right / forward / backward movement of the vehicle, indicator lamps of various working states of the vehicle, such as normal uniform motion of the vehicle / vehicle coasting / vehicle starting / vehicle acceleration / vehicle climbing / vehicle descending / vehicle deceleration / vehicle gear shifting / multi-gear vehicle speed change / vehicle temporary emergency stop / vehicle jumping / vehicle crossing obstacles / vehicle aerial stunts (including rolling) / vehicle neutral gear / vehicle downshift oil supplement / vehicle fault alarm / vehicle instrument display / vehicle communication, etc.

[0199] In the embodiment of the utility model, as shown in Figure 2 The main control system further includes: a heat dissipation processing module and an alarm circuit, and the heat dissipation processing module is connected with the large-current balancing module and the parallel high-voltage large-capacitance group.

[0200] Figure 3 The signal logic relationship diagram of the ECU1 interface is divided into seven parts.

[0201] The signal logic relationship diagram of the ECU1 interface of the utility model is divided into seven parts.

[0202] The first part: B+ power supply voltage positive terminal and B- power supply voltage negative terminal, wherein, B+ end = +96V, B- end = PGND = ground 3.

[0203] Second part: DIN_0~DIN_8 digital signal, wherein, the digital signal DIN_2 is transmitted to the second bit of the data line of the instrument panel controller, and is used for displaying the accelerator, the digital signal DIN_3 is used for displaying the gear, the digital signal DIN_4 is used for displaying the speed, the digital signal DIN_5 is used for displaying the total mileage, the digital signal DIN_6 is used for displaying the residual capacity SOC of the lithium battery, the digital signal DIN_7 is used for displaying the left / right turn signal, "0" represents the left turn signal, "1" represents the right turn signal, and the digital signal DIN_8 is used for displaying the motor / instrument panel controller over-temperature, "0" represents the motor over-temperature, and "1" represents the instrument panel controller over-temperature, wherein the data line in the figure refers to the data line connected between the main control system and the instrument panel controller of the utility model.

[0204] Third part: CAN1 bidirectional bus communication part of the single-chip microcomputer 1.

[0205] Fourth part: RS485 bidirectional communication part of the single-chip microcomputer 1.

[0206] Fifth part: the main control system and the vehicle controller end control part.

[0207] Sixth part: single-chip microcomputer 2 remote burning end part.

[0208] Seventh part: large current area ground 2, CHG_D charging end anode, single-chip microcomputer 1 ground 1. The arrow in the figure represents the transmission direction of the signal, the received signal or the output signal.

[0209] Figure 4 The pin function table of the straight plug-in ECU1 interface of the utility model is provided, and the functions and electrical performance index requirements of each pin of the ECU1 interface are described in detail. In the "related connection components" column in the table, "large current area ground 2" represents the second ground wire in the large current area, "single-chip microcomputer 1" represents the first single-chip microcomputer, "single-chip microcomputer 2" represents the second single-chip microcomputer, "ground 1" represents the first ground wire, that is, the first ground wire of the first single-chip microcomputer, "ground 2" represents the second ground wire, that is, the second ground wire in the large current area, "CAN1 communication" represents the first CAN communication interface of the first single-chip microcomputer, "single-chip microcomputer 2" represents the second single-chip microcomputer, and "RS485" represents the RS485 communication interface of the first single-chip microcomputer. The key functions of the ECU1 connector include: the data line of the main control system and the instrument panel controller, the connection control of the main control system and the whole machine controller system, the PWM_OUT speed gear change adjustment, the B+ end and the B- end, and the large current area ground 2.

[0210] Figures 7-9 The utility model provides the real object drawing of ECU1 interface and ECU2 interface.

[0211] (1) In the circuit schematic diagram, it is designed according to the partition, section and function division.

[0212] (2) At the CAN1 bidirectional bus communication, at the RS485 communication, at the whole vehicle controller end control, at these important signal ends, TVS tube surge protection circuit and RC resistance and capacitance filter elements are added.

[0213] (3) In the material selection, ECU1 and ECU2 use straight insertion 34-pin ECU connector with foolproof design, which is automobile level waterproof and dustproof connector with IP68 waterproof level. It has the following characteristics: 1) black 34-pin 4-row connector; contact type: male pin. 2) 3mm male pin, through-hole straight pin, diameter: φ1.0mm; straight pin height 4mm; gold-plated connector. 3) horizontal pin pitch 3mm; row (vertical) pin pitch 4mm. 4) pin layout position: 9 columns in the first row; 8 columns in the second row; 8 columns in the third row; 9 columns in the fourth row. 5) contact material: brass; contact surface treatment: round gold plating. Insulating material: polyester; insulation height: 27.4mm. 6) rated voltage: 250V; rated current: 16A; or use different current according to wire specification. 7) working characteristics: mounting flange, sealed type. Working temperature: -40~125℃. 8) connector attribute: CONN HEADER R / A 34POS 3MM. 9) mounting type: through-hole soldering; shield: -4 wall with shielding. Fastening type: lock pin slide. 10) connector size: length X width X height: 46.5X27.0X27.8mm.

[0214] The foolproof identification of ECU1 and ECU2 connector is located at the back of the connector plastic support and the front internal plastic card column. The plastic support and plastic card column are different in position, so it is not easy to insert incorrectly and damage, which is convenient for distinguishing ECU1 connector and ECU2 connector, so as not to insert incorrectly artificially in production. Figures 7-9 The left in the above figure is ECU1 connector, and the right is ECU2 connector, which are different in internal plastic card column position.

[0215] (4) In terms of working temperature, ECU1 connector and ECU2 connector have high working temperature, which can be directly inserted into high temperature soldering furnace on PCB, saving labor cost.

[0216] (5) On the PCB board, B+ end, B- end = PGND = ground 3, use wide copper foil wiring; the ground of the large current area is also used wide copper foil wiring. The peripheral TVS tube surge protection is close to the upper end and the lower end of the connector. The PCB board is a six-layer board, and the three grounds are distributed in the top layer ground, the inner layer ground and the bottom layer ground. The heat dissipation treatment of the large current area is to increase the copper foil area of the large current area ground in the top layer and the inner layer. Another treatment means is to connect C_GND ground to the blank area on the PCB board by increasing the SMD0805, 0R / ±5% chip resistor bridge in the top layer. The purpose is also to increase the copper foil area of the ground and increase the heat dissipation.

[0217] (6) On the software program, through the use of Kalman filter, multiple filtering and root mean square data processing means; enhance the transmission ability of the main control system and the whole vehicle end control data.

[0218] (7) On the software program, CAN1 bidirectional bus communication, RS485 bidirectional communication; CAN communication can also realize the conversion of RS485 communication, solve the compatibility and intercommunication problem between the two communication protocols. CAN1 bidirectional bus communication is suitable for complex data transmission and real-time control, with high-speed transmission, multi-device cooperative work, strong anti-interference ability and other characteristics. RS485 bidirectional communication is suitable for large-scale data transmission and long-distance remote communication, with long-distance communication, strong anti-interference ability and other characteristics.

[0219] Figure 5 The signal logic relationship diagram of the ECU2 interface is divided into seven parts.

[0220] The signal logic relationship diagram of the ECU2 interface is divided into seven parts.

[0221] The first part is the front wheel brake and rear wheel brake part.

[0222] The second part is the Hall current signal path part. It contains the current detection signals of A-phase HALL1 / B-phase HALL2 / C-phase HALL3.

[0223] The third part is the detection and control part of the electric motorcycle system and the main control system, which contains REGEN / BUTTON / KEYLOCK / Z_ENCODER / M_TEMP signals.

[0224] The fourth part is the UART1 / 2 / 3 bidirectional serial communication part of the single-chip microcomputer 1.

[0225] The fifth part is the remote burning end part of the single-chip microcomputer 1.

[0226] The sixth part: the CAN2 bus communication part of the single-chip microcomputer 2.

[0227] The seventh part: the power supply for the outside: +36V; +5V_EXT; +5V_LED power supply voltage. The ground 1 of the single-chip microcomputer 1.

[0228] Figure 6 The pin function table of the direct insertion connector ECU2 interface of the utility model is shown, and the functions and electrical performance index requirements of each pin of the ECU2 interface are described in detail. In the column of "related connection components" in the table, "single-chip microcomputer 1" represents the first single-chip microcomputer, "ground 1" represents the first ground wire, "single-chip microcomputer 1 ground" represents the first ground wire of the first single-chip microcomputer; "single-chip microcomputer 1_UART1" represents the first UART serial communication interface of the first single-chip microcomputer; "single-chip microcomputer 1_UART2" represents the second UART serial communication interface of the first single-chip microcomputer; "single-chip microcomputer 1_UART3" represents the third UART serial communication interface of the first single-chip microcomputer; "single-chip microcomputer 1 burning end" represents the burning end of the first single-chip microcomputer; "single-chip microcomputer 1 reset end" represents the reset end of the first single-chip microcomputer; "CAN2 communication" represents the second CAN communication interface of the second single-chip microcomputer.

[0229] The key functions of the ECU2 connector include: the Hall current detection lines of the A phase / B phase / C phase of the motor connected with the main control system; the connection control of the main control system and the whole machine controller system; the bidirectional serial communication of the UART1 / UART2 / UART3 of the single-chip microcomputer 1; the front wheel brake and the rear wheel brake; power supply 1: +36V; power supply 3: +5V_LED lamp power supply; power supply 4: +5V_EXT external power supply.

[0230] The design of the ECU2 interface of the utility model has the following characteristics and advantages:

[0231] (1) On the circuit principle diagram, it is designed according to the division of functional areas.

[0232] (2) At the CAN2 bidirectional bus communication place and at the whole vehicle controller end control place, TVS tube surge protection elements and RC resistance-capacitance filter elements are added to the important signal ends.

[0233] (3) In the material selection, a direct insertion 34-pin ECU connector is used.

[0234] (4) The relationship between the front wheel brake and the rear wheel brake. The main control system well handles the detection and control relationship.

[0235] The front wheel brake action flow is as follows.

[0236] Front brake type: generally V brake or disc brake. Position: above the front wheel. Action: pull down the handlebar to brake, and hold the handlebar with both hands.

[0237] Features: an emergency brake; the braking force is the largest; good braking and heat dissipation; high sensitivity; easy to slip when riding in rain and snow, falling down.

[0238] The action process of the rear wheel brake is as follows.

[0239] Rear brake type: generally drum brake. Position: near the rear wheel. Action: pull up the handlebar to brake, and hold the handlebar with both hands.

[0240] Features: a speed reduction brake; low braking force, simple structure, and low cost. The wheel is not easy to slip when riding in rain and snow.

[0241] Generally, the front brake is used with seven-tenths of the force, and the rear brake is used with three-tenths of the force when the rider encounters an emergency situation. The front brake is controlled by the right handlebar, and the rear brake is controlled by the left handlebar. The front brake and the rear brake are operated simultaneously.

[0242] For mountain electric motorcycles, which are high-end vehicles, it is better to use front and rear disc brakes (with anti-lock braking system) brake mode; for ordinary low-cost electric motorcycles, which are medium and low-end vehicles, it is better to use front disc and rear drum brake mode.

[0243] (5) For the surface temperature detection of the electric motor, it is a real-time detection. In the software program, the current temperature is set, and the operating mode of the electric motor is set. For temperature changes, there are processing principles of grading, grading, and precision. When collecting the root mean square value of temperature changes, Kalman filtering is used to exclude external interference clutter. The PWM temperature control of the single-chip microcomputer is used to reasonably adjust the temperature change, and the appropriate duty cycle and working frequency change range are selected. When processing temperature data, multiple comparison methods are used for comprehensive comparison, detection, and judgment.

[0244] (6) The zero signal of the Z_ENCODER Hall incremental encoder is a double-channel square wave signal used to determine the absolute position of the encoder. It is a key calibration signal.

[0245] a) Zero adjustment and calibration method of the Hall incremental encoder of the electric motor:

[0246] First step: collect and set the winding information of each phase of the electric motor.

[0247] Second step: check whether the rotation positive direction of the Hall incremental encoder is consistent with the rotation positive direction of the electric motor.

[0248] Third step: judge the rotor position, so that the stator magnetic field always remains perpendicular to the rotor magnetic field.

[0249] Fourth step: adjust and observe the rising edge of the A-phase (U-phase) signal of the Hall incremental encoder and the zero-crossing point of the A-phase (U-phase) back EMF waveform from low to high, and finally make the signal rising edge and the zero-crossing point coincide. In this way, the relative position relationship between the Hall incremental encoder and the motor is locked, and the alignment action is completed.

[0250] b) There are three methods for finding the zero position of the Hall incremental encoder:

[0251] The first method: the most common method: forward and backward search method.

[0252] First step: find the output signal line (A-phase, B-phase) and zero position signal line (Z-phase) of the Hall incremental encoder, and connect them to the microprocessor single-chip microcomputer.

[0253] Second step: set the range of the Hall incremental encoder to a positive value, then make the object to be measured move from the starting point, and record the measurement value.

[0254] Third step: when the object reaches the target position, stop and set the range of the Hall incremental encoder to a negative value, so that the reading of the counter will return to zero. At this time, record the reading of the counter, which is the displacement of the target position and the starting point of the object.

[0255] Fourth step: for the next measurement, the range of the Hall incremental encoder can be set to the negative value obtained from the last measurement, and the object starts to move from the starting point. When the reading of the counter returns to zero, the object has reached the target position.

[0256] Fifth step: if it is necessary to measure the process of the object returning to the starting point from the target position, the range of the Hall incremental encoder needs to be set to a positive value, and then the above steps are repeated.

[0257] The second method: short-range search for zero position. It is suitable for continuous motion, such as motor wheels, etc.

[0258] The third method: reverse summation search for zero position. It is suitable for large range.

[0259] c) Program design control flow of Hall incremental encoder:

[0260] First step: initialize the input and output interfaces of the Hall incremental encoder.

[0261] Second step: according to the reading of the pulse signal of the Hall incremental encoder, first preliminarily judge whether there is a zero-crossing event, if not, continue to wait for delay and continue to read the pulse signal of the Hall incremental encoder; if yes, go to the next step.

[0262] The third step is to count the number of zero-crossing position events read by the Hall incremental encoder, and then to judge, data processing and corresponding calculation using a specific algorithm, multiple cycles until the timer ends, and the zero-crossing position data information is saved.

[0263] The fourth step is to optimize and improve the zero-crossing position according to the demand changes, to ensure the accuracy of the measurement.

[0264] The zero-crossing position detection procedure of the Hall incremental encoder is an important link for measuring the software electrical performance of the main control system of the mountain electric motorcycle. The utility model uses the zero-crossing position detection procedure with great optimization and improvement, and outputs accurate pulse signals to achieve accurate measurement of the main control system.

[0265] Compared with the prior art, the utility model has the following positive effects:

[0266] 1. Optimize and improve the electrical performance of the control interface. By using various different control interfaces, the main control system of the mountain electric motorcycle is associated with various detection and control of the instrument panel controller and the whole machine controller system, and the performance is greatly improved. Various new functions and new technologies improve the user's riding efficiency and stability.

[0267] 2. Improve compatibility and synergy. Introduce rich interface resources to support complex main control systems. The standardized design of the connector interface improves the compatibility and synergy between devices while maintaining high performance.

[0268] 3. High performance and low power consumption. Use new materials: use high-conductivity, low-resistance new materials (such as TVS tubes, silicon carbide) to improve interface performance. Optimize interface layout: improve interface performance while optimizing PCB layout and wiring to reduce energy consumption, optimize heat dissipation, and improve heat management capability.

[0269] 4. Market competitiveness is improved, and technology is leading. By introducing this new technology, the main control system has achieved significant improvement in performance, energy efficiency, temperature control, heat dissipation, reliability and safety, and has established a leading market image in technology. This not only enhances the competitiveness of the company's product brand, but also wins more market share for the enterprise.

[0270] The above is only the preferred embodiment of the utility model, and is not used to limit the utility model. For those skilled in the art, the utility model can have various changes and variations. Any modification, equivalent replacement, improvement, etc. within the spirit and principles of the utility model shall be included in the protection scope of the utility model.

Claims

1. A main control system of a mountain electric motorcycle based on a double 34-pin ECU control interface, characterized in that, The main control system is used for controlling the electric motorcycle, and the system of the electric motorcycle includes a front wheel brake, a rear wheel brake, an instrument panel controller and an overall controller system, the main control system comprises: a first single-chip microcomputer and a second single-chip microcomputer, a power supply connected with the first single-chip microcomputer and the second single-chip microcomputer, a plurality of communication modules, a three-phase motor drive, a first 34-pin ECU interface control module and a second 34-pin ECU interface control module, an A-phase / B-phase / C-phase programmable Hall current detection sensor module connected with the first single-chip microcomputer, an indicator light drive module connected with the second single-chip microcomputer, and a large current equalization module and a parallel high-voltage large capacitor group connected with each other. The first 34-pin ECU interface control module is further connected with a first ground wire GND1 of the first single-chip microcomputer, the power supply, a second ground wire C_GND of a PCB board large current area of the main control system, the instrument panel controller and the overall controller system. The second 34-pin ECU interface control module is further connected with the first ground wire of the first single-chip microcomputer, the power supply, the A-phase / B-phase / C-phase programmable Hall current detection sensor module, the front wheel brake, the rear wheel brake and the overall controller system.

2. The double 34-pin ECU control interface-based main control system of the electric mountain motorcycle according to claim 1, characterized in that, The power supply comprises: a first power supply circuit, a second power supply circuit, a third power supply circuit, a fourth power supply circuit, a fifth power supply circuit and a sixth power supply circuit, and a power supply voltage positive pole B+ end and a power supply voltage negative pole B- end, the B+ end is connected with +96V voltage, and the B- end is connected with a third ground wire PGND. The first power supply circuit is a voltage stabilizing circuit for converting +96V voltage of the B+ end into +36V voltage; the second power supply circuit is a voltage stabilizing circuit for converting +36V voltage into +14.3V voltage; the third power supply circuit is a voltage stabilizing circuit for converting +14.3V voltage into +5V_LED all lamp power supply voltage; the fourth power supply circuit is a voltage stabilizing circuit for converting +14.3V voltage into +5V_EXT external power supply voltage; the fifth power supply circuit is a voltage stabilizing circuit for converting +14.3V voltage into +5V internal power supply voltage; and the sixth power supply circuit is a voltage stabilizing circuit for converting +5V internal power supply voltage into +3.3V internal power supply voltage.

3. The double 34-pin ECU control interface based main control system of the electric all-terrain motorcycle according to claim 2, characterized in that, The A-phase / B-phase / C-phase programmable Hall current detection sensor module comprises: a high-precision current acquisition circuit, an A-phase / B-phase / C-phase programmable Hall current detection sensor interface and a Hall detection chip connected in sequence, the high-precision current acquisition circuit is connected with the second 34-pin ECU interface control module, and the Hall detection chip is connected with the first single-chip microcomputer.

4. The double 34-pin ECU control interface-based main control system of the electric all-terrain motorcycle according to claim 3, characterized in that, The first 34-pin ECU interface control module and the second 34-pin ECU interface control module both adopt a straight insertion 34-pin ECU connector joint, a first row of pin holes is provided with 9 columns, a second row of pin holes is provided with 8 columns, a third row of pin holes is provided with 8 columns, and a fourth row of pin holes is provided with 9 columns.

5. The double 34-pin ECU control interface based main control system of the electric all-terrain motorcycle according to claim 4, characterized in that, The overall controller system further comprises: a brake end, a supporting foot and a throttle. The connection relationship of each pin of the first 34-pin ECU interface control module is as follows: The first 4 pins are connected to the positive electrode end B+ of the power supply voltage; The 5th-8th pins are connected to the second ground wire C_GND; The 9th pin is connected to the anode CHG_D of the charging end; The 10th pin is connected to the instrument panel controller and outputs the 2nd bit DIN_2 of the instrument panel controller data line signal; The 11th pin is connected to the instrument panel controller and outputs the 3rd bit DIN_3 of the instrument panel controller data line signal; The 12th pin is connected to the instrument panel controller and outputs the 4th bit DIN_4 of the instrument panel controller data line signal; The 13th pin is connected to the instrument panel controller and outputs the 5th bit DIN_5 of the instrument panel controller data line signal; The 14th pin is connected to the instrument panel controller and outputs the 6th bit DIN_6 of the instrument panel controller data line signal; The 15th pin is connected to the instrument panel controller and outputs the 7th bit DIN_7 of the instrument panel controller data line signal; The 16th pin is connected to the instrument panel controller and outputs the 8th bit DIN_8 of the instrument panel controller data line signal; The 17th pin is connected to the first ground wire GND1; The 18th pin is connected to the negative electrode end B- of the power supply voltage and the third ground wire PGND; The 19th pin is connected to the brake end and outputs the brake end signal BRAKE; The 20th pin is connected to the support foot and outputs the support foot detection end signal KICK_STAND; The 21st pin is connected to the throttle and outputs the throttle tilt outlet interface signal TILT; The 22nd pin is connected to the first ground wire GND1; The 23rd pin is connected to the instrument panel controller and outputs the pulse width modulation signal PWM_OUT for speed detection adjustment; The 24th pin is connected to the first single chip microcomputer and bidirectionally transmits the first CAN communication high-level output end signal CANH1; The 25th pin is connected to the first single chip microcomputer and bidirectionally transmits the first CAN communication low-level output end signal CANL1; The 26th pin is connected to the first ground wire GND1; The 27th pin is connected to the first single chip microcomputer and bidirectionally transmits the RS485 communication high-side output end RS485_A signal; The 28th pin is connected to the first single chip microcomputer and bidirectionally transmits the RS485 communication low-side output end RS485_B signal; The 29th pin is connected to the first ground wire GND1; The 30th pin is connected to the second single chip microcomputer and outputs the burning data end signal F103_SWDIO; The 31st pin is connected to the second single chip microcomputer and outputs the burning clock end signal F103_SWDCLK; The 32nd pin is connected to the second single chip microcomputer and outputs the reset end signal F103_NRST; The 33rd pin is connected to the instrument panel controller and outputs the 1st bit DIN_1 of the instrument panel controller data line signal; The 34th pin is connected to the instrument panel controller and outputs the 0th bit DIN_0 of the instrument panel controller data line signal.

6. The double 34-pin ECU control interface based main control system of the electric all-terrain motorcycle according to claim 4, characterized in that, The whole machine controller system comprises an energy recovery function detection module, a manual gear speed button / manual cruise button and an incremental encoder connected with the first single chip microcomputer, and a motor and an unlocking starting module; the high-precision current acquisition circuit comprises an A-phase electromagnetic ring, a B-phase electromagnetic ring and a C-phase electromagnetic ring; The connection relationship of each pin of the second 34-pin ECU interface control module is as follows: The first and second pins are connected with the first ground wire GND1; The third pin is connected with the first single chip microcomputer and the front wheel brake and outputs a front wheel brake detection signal THROTTLE_0; The fourth pin is connected with the first single chip microcomputer and the rear wheel brake and outputs a rear wheel brake detection signal THROTTLE_1; The fifth pin is connected with the first single chip microcomputer and outputs an energy recovery signal REGEN of the energy recovery function detection module; The sixth pin is connected with the first single chip microcomputer and outputs a button signal BUTTON of the manual gear speed button / manual cruise button; The seventh pin is connected with the first ground wire GND1; The eighth pin is connected with the first single chip microcomputer and outputs a zero position signal Z_ENCODER of the incremental encoder, which is a key calibration signal; The ninth pin is connected with the C-phase electromagnetic ring and outputs a C-phase Hall current signal HALL3; The tenth pin is connected with the B-phase electromagnetic ring and outputs a B-phase Hall current signal HALL2; The eleventh pin is connected with the A-phase electromagnetic ring and outputs an A-phase Hall current signal HALL1; The twelfth pin is connected with the motor and outputs a temperature detection signal M_TEMP; The thirteenth pin is connected with the first ground wire GND1; The fourteenth pin is connected with the first single chip microcomputer and inputs a first UART serial communication receiving end signal MCU_RX_1; The fifteenth pin is connected with the first single chip microcomputer and outputs a first UART serial communication sending end signal MCU_TX_1; The sixteenth pin is connected with the first ground wire GND1; The seventeenth pin is connected with the first single chip microcomputer and inputs a second UART serial communication receiving end signal MCU_RX_2; The eighteenth pin is connected with the first single chip microcomputer and outputs a second UART serial communication sending end signal MCU_TX_2; The nineteenth pin is connected with the first ground wire GND1; The twentieth pin is connected with the first single chip microcomputer and inputs a third UART serial communication receiving end signal MCU_RX_3; The twenty-first pin is connected with the first single chip microcomputer and outputs a third UART serial communication sending end signal MCU_TX_3; The twenty-second pin is connected with the first ground wire GND1; The twenty-third pin is connected with the first single chip microcomputer and outputs a burning clock end signal SWDCLK; The twenty-fourth pin is connected with the first single chip microcomputer and outputs a burning data end signal SWDIO; The twenty-fifth pin is connected with the first single chip microcomputer and outputs a reset end signal NRST; The twenty-sixth pin is connected with the third power circuit lamp power supply +5V_LED; The twenty-seventh pin is connected with the second single chip microcomputer and outputs a second CAN communication high level output end signal CANH2; The 28th pin is connected with the second single chip microcomputer and outputs a second CAN communication low level output signal CANL2. The 29th pin is connected with +36V of the first power supply circuit. The 30th pin is connected with +36V of the first power supply circuit. The 31st pin is connected with +5V_EXT of the fourth power supply circuit. The 32nd pin is connected with +5V_EXT of the fourth power supply circuit. The 33rd pin is connected with the first ground wire GND1. The 34th pin is connected with the unlocking starting module and outputs an unlocking starting signal KEYLOCK.

7. The double 34 needle ECU control interface based main control system of the electric mountain motorcycle according to any one of claims 1-6, characterized in that, The plurality of communication modules comprise a Bluetooth communication module, a CAN bus communication module, an RS485 communication module, an USART serial communication module, an UART serial communication module, and an IIC communication module connected with the first single chip microcomputer and the second single chip microcomputer; the main control system further comprises a three-axis gyroscope which communicates with the first single chip microcomputer through the IIC communication module; The first 34-pin ECU interface control module, the second 34-pin ECU interface control module, the three-axis gyroscope, the CAN bus communication module and the RS485 communication module are each provided with a corresponding TVS tube surge protection interface circuit; The UART serial communication module and the whole machine controller system are each provided with a corresponding TVS tube surge protection interface circuit and an RC resistance-capacitance filter circuit.

8. The double 34 needle ECU control interface based main control system of the electric mountain motorcycle according to any one of claims 1-6, characterized in that, The three-phase motor drive comprises an A-phase MOS drive circuit, a B-phase MOS drive circuit and a C-phase MOS drive circuit; The A-phase MOS drive circuit comprises an A-phase main system board and a MOS tube aluminum base connection socket connected in sequence, an A-phase MOS drive chip and an A-phase voltage detection output interface; The B-phase MOS drive circuit comprises a B-phase main system board and a MOS tube aluminum base connection socket connected in sequence, a B-phase MOS drive chip and a B-phase voltage detection output interface; The C-phase MOS drive circuit comprises a C-phase main system board and a MOS tube aluminum base connection socket connected in sequence, a C-phase MOS drive chip and a C-phase voltage detection output interface; The A-phase MOS drive chip, the B-phase MOS drive chip and the C-phase MOS drive chip are respectively connected with the drive control output interface of the first single chip microcomputer and / or the second single chip microcomputer through the corresponding sockets, and the A-phase voltage detection output interface, the B-phase voltage detection output interface and the C-phase voltage detection output interface are all connected with the A / D port of the first single chip microcomputer and / or the second single chip microcomputer.

9. The double 34 needle ECU control interface based main control system of the electric mountain motorcycle according to any one of claims 1-6, characterized in that, The indicator light driving module comprises phase indicator lights of A phase / B phase / C phase of the three-phase motor connected with the second single-chip microcomputer, working indicator lights of upward / downward / leftward / rightward / forward / backward movement of the vehicle, and indicator lights of various working states of the vehicle, such as normal uniform motion, vehicle coasting, vehicle starting, vehicle accelerating, vehicle climbing, vehicle descending, vehicle decelerating, vehicle gear shifting, multi-gear vehicle speed changing, vehicle short-time emergency stopping, vehicle jumping, vehicle crossing obstacles, vehicle intermediate skill, vehicle neutral gear, vehicle oil supplementing during gear downshifting, vehicle fault alarming, vehicle instrument display, and vehicle communication.

10. The double 34 needle ECU control interface based main control system of the electric mountain motorcycle according to any one of claims 1-6, characterized in that, The main control system further comprises a heat dissipation processing module and an alarm circuit, and the heat dissipation processing module is connected with the large-current equalization module and the parallel high-voltage large-capacitance group.