An electric start self-locking circuit and judgment method
By designing an electric start self-locking circuit in the lawn mower power tool, using voltage changes during capacitor charging, real-time A/D sampling to detect voltage waveforms, the problem of being unable to determine the order of the battery and the start button in the prior art is solved. Ensures the safe operation and accurate judgment of the motor.
Patent Information
- Application Number
- CN202211399163.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-11-09
- Publication Date
- 2024-11-26
- Estimated Expiration
- 2042-11-09
AI Technical Summary
The circuit of existing lawn mower power tools lacks self-locking function, and it is impossible to effectively determine whether to install the battery first or press the start button first, which affects safe operation.
An electric start-up self-locking circuit is designed, including battery, power supply voltage, resistor, capacitor, diode, transistor and N-channel mos tube. The voltage waveform of the voltage detection port is detected through real-time A/D sampling, and the sequence is determined by combining software. The voltage changes during capacitor charging are used to determine the order in which the battery is installed and the start key is pressed.
The judgment of the operation safety of the lawn mower power tool is realized, avoiding misjudgment, ensuring the safe operation of the motor, and comparing the tolerance threshold and the charging time threshold, sampling interference is reduced and judgment accuracy is improved.
Smart Images

Figure CN115579997B_ABST
Abstract
Description
Technical Field
[0001] The invention relates to a battery start judgment circuit and a control method in the field of electric appliance control, in particular to an electric start self-locking circuit and a judgment method. Background Art
[0002] With the continuous use of lawn mower power tools in the field of electric appliance control, the safety issues of lawn mower power tools cannot be ignored. A start button and a battery are usually set in the circuit of the lawn mower power tool. The order of installing the battery and pressing the start button has an important impact on safety issues. In the lawn mower power tool, from the perspective of operational safety, you cannot press the start button first and then connect the battery. Instead, you need to install the battery first and then press the start button so that the motor can operate safely. The circuit of the existing lawn mower power tool has no self-locking function. Summary of the invention
[0003] In order to overcome the shortcomings of the background technology, the present invention provides an electric start self-locking circuit and a judgment method. The self-locking circuit can complete the judgment function of whether to install the battery first or press the start button first. The judgment circuit needs software to cooperate to complete
[0004] 1. An electric start self-locking circuit:
[0005] The self-locking circuit includes a battery BT1, a power supply voltage VDD5, resistors R13 to R24, capacitors C3 to C5, diodes D5 to D8, transistors Q5, Q6, Q8 and an N-channel MOS tube Q7;
[0006] A resistor R14 is connected in parallel between the emitter of the transistor Q6 and the base of the transistor Q6, the collector of the transistor Q6 is led out as the power supply port BAT_2, the base of the transistor Q6 is connected to the drain of the N-channel MOSFET Q7 via the resistor R16, the source of the N-channel MOSFET Q7 is connected to the negative electrode of the battery BT1, the gate of the N-channel MOSFET Q7 is connected to one end of the resistor R15 and one end of the resistor R24 respectively, the other end of the resistor R24 is connected to the negative electrode of the battery BT1, the other end of the resistor R15 is connected to one end of the diode D7 and one end of the diode D8 respectively, the other end of the diode D8 is connected to the microcontroller port ON_C via the resistor R23, the other end of the diode D7 is connected to one end of the diode D6, the other end of the diode D6 is led out as the start-up port BAT_1, and the capacitor C3 is connected in parallel with the diode D6;
[0007] The emitter of transistor Q6 is connected to the negative electrode of battery BT1 via diode D5 and capacitor C4, resistor R17 is connected in parallel with diode D5, diode D5 is connected to the emitter of transistor Q5, the base of transistor Q5 is connected to the collector of transistor Q8 via resistor R21, resistor R19 is connected in parallel between the emitter and base of transistor Q5, the emitter of transistor Q8 is connected to the negative electrode of battery BT1, the base of transistor Q8 is connected to power supply voltage VDD5 via resistor R18, a resistor R20 is connected in parallel between the emitter of transistor Q8 and the base of transistor Q8, the collector of transistor Q5 is connected to one end of resistor R13, the other end of resistor R13 is led out as voltage detection port ONOFF_AD, resistor R22 and capacitor C5 are connected in parallel with capacitor C4 respectively;
[0008] The negative electrode of the battery BT1 is grounded, and the emitter of the transistor Q6 is connected to the positive electrode of the battery BT1.
[0009] The resistor R15 is connected to the cathode of the diode D7 and the cathode of the diode D8 respectively, the anode of the diode D8 is connected to the resistor R23, the anode of the diode D7 is connected to the anode of the diode D6, the cathode of the diode D6 is led out as the start port BAT_1, the emitter of the transistor Q6 is connected to the cathode of the diode D5, and the anode of the diode D5 is connected to the capacitor C4 and the emitter of the transistor Q5 respectively.
[0010] The voltage detection port ONOFF_AD is connected to the A / D pin of the single chip microcomputer.
[0011] The self-locking circuit further includes a start key, which is connected between the positive electrode of the battery BT1 and the start port BAT_1.
[0012] 2. A judgment method applicable to the above electric start self-locking circuit
[0013] In actual operation, when the start button is pressed first and then the battery is installed, the voltage of the voltage detection port ONOFF_AD is sampled and detected by A / D. The voltage of the voltage detection port ONOFF_AD is not as Figure 3 As shown, it is a curve with large fluctuations, such as Figure 4 As shown, Figure 5 This is the waveform after A / D processing when the start button is pressed first and then the battery is installed. Figure 4 and Figure 5 It can be seen that the output voltage diagram cannot be used to intuitively determine the order of installing the battery and pressing the start button. Therefore, a method for determining an electric start self-locking circuit is provided, which can more intuitively obtain the result of the order of installing the battery and pressing the start button.
[0014] In determining the order of pressing the start button and installing the battery, the method is performed according to the following steps:
[0015] Step 1: After the self-locking circuit is powered on, the voltage of the voltage detection port ONOFF_AD in the self-locking circuit is detected by real-time A / D sampling, and the first voltage sampled by the A / D is assigned to the maximum voltage value M, and the update number Z is set to 0, and the sampling number K is set to 1;
[0016] Step 2: Delay the preset fixed delay time X;
[0017] Step 3: Detect the voltage of the voltage detection port ONOFF_AD in the self-locking circuit through real-time A / D sampling. When the sampling number K is equal to the preset sampling number threshold, compare the update number Z with the preset charging number threshold to obtain the result of the order of installing the battery and pressing the start button.
[0018] Step 3, specifically:
[0019] Step 31: After completing step 2, continue to perform real-time A / D sampling to detect the voltage of the voltage detection port ONOFF_AD in the self-locking circuit, increase the sampling times K by 1, and use the voltage value sampled by the A / D as the new voltage value N and assign it to compare with the maximum voltage value M to determine:
[0020] If the new voltage value N is greater than the maximum voltage value M and the greater part exceeds the preset tolerance threshold Y, the new voltage value N is assigned to the maximum voltage value M, and the update number Z is increased by 1;
[0021] If the new voltage value N is less than or equal to the sum of the maximum voltage value M and the tolerance threshold Y, the new voltage value N is not assigned to the maximum voltage value M, and the update number Z remains unchanged;
[0022] Step 32: After completing step 31, compare and judge the sampling times K:
[0023] If the sampling number K is less than the preset sampling number threshold, the preset fixed delay time X is delayed, and then the process returns to step 31 to continue A / D sampling, and the voltage detected by the next sampling is judged and processed;
[0024] If the sampling number K is equal to the preset sampling number threshold, A / D sampling is no longer continued, and the result of the order of installing the battery and pressing the start button is determined according to the update number Z.
[0025] In step 32, the result of obtaining the sequence of installing the battery and pressing the start key is determined according to the update number Z, and specifically the update number Z is determined as follows:
[0026] If the update number Z is greater than the preset charging number threshold, it is determined that the start button is pressed first and then the battery is installed, otherwise the battery is installed first and then the start button is pressed.
[0027] The product of the delay time X and the sampling number K is 2 / 3 to 4 / 5 of the charging time of C4 by the self-locking circuit.
[0028] The sampling times K of A / D sampling detection is 20 times, and the updating times Z is 30% of the sampling times.
[0029] The working principle of the present invention is that the positive electrode of the battery BT1 is connected to the starting port BAT_1, the diode D6 is a voltage-stabilizing diode, the connection point between the diode D6 and the diode D7 is at a high level, the gate of the N-channel MOS tube Q7 is at a high level, the drain of the N-channel MOS tube Q7 and the source of the N-channel MOS tube Q7 are turned on, the collector of the transistor Q6 and the emitter of the transistor Q6 are turned on, and the power supply port BAT_2 generates a power supply voltage VDD5 through a power conversion circuit, that is, the power supply port BAT_2 is the power supply source of the power supply voltage VDD5.
[0030] When the single-chip microcomputer detects that the battery is installed first and then the start button is pressed, the single-chip microcomputer port ON_C is high level, the gate of the N-channel MOS tube Q7 is high level, the drain of the N-channel MOS tube Q7 and the source of the N-channel MOS tube Q7 are turned on, the collector of the transistor Q6 and the emitter of the transistor Q6 are turned on, and the power supply port BAT_2 generates the power supply voltage VDD5 through the power conversion circuit. In this way, even if the start button is disconnected after being pressed, the collector of the transistor Q6 and the emitter of the transistor Q6 are turned on due to the control of the single-chip microcomputer port ON_C. Therefore, the power supply voltage VDD5 will still be generated to power the single-chip microcomputer.
[0031] Without considering the on-resistance between the emitter of transistor Q5 and the collector of transistor Q5, if the battery is installed first and then the start button is pressed, since the battery voltage first charges capacitor C4, the voltage detected by the voltage detection port ONOFF_AD is the voltage of battery BT1 * R22 / (R13+R22). When the voltage reaches a stable state, capacitor C4 begins to discharge. After discharge, the steady-state voltage of the voltage detection port ONOFF_AD is the voltage of battery BT1 * R22 / (R13+R22+R17). If the start button is pressed first and then the battery is installed, since capacitor C4 needs to be charged at the beginning, there is a stable voltage on the voltage detection port ONOFF_AD only when it is charged to a certain level. The voltage starts to rise slowly, and the steady-state voltage of the voltage detection port ONOFF_AD is the voltage of battery BT1 * R22 / (R13+R22+R17).
[0032] Theoretically, if you install the battery first and then press the start button, the voltage of the voltage detection port ONOFF_AD is as follows: Figure 2As shown in the figure, at the beginning of A / D sampling detection, the voltage slowly decreases and remains unchanged after it drops to a certain voltage; press the start button first and then install the battery. The voltage of the voltage detection port ONOFF_AD is as follows Figure 3 As shown, in the initial stage of A / D sampling detection, the voltage rises slowly and remains unchanged after reaching a certain voltage. This is because capacitor C4 has a charging process, and the voltage remains unchanged until capacitor C4 is fully charged.
[0033] Preferably, the delay time X of A / D sampling is 2 / 3 to 4 / 5 of the charging time of capacitor C4 divided by the number of sampling times K;
[0034] Preferably, the tolerance threshold value Y refers to a value calculated by dividing the boost value during the charging sampling process by the number of sampling times and then by 2.
[0035] The present invention adopts a voltage value greater than the maximum voltage value, and judges whether there is a charging process according to the update number being greater than a preset charging number threshold, thereby solving the interference problem of sampling; since it is supplemented that it must be greater than the maximum voltage value and must exceed a certain tolerance threshold Y, it further solves the interference of judging a small increase in the sampled voltage value as a charging process; and by utilizing an electric start self-locking circuit, the order of installing the battery and pressing the start button can be judged during the capacitor charging process.
[0036] Beneficial effects of the present invention:
[0037] 1. The electric start self-locking circuit of the present invention completes the judgment function of whether to install the battery first or press the start button first, thereby judging whether the operation of the lawn mower electric tool is safe.
[0038] 2. The A / D voltage sampling value in the present invention not only exceeds the maximum voltage value but also needs to exceed a certain tolerance threshold, further solving the interference of misjudging the charging process caused by a small increase in the sampling voltage value. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] Figure 1 It is a self-locking circuit diagram of the present invention;
[0040] Figure 2 This is a theoretical waveform diagram of ONOFF_AD of the voltage detection port of the present invention when the battery is installed first and then the start key is pressed;
[0041] Figure 3 It is the theoretical waveform diagram of ONOFF_AD of the battery voltage detection port after pressing the start key first and then installing it;
[0042] Figure 4 This is an actual diagram of the A / D sampling waveform of the present invention when the start button is pressed first and then the battery is installed to start the A / D sampling waveform;
[0043] Figure 5This is a waveform diagram after the A / D processing is started by first pressing the start button and then installing the battery. DETAILED DESCRIPTION
[0044] The present invention will be further described below in conjunction with the accompanying drawings:
[0045] like Figure 1 As shown, the self-locking circuit includes a battery BT1, a power supply voltage VDD5, resistors R13 to R24, capacitors C3 to C5, diodes D5 to D8, transistors Q5, Q6, Q8 and an N-channel MOS tube Q7;
[0046] A resistor R14 is connected in parallel between the emitter of the transistor Q6 and the base of the transistor Q6. The collector of the transistor Q6 is led out as a power supply port BAT_2. The power supply port BAT_2 is a power supply source of the power supply voltage VDD5. The base of the transistor Q6 is connected to the drain of the N-channel MOSFET Q7 via the resistor R16. The source of the N-channel MOSFET Q7 is connected to the negative electrode of the battery BT1. The gate of the N-channel MOSFET Q7 is connected to one end of the resistor R15 and one end of the resistor R24 respectively. The other end of the resistor R24 is connected to the negative electrode of the battery BT1. The resistor R16 is connected to the negative electrode of the battery BT1. The other end of 5 is connected to one end of diode D7 and one end of diode D8 respectively. The other end of diode D8 is connected to microcontroller port ON_C via resistor R23. Microcontroller port ON_C is used to maintain the continuous power-on state of the self-locking circuit. Specifically, when the battery is installed first and then the start button is pressed, the microcontroller port ON_C is set to a high level and the start button can be released. The microcontroller has power and can continue to work. The other end of diode D7 is connected to one end of diode D6. The other end of diode D6 is led out as the start port BAT_1. Capacitor C3 is connected in parallel with diode D6.
[0047] The emitter of transistor Q6 is connected to the negative electrode of battery BT1 via diode D5 and capacitor C4, resistor R17 is connected in parallel with diode D5, diode D5 is connected to the emitter of transistor Q5, the base of transistor Q5 is connected to the collector of transistor Q8 via resistor R21, resistor R19 is connected in parallel between the emitter and base of transistor Q5, the emitter of transistor Q8 is connected to the negative electrode of battery BT1, the base of transistor Q8 is connected to power supply voltage VDD5 via resistor R18, a resistor R20 is connected in parallel between the emitter of transistor Q8 and the base of transistor Q8, the collector of transistor Q5 is connected to one end of resistor R13, the other end of resistor R13 is led out as voltage detection port ONOFF_AD, resistor R22 and capacitor C5 are connected in parallel with capacitor C4 respectively;
[0048] The negative electrode of the battery BT1 is grounded, and the emitter of the transistor Q6 is connected to the positive electrode of the battery BT1.
[0049] The resistor R15 is connected to the cathode of the diode D7 and the cathode of the diode D8 respectively, the anode of the diode D8 is connected to the resistor R23, the anode of the diode D7 is connected to the anode of the diode D6, the cathode of the diode D6 is led out as the startup port BAT_1, the emitter of the transistor Q6 is connected to the cathode of the diode D5, and the anode of the diode D5 is connected to the capacitor C4 and the emitter of the transistor Q5 respectively.
[0050] The voltage detection port ONOFF_AD is connected to the A / D pin of the microcontroller.
[0051] The self-locking circuit further includes a start key, which is connected between the positive electrode of the battery BT1 and the start port BAT_1.
[0052] In determining the order of pressing the start button and installing the battery, the method is performed according to the following steps:
[0053] Step 1: After the self-locking circuit is powered on, the voltage of the voltage detection port ONOFF_AD in the self-locking circuit is sampled and detected in real time by A / D, and the first voltage sampled by A / D is assigned to the maximum voltage value M, and the update number Z is set to 0, and the sampling number K is set to 1;
[0054] Step 2: Delay the preset fixed delay time X;
[0055] Step 3: Detect the voltage of the voltage detection port ONOFF_AD in the self-locking circuit through real-time A / D sampling. When the sampling number K is equal to the preset sampling number threshold, compare the update number Z with the preset charging number threshold to obtain the result of the order of installing the battery and pressing the start button.
[0056] Step 3, specifically:
[0057] Step 31: After completing step 2, continue to sample the voltage of the voltage detection port ONOFF_AD in the self-locking circuit in real time by A / D, increase the sampling times K by 1, and use the voltage value sampled by A / D as the new voltage value N and assign it to compare with the maximum voltage value M for judgment:
[0058] If the new voltage value N is greater than the maximum voltage value M and the greater part exceeds the preset tolerance threshold Y, the new voltage value N is assigned to the maximum voltage value M, and the update number Z is increased by 1;
[0059] If the new voltage value N is less than or equal to the sum of the maximum voltage value M and the tolerance threshold Y, the new voltage value N is not assigned to the maximum voltage value M, and the update number Z remains unchanged;
[0060] Step 32: After completing step 31, compare and judge the sampling times K:
[0061] If the sampling number K is less than the preset sampling number threshold, the preset fixed delay time X is delayed, and then the process returns to step 31 to continue A / D sampling, and the voltage detected by the next sampling is judged and processed;
[0062] If the sampling number K is equal to the preset sampling number threshold, A / D sampling is no longer continued, and the result of the order of installing the battery and pressing the start button is determined according to the update number Z.
[0063] In step 32, the result of obtaining the sequence of installing the battery and pressing the start key is determined according to the update number Z, and specifically the update number Z is determined as follows:
[0064] If the update number Z is greater than the preset charging number threshold, it is determined that the start button is pressed first and then the battery is installed, otherwise the battery is installed first and then the start button is pressed.
[0065] The product of the delay time X and the sampling number K is 2 / 3 to 4 / 5 of the charging time of C4 by the self-locking circuit.
[0066] The sampling times K of A / D sampling detection is 20 times, and the updating times Z is 30% of the sampling times.
Claims
1. An electric start self-locking circuit, characterized in that: The self-locking circuit includes a battery BT1, a power supply voltage VDD5, a resistor R13 to a resistor R24, a capacitor C3 to a capacitor C5, a diode D5 to a diode D8, a transistor Q5, a transistor Q6, a transistor Q8 and an N-channel MOS tube Q7; A resistor R14 is connected in parallel between the emitter of the transistor Q6 and the base of the transistor Q6, the collector of the transistor Q6 is led out as the power supply port BAT_2, the base of the transistor Q6 is connected to the drain of the N-channel MOSFET Q7 via the resistor R16, the source of the N-channel MOSFET Q7 is connected to the negative electrode of the battery BT1, the gate of the N-channel MOSFET Q7 is connected to one end of the resistor R15 and one end of the resistor R24 respectively, the other end of the resistor R24 is connected to the negative electrode of the battery BT1, the other end of the resistor R15 is connected to one end of the diode D7 and one end of the diode D8 respectively, the other end of the diode D8 is connected to the microcontroller port ON_C via the resistor R23, the other end of the diode D7 is connected to one end of the diode D6, the other end of the diode D6 is led out as the start-up port BAT_1, and the capacitor C3 is connected in parallel with the diode D6; The emitter of transistor Q6 is connected to the negative electrode of battery BT1 via diode D5 and capacitor C4, resistor R17 is connected in parallel with diode D5, diode D5 is connected to the emitter of transistor Q5, the base of transistor Q5 is connected to the collector of transistor Q8 via resistor R21, resistor R19 is connected in parallel between the emitter and base of transistor Q5, the emitter of transistor Q8 is connected to the negative electrode of battery BT1, the base of transistor Q8 is connected to power supply voltage VDD5 via resistor R18, a resistor R20 is connected in parallel between the emitter of transistor Q8 and the base of transistor Q8, the collector of transistor Q5 is connected to one end of resistor R13, the other end of resistor R13 is led out as voltage detection port ONOFF_AD, resistor R22 and capacitor C5 are connected in parallel with capacitor C4 respectively; The negative electrode of the battery BT1 is grounded, and the emitter of the transistor Q6 is connected to the positive electrode of the battery BT1.
2. The electric start self-locking circuit according to claim 1, characterized in that: The resistor R15 is connected to the cathode of the diode D7 and the cathode of the diode D8 respectively, the anode of the diode D8 is connected to the resistor R23, the anode of the diode D7 is connected to the anode of the diode D6, the cathode of the diode D6 is led out as the start port BAT_1, the emitter of the transistor Q6 is connected to the cathode of the diode D5, and the anode of the diode D5 is connected to the capacitor C4 and the emitter of the transistor Q5 respectively.
3. The electric start self-locking circuit according to claim 1, characterized in that: The voltage detection port ONOFF_AD is connected to the A / D pin of the single chip microcomputer.
4. The electric start self-locking circuit according to claim 1, characterized in that: The self-locking circuit further includes a start key, which is connected between the positive electrode of the battery BT1 and the start port BAT_1.
5. The self-locking judgment method applied to the electric start self-locking circuit according to any one of claims 1 to 4, characterized in that: In determining the order of pressing the start button and installing the battery, the method is performed according to the following steps: Step 1: After the self-locking circuit is powered on, the voltage of the voltage detection port ONOFF_AD in the self-locking circuit is detected by real-time A / D sampling, and the first voltage sampled by the A / D is assigned to the maximum voltage value M, and the update number Z is set to 0, and the sampling number K is set to 1; Step 2: Delay the preset fixed delay time X; Step 3: Detect the voltage of the voltage detection port ONOFF_AD in the self-locking circuit through real-time A / D sampling. When the sampling number K is equal to the preset sampling number threshold, compare the update number Z with the preset charging number threshold to obtain the result of the order of installing the battery and pressing the start button.
6. A self-locking judgment method according to claim 5, characterized in that: The step 3 is specifically as follows: Step 31: After completing step 2, continue to perform real-time A / D sampling to detect the voltage of the voltage detection port ONOFF_AD in the self-locking circuit, increase the sampling times K by 1, and use the voltage value sampled by the A / D as the new voltage value N and assign it to compare with the maximum voltage value M to determine: If the new voltage value N is greater than the maximum voltage value M and the greater part exceeds the preset tolerance threshold Y, the new voltage value N is assigned to the maximum voltage value M, and the update number Z is increased by 1; If the new voltage value N is less than or equal to the sum of the maximum voltage value M and the tolerance threshold Y, the new voltage value N is not assigned to the maximum voltage value M, and the update number Z remains unchanged; Step 32: After completing step 31, compare and judge the sampling times K: If the sampling number K is less than the preset sampling number threshold, the preset fixed delay time X is delayed, and then the process returns to step 31 to continue A / D sampling, and the voltage detected by the next sampling is judged and processed; If the sampling number K is equal to the preset sampling number threshold, A / D sampling is no longer continued, and the result of the order of installing the battery and pressing the start button is determined according to the update number Z.
7. A self-locking judgment method according to claim 6, characterized in that: In step 32, the result of obtaining the sequence of installing the battery and pressing the start key is determined according to the update number Z, and specifically the update number Z is determined as follows: If the update number Z is greater than the preset charging number threshold, it is determined that the start button is pressed first and then the battery is installed, otherwise the battery is installed first and then the start button is pressed.
8. A self-locking judgment method according to claim 5, characterized in that: The product of the delay time X and the sampling number K is 2 / 3 to 4 / 5 of the charging time of C4 by the self-locking circuit.
9. A self-locking judgment method according to claim 5, characterized in that: The sampling times K of the A / D sampling detection is 20 times, and the updating times Z is 30% of the sampling times.
