Mechanical key state detection circuit and vehicle-mounted alarm

By designing a mechanical key status detection circuit on the electric bicycle, the problem that the mechanical key cannot be powered off or the alarm cannot be stopped when the non-mechanical key is powered on or in the alarm state is solved, achieving a better user riding experience.

CN223308395UActive Publication Date: 2025-09-05ZHEJIANG YADEA MOTORCYCLE
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202422626155.8
Authority / Receiving Office
CN · China
Patent Type
Utility models(China)
Current Assignee / Owner
Filing Date
2024-10-29
Publication Date
2025-09-05
Estimated Expiration
2034-10-29

AI Technical Summary

Technical Problem

When the existing electric bicycle is powered on or in an alarm state by a non-mechanical key, the mechanical key cannot power off or terminate the alarm action, resulting in a poor user experience.

Method used

A mechanical key status detection circuit was designed, including an alarm MCU, an ACC starting circuit, an ACC detection circuit, and an electric door lock detection circuit. The mechanical key status was detected through components such as diodes and MOS tubes to ensure that the alarm MCU can identify the switch status of the mechanical key.

Benefits of technology

Without changing the entire vehicle architecture, users can use a non-mechanical key to power on and unlock the electric door. The alarm MCU will then recognize the mechanical key status, allowing the mechanical key to be powered off normally, or use the mechanical key to terminate the alarm action in the alarm state, improving the practicality of the entire vehicle and user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN223308395U_ABST
    Figure CN223308395U_ABST
Patent Text Reader

Abstract

The utility model discloses a mechanical key state detection circuit and a vehicle-mounted alarm, and relates to the technical field of electric bicycle control, the mechanical key state detection circuit is arranged in the alarm of an electric bicycle, and the mechanical key state detection circuit comprises an alarm MCU, an ACC starting circuit, an ACC detection circuit and an electric door lock detection circuit; the ACC starting circuit is used for forming an access when the alarm MCU outputs a pull-up ACC signal and outputting an ACC signal; the input of the electric door lock detection circuit is connected with the output of the ACC starting circuit, and the electric door lock detection circuit is used for detecting an electric door lock state signal and outputting the signal to the alarm MCU; the ACC detection circuit is used for detecting electric signals of the electric door lock and outputting the electric signals to the alarm MCU. The circuit can detect the state of the mechanical key, so that when the vehicle is in an alarm state, the mechanical key can be used for interrupting the alarm action, or when a non-mechanical key is used for powering on, the mechanical key can be used for powering off.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The utility model relates to the technical field of electric bicycle control, in particular to a mechanical key state detection circuit and a vehicle-mounted alarm. Background Art

[0002] Currently, most e-bikes are equipped with mechanical keys. When a non-mechanical key is used to power up the vehicle, or when the vehicle is in alarm mode and the mechanical key is turned on, the alarm will not detect the mechanical key. Non-mechanical key power-up refers to the vehicle alarm actively activating the internal ACC (Access Control) function when receiving an external command, such as a remote controller, app, or NFC.

[0003] This creates a problem: if you power on the vehicle with a non-mechanical key, you can't power it off with a mechanical key. Alternatively, if the vehicle is in alarm mode, the alarm can't be stopped with a mechanical key, resulting in a poor user experience. Therefore, there's room for improvement in vehicle control. Utility Model Content

[0004] In response to the above problems and technical requirements, the inventors have proposed a mechanical key status detection circuit and a vehicle-mounted alarm.

[0005] The technical solution of the utility model is as follows:

[0006] In a first aspect, the present application provides a mechanical key status detection circuit, which is placed inside the alarm of an electric bicycle and includes: an alarm MCU, an ACC starting circuit, an ACC detection circuit, and an electric door lock detection circuit;

[0007] The ACC startup circuit is used to form a path when the alarm MCU outputs the pull-up ACC signal and output the ACC signal;

[0008] The input of the electric door lock detection circuit is connected to the output of the ACC start circuit to detect the electric door lock status signal and output it to the alarm MCU;

[0009] The ACC detection circuit is used to detect the electric door lock signal and output it to the alarm MCU.

[0010] A further technical solution is that the ACC startup circuit includes: first to third resistors, first and second diodes, a first transistor and a first MOS transistor;

[0011] One end of the first resistor serves as the input of the ACC startup circuit and is connected to the alarm MCU to receive the pull-up ACC signal; the other end of the first resistor is connected to the base of the first transistor, the emitter of the first transistor is grounded, and the collector of the first transistor is connected to the power supply voltage through the second and third resistors; the gate of the first MOS tube is connected between the second and third resistors, and the source of the first MOS tube is connected to the power supply voltage; the anode of the first diode is connected to the gate, and the cathode is connected to the power supply voltage; the drain of the first MOS tube is connected to the anode of the second diode, and the cathode of the second diode serves as the output of the ACC startup circuit and is connected to the input of the electric door lock detection circuit.

[0012] A further technical solution thereof is that the electric door lock detection circuit comprises: an electric door lock, a first detection unit, a filtering unit and a second detection unit;

[0013] One end of the electric door lock is connected to the power supply voltage, and the input of the first detection unit serves as the input of the electric door lock detection circuit and is connected to the other end of the electric door lock and the output of the ACC start circuit; the output of the first detection unit is connected to the input of the second detection unit through the filter unit, and the output of the second detection unit serves as the output of the electric door lock detection circuit and is connected to the alarm MCU;

[0014] When there is a pull-up ACC signal, the first detection unit and the second detection unit are turned on in sequence, and the output electric door lock status signal is a valid level, indicating that the mechanical key is in the closed state;

[0015] When the electric door lock is closed, the first detection unit and the second detection unit are disconnected, and the output electric door lock state signal is an invalid level, indicating that the mechanical key is in the open state.

[0016] A further technical solution is that the first detection unit includes: fourth to sixth resistors, third and fourth diodes, and a second triode;

[0017] The anode of the third diode serves as the input of the first detection unit, one end of the fourth, fifth and sixth resistors are connected, and the connected ends are also connected to the cathode of the third diode, the other end of the fourth resistor and the anode of the fourth diode are connected to the power supply voltage, and the other end of the fifth resistor is grounded; the base of the second transistor is connected to the other end of the sixth resistor, the emitter is connected to the cathode of the fourth diode, and the collector serves as the output of the first detection unit and is connected to the input of the filtering unit.

[0018] A further technical solution is that the second detection unit includes: a seventh and an eighth resistor, a first capacitor and a third transistor;

[0019] The base of the third transistor is connected to the output of the filtering unit as the input of the second detection unit, and the collector of the third transistor is connected to a fixed voltage through the seventh resistor as the output of the second detection unit, and the fixed voltage is less than the power supply voltage; the eighth resistor and one end of the first capacitor are connected to the collector, and the emitter of the third transistor, the eighth resistor and the other end of the first capacitor are all grounded.

[0020] A further technical solution thereof is that the filtering unit comprises: ninth to eleventh resistors and a second capacitor;

[0021] One end of the ninth, tenth and eleventh resistors are connected, the other end of the ninth resistor is connected to the output of the first detection unit as the input of the filtering unit, the other end of the tenth resistor is connected to the input of the second detection unit as the output of the filtering unit, one end of the second capacitor is connected to the other end of the tenth resistor, and the other ends of the eleventh resistor and the second capacitor are both grounded.

[0022] A further technical solution is that the ACC detection circuit includes: twelfth to fourteenth resistors, a TVS diode and a third capacitor;

[0023] One end of the twelfth resistor serves as the input of the ACC detection circuit and is connected to the other end of the electric door lock; the other end of the twelfth resistor is connected to one end of the thirteenth resistor, and the other end of the thirteenth resistor serves as the output of the ACC detection circuit and is connected to the alarm MCU; one end of the third capacitor, one end of the fourteenth resistor and the cathode of the TVS diode are connected between the twelfth and thirteenth resistors, and the other end of the third capacitor, the other end of the fourteenth resistor and the anode of the TVS diode are all grounded.

[0024] In a second aspect, the present application also provides a vehicle-mounted alarm, which is mounted on an electric bicycle and internally includes the mechanical key status detection circuit as described in the first aspect.

[0025] The beneficial technical effects of the utility model are:

[0026] Without changing the entire vehicle architecture, by adding a mechanical key status detection circuit, the user can power on the vehicle with a non-mechanical key and then unlock the electric door. At this time, the alarm MCU can recognize the current on-off status of the mechanical key. Therefore, even if a non-mechanical key is used to power on the vehicle, the user can still power off the vehicle with a mechanical key. Or when the vehicle is in alarm status, the user inserts the mechanical key and unlocks the electric door. At this time, the alarm MCU can recognize the current on-off status of the mechanical key, so the mechanical key can be used to interrupt the alarm action, thereby greatly improving the practicality of the entire vehicle and bringing users a better riding experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] Figure 1 This is the mechanical key status detection circuit diagram provided by this application. DETAILED DESCRIPTION

[0028] The specific implementation of the present utility model will be further described below with reference to the accompanying drawings.

[0029] Please refer to Figure 1 As shown, an embodiment of the present application provides a mechanical key status detection circuit, which is placed inside the alarm of an electric bicycle and includes: an alarm MCU, an ACC starting circuit, an ACC detection circuit and an electric door lock detection circuit. The components and working principles of each circuit are introduced in detail below.

[0030] The ACC startup circuit is used to create a path when the alarm MCU outputs a pull-up ACC signal, outputting the ACC signal from the ACC1 port. This circuit includes first, second, and third resistors, a first transistor Q1, and a first MOS transistor M1. Specifically, one end of the first resistor R1 serves as the input of the ACC startup circuit and is connected to the alarm MCU to receive the pull-up ACC signal. The other end of the first resistor R1 is connected to the base of the first transistor Q1. The emitter of the first transistor Q1 is grounded, and the collector of the first transistor Q1 is connected to a power supply voltage of 48-72V via the second and third resistors R2 and R3. The gate of the first MOS transistor M1 is connected between the second and third resistors R2 and R3, and the source of the first MOS transistor M1 is connected to the power supply voltage of 48-72V. The anode of the first diode D1 is connected to the gate, and the cathode is connected to the power supply voltage of 48-72V. The drain of the first MOS transistor M1 is connected to the anode of the second diode D2. The cathode of the second diode D2 serves as the output of the ACC startup circuit and is connected to the input of the electric door lock detection circuit. When the user uses a non-mechanical key to power on the vehicle, the alarm MCU outputs a pull-up ACC signal, the first transistor Q1 and the first MOS tube M1 are turned on in sequence, and finally the ACC signal is output through the ACC1 port and given to the motor controller to power on the vehicle.

[0031] The input of the electric door lock detection circuit is connected to the output of the ACC activation circuit. This circuit detects the electric door lock status signal and outputs it to the alarm MCU. This circuit comprises the electric door lock (opened and closed by the mechanical key), a first detection unit, a filtering unit, and a second detection unit. The connections are as follows: one end of the electric door lock is connected to a 48-72V power supply voltage. The input of the first detection unit serves as the input of the electric door lock detection circuit, connecting the other end of the electric door lock and the output of the ACC activation circuit (i.e., the cathode of the second diode D2). The output of the first detection unit is connected to the input of the second detection unit through the filtering unit. The output of the second detection unit serves as the output of the electric door lock detection circuit and is connected to the alarm MCU. When the ACC signal is pulled up, the first and second detection units are turned on in sequence, and the output electric door lock status signal is at an active level, indicating that the mechanical key is in the closed state. When the electric door lock is closed, the first and second detection units are disconnected, and the output electric door lock status signal is at an inactive level, indicating that the mechanical key is in the open state.

[0032] The first detection unit includes fourth to sixth resistors, third and fourth diodes, and a second transistor Q2. Specifically, the anode of the third diode D3 serves as the input of the first detection unit. One end of the fourth, fifth, and sixth resistors R4, R5, and R6 are connected, and the connected end is also connected to the cathode of the third diode D3. The other end of the fourth resistor R4 and the anode of the fourth diode D4 are connected to a power supply voltage of 48-72V, and the other end of the fifth resistor R5 is grounded. The base of the second transistor Q2 is connected to the other end of the sixth resistor R6, the emitter is connected to the cathode of the fourth diode D4, and the collector, serving as the output of the first detection unit, is connected to the input of the filtering unit.

[0033] The second detection unit includes seventh and eighth resistors, a first capacitor C1, and a third transistor Q3. Specifically, the base of the third transistor Q3, serving as the input of the second detection unit, is connected to the output of the filter unit. The collector of the third transistor Q3, serving as the output of the second detection unit, is connected to a fixed voltage of 3.3V via a seventh resistor R7. The collector of the eighth resistor R8 and one end of the first capacitor C1 are connected. The emitter of the third transistor Q3, the eighth resistor R8, and the other end of the first capacitor C1 are all grounded.

[0034] The filtering unit includes ninth to eleventh resistors and a second capacitor C2. Specifically, one end of the ninth, tenth, and eleventh resistors R9, R10, and R11 are connected, the other end of the ninth resistor R9 is connected to the output of the first detection unit (i.e., the collector of the second transistor Q2) as the input of the filtering unit, the other end of the tenth resistor R10 is connected to the input of the second detection unit (i.e., the base of the third transistor Q3) as the output of the filtering unit, one end of the second capacitor C2 is connected to the other end of the tenth resistor R10, and the other ends of the eleventh resistor R11 and the second capacitor C2 are both grounded.

[0035] The ACC detection circuit is used to detect the electric door lock electrical signal and output it to the alarm MCU. This circuit includes the twelfth to fourteenth resistors, a TVS diode D5, and a third capacitor C3. One end of the twelfth resistor R12 serves as the input of the ACC detection circuit and is connected to the other end of the electric door lock; the other end of the twelfth resistor R12 is connected to one end of the thirteenth resistor R13, and the other end of the thirteenth resistor R13 serves as the output of the ACC detection circuit and is connected to the alarm MCU. One end of the third capacitor C3, one end of the fourteenth resistor R14, and the cathode of the TVS diode D5 are connected between the twelfth and thirteenth resistors R12 and R13. The other end of the third capacitor C3, the other end of the fourteenth resistor R14, and the anode of the TVS diode D5 are all grounded.

[0036] like Figure 1 As shown, in the current architecture, when a non-mechanical key is powered on, the ACC signal will be output through the ACC start circuit. This signal is the same line as the ACC signal required for the electric door lock to be powered on, that is, the ACC signals of both are output from the ACC1 port, resulting in the alarm MCU being unable to distinguish them. For models equipped with mechanical keys or knob locks, when only the mechanical key is used and the vehicle is in an alarm state, the alarm actively pulls up the ACC. At this time, if the mechanical key is used to open the electric door lock, the state of the electric door lock cannot be detected, so the system will continue to execute the alarm action. Without changing the entire vehicle architecture, this embodiment designs an electric door lock detection circuit. Regardless of whether the non-mechanical key is powered on or the vehicle is in an alarm state, the alarm will actively pull up the ACC. Due to the voltage drop between diodes D2 and D3, the second transistor Q2 will be turned on, and the second transistor Q3 will also be turned on. The detection circuit then outputs the electric door lock state signal at a valid level (such as a high level). If the electric door lock is unlocked again at this point, the voltage drop across D3 alone is insufficient to turn on the second transistor Q2. Therefore, both Q2 and Q3 are turned off, and the detection circuit outputs an invalid electric door lock status signal (e.g., a low level). The alarm MCU detects that the mechanical key is in the unlocked state, stops the alarm, and then executes the power-on process. Interrupting the alarm with the mechanical key provides a superior riding experience.

[0037] If a user powers on the vehicle with a non-mechanical key and unlocks the electric door, and then powers off with the non-mechanical key, the vehicle will not power off. This also applies to closing the electric door lock. The current power-on and power-off method for the vehicle is that if the non-mechanical key is used to power on, the non-mechanical key must be used to power off, and if the mechanical key is used to power on, the mechanical key must be used to power off. By adding a power-door lock detection circuit, the alarm can detect the current on / off status of the mechanical key after the user powers on with the non-mechanical key and then unlocks the electric door. Therefore, even if the non-mechanical key is used to power on, the user can still power off with the mechanical key, greatly improving the practicality of the vehicle.

[0038] Based on the same inventive concept, another embodiment of the present application provides a vehicle-mounted alarm device mounted on an electric bicycle, which internally includes the aforementioned mechanical key status detection circuit. The implementation solution provided by the vehicle-mounted alarm device is similar to the implementation solution described in the aforementioned method, so it will not be repeated here.

[0039] The above description is only a preferred embodiment of the present application, and the present invention is not limited to the above embodiments. It is understood that other improvements and variations directly derived or imagined by those skilled in the art without departing from the spirit and concept of the present invention should be considered to be included in the scope of protection of the present invention.

Claims

1. A mechanical key state detection circuit, characterized in that: The circuit is placed inside the alarm of the electric bicycle, and includes: an alarm MCU, an ACC starting circuit, an ACC detection circuit, and an electric door lock detection circuit; The ACC startup circuit is used to form a path when the alarm MCU outputs a pull-up ACC signal and output the ACC signal; The input of the electric door lock detection circuit is connected to the output of the ACC starting circuit, and is used to detect the electric door lock status signal and output it to the alarm MCU; The ACC detection circuit is used to detect the electric door lock electrical signal and output it to the alarm MCU.

2. The mechanical key state detection circuit according to claim 1, characterized in that: The ACC startup circuit includes: first to third resistors, first and second diodes, a first transistor and a first MOS transistor; One end of the first resistor serves as the input of the ACC startup circuit and is connected to the alarm MCU to receive the pull-up ACC signal; the other end of the first resistor is connected to the base of the first transistor, the emitter of the first transistor is grounded, and the collector of the first transistor is connected to the power supply voltage through the second and third resistors; the gate of the first MOS transistor is connected between the second and third resistors, and the source of the first MOS transistor is connected to the power supply voltage; the anode of the first diode is connected to the gate, and the cathode is connected to the power supply voltage; the drain of the first MOS transistor is connected to the anode of the second diode, and the cathode of the second diode serves as the output of the ACC startup circuit and is connected to the input of the electric door lock detection circuit.

3. The mechanical key state detection circuit according to claim 1, characterized in that: The electric door lock detection circuit includes: an electric door lock, a first detection unit, a filtering unit and a second detection unit; One end of the electric door lock is connected to the power supply voltage, and the input of the first detection unit is connected to the other end of the electric door lock and the output of the ACC starting circuit as the input of the electric door lock detection circuit; the output of the first detection unit is connected to the input of the second detection unit through the filtering unit, and the output of the second detection unit is connected to the alarm MCU as the output of the electric door lock detection circuit; When the pull-up ACC signal is present, the first detection unit and the second detection unit are turned on in sequence, and the output electric door lock state signal is at a valid level, indicating that the mechanical key is in the closed state; When the electric door lock is closed, the first detection unit and the second detection unit are disconnected, and the output electric door lock state signal is an invalid level, indicating that the mechanical key is in the open state.

4. The mechanical key state detection circuit according to claim 3, characterized in that: The first detection unit includes: fourth to sixth resistors, third and fourth diodes, and a second transistor; The anode of the third diode serves as the input of the first detection unit, one end of the fourth, fifth and sixth resistors are connected, and the connected ends are also connected to the cathode of the third diode, the other end of the fourth resistor and the anode of the fourth diode are connected to the power supply voltage, and the other end of the fifth resistor is grounded; the base of the second transistor is connected to the other end of the sixth resistor, the emitter is connected to the cathode of the fourth diode, and the collector serves as the output of the first detection unit and is connected to the input of the filtering unit.

5. The mechanical key state detection circuit according to claim 3, characterized in that: The second detection unit includes: a seventh and an eighth resistor, a first capacitor and a third transistor; The base of the third transistor is connected to the output of the filtering unit as the input of the second detection unit, and the collector of the third transistor is connected to a fixed voltage through a seventh resistor as the output of the second detection unit, and the fixed voltage is less than the power supply voltage; one end of the eighth resistor and the first capacitor are connected to the collector, and the emitter of the third transistor, the eighth resistor and the other end of the first capacitor are all grounded.

6. The mechanical key state detection circuit according to claim 3, characterized in that: The filtering unit includes: ninth to eleventh resistors and a second capacitor; One end of the ninth, tenth and eleventh resistors are connected, the other end of the ninth resistor is connected to the output of the first detection unit as the input of the filtering unit, the other end of the tenth resistor is connected to the input of the second detection unit as the output of the filtering unit, one end of the second capacitor is connected to the other end of the tenth resistor, and the other ends of the eleventh resistor and the second capacitor are both grounded.

7. The mechanical key state detection circuit according to claim 3, characterized in that: The ACC detection circuit includes: twelfth to fourteenth resistors, a TVS diode and a third capacitor; One end of the twelfth resistor serves as the input of the ACC detection circuit and is connected to the other end of the electric door lock; the other end of the twelfth resistor is connected to one end of the thirteenth resistor, and the other end of the thirteenth resistor serves as the output of the ACC detection circuit and is connected to the alarm MCU; one end of the third capacitor, one end of the fourteenth resistor and the cathode of the TVS diode are connected between the twelfth and thirteenth resistors, and the other end of the third capacitor, the other end of the fourteenth resistor and the anode of the TVS diode are all grounded.

8. A vehicle-mounted alarm device, mounted on an electric bicycle, characterized in that: The mechanical key state detection circuit according to any one of claims 1 to 7 is included therein.