Electronic device
By designing the controller and triggers, the power supply circuit between the rechargeable battery and the motherboard is cut off or connected, solving the problem of high power consumption of the electronic transmission actuator's rechargeable battery and extending the battery's service life.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-01-29
- Publication Date
- 2026-04-07
AI Technical Summary
Because the rechargeable battery of the electronic speed actuator is in operation for a long time, it has a large leakage current, resulting in high power consumption and short working time.
An electronic device was designed that uses a controller to control a trigger and a power supply switch circuit to cut off or connect the power supply circuit between the rechargeable battery and the motherboard, thereby entering or exiting the transport mode and reducing the power consumption of the rechargeable battery.
By cutting off the power supply circuit from the rechargeable battery to the motherboard, the power consumption of the rechargeable battery is reduced, the power supply time of the rechargeable battery is extended, and the motherboard is activated when needed, thus solving the problem of high power consumption of the rechargeable battery.
Smart Images

Figure CN121813593A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application belongs to the technical field of circuit, in particular, relates to an electronic device. BACKGROUND
[0002] The electronic gear shifting executor is provided with a small capacity charging battery for supplying power to each electric component of the electronic gear shifting executor.
[0003] If the charging battery is always in working state, the leakage current will be large due to the large number of components on the main board of the electronic gear shifting executor, resulting in large power consumption of the charging battery and short working time. SUMMARY
[0004] The present application provides an electronic device, which solves the technical problem of large power consumption of the charging battery in the prior art.
[0005] To achieve the above technical purposes, the present application adopts the following technical solutions: The electronic device comprises: a main board having a controller; a charging board having a charging battery and a charging port; a positive electrode of the charging port is connected with a positive electrode of the charging battery, and a negative electrode of the charging port is connected with a ground terminal of the main board; and a positive electrode of the charging battery is connected with a power input terminal of the main board; a charging activation circuit comprising: a flip-flop having a data input end connected with a first control terminal of the main board and a clock input end connected with a second control terminal of the main board; a power supply switch circuit having a control end connected with a data output end of the flip-flop, one end of a switch path of the power supply switch circuit connected with a negative electrode of the charging battery, the other end of the switch path connected with the ground terminal of the main board, and a diode connected in parallel with the two ends of the switch path; a positive electrode of the diode is connected with the negative electrode of the charging battery, and a negative electrode of the diode is connected with the ground terminal of the main board; The controller is configured to: when receiving an instruction to enter the transportation mode, outputting an off instruction to the flip-flop through the first control terminal and the second control terminal, outputting an off signal to the control end of the power supply switch circuit through the data output end of the flip-flop, and controlling the power supply switch circuit to be off to enter the transportation mode; when changing from the power-off state to the power-on state, outputting an on instruction to the flip-flop through the first control terminal and the second control terminal, outputting an on signal to the control end of the power supply switch circuit through the data output end of the flip-flop, and controlling the power supply switch circuit to be on to exit the transportation mode.
[0006] In some embodiments of the present application, the flip-flop is a rising edge triggered D flip-flop.
[0007] In some embodiments of the application, the controller is further configured to: In response to receiving the instruction to enter the transport mode, control the first control terminal to output an off instruction to the data input terminal of the D flip-flop, and control the second control terminal to output a rising edge to the clock input terminal of the D flip-flop, so that the data output terminal of the D flip-flop outputs an off signal to the control terminal of the power supply switching circuit to control the power supply switching circuit to turn off and enter the transport mode. In response to transitioning from the power-off state to the power-on state, control the first control terminal to output an on instruction to the data input terminal of the D flip-flop, and control the second control terminal to output a rising edge to the clock input terminal of the D flip-flop, so that the data output terminal of the D flip-flop outputs an on signal to the control terminal of the power supply switching circuit to control the power supply switching circuit to turn on and exit the transport mode.
[0008] In some embodiments of the application, in response to transitioning from the power-off state to the power-on state, the method further comprises the following steps: After controlling the first control terminal to output the on instruction to the data input terminal of the D flip-flop for a first set time, control the second control terminal to output the rising edge to the clock input terminal of the D flip-flop.
[0009] In some embodiments of the application, the controller is further configured to: After exiting the transport mode, control the second control terminal to output a low level to the clock input terminal of the D flip-flop, and control the first control terminal to output a low level to the data input terminal of the D flip-flop.
[0010] In some embodiments of the application, the controller is further configured to: After exiting the transport mode, control the second control terminal to output a low level to the clock input terminal of the D flip-flop for a second set time, and then control the first control terminal to output a low level to the data input terminal of the D flip-flop.
[0011] In some embodiments of the application, the power supply switching circuit comprises: a first switching circuit, whose control terminal is connected to the data output terminal of the flip-flop, and one end of its switching path is connected to a direct current power supply; a second switching circuit, whose control terminal is connected to the other end of the switching path of the first switching circuit; one end of the switching path of the second switching circuit is connected to the negative electrode of the rechargeable battery, and the other end of the switching path of the second switching circuit is connected to the ground terminal of the mainboard; the two ends of the switching path of the second switching circuit are connected in parallel with the diode.
[0012] In some embodiments of the present application, the first switch circuit comprises a first switch tube; and the second switch circuit comprises a second switch tube. A control end of the first switch tube is connected to a data output end of the flip-flop. One end of a switch path of the first switch tube is connected to the DC power supply. The other end of the switch path of the first switch tube is connected to a control end of the second switch tube. One end of a switch path of the second switch tube is connected to a negative electrode of the rechargeable battery, and the other end of the switch path of the second switch tube is connected to a ground end of the mainboard.
[0013] In some embodiments of the present application, the first switch tube is a PNP triode. A base of the PNP triode is connected to the data output end of the flip-flop through a first resistor, connected to the DC power supply through a second resistor, and grounded through a third resistor. An emitter of the PNP triode is connected to the DC power supply. A collector of the PNP triode is connected to the negative electrode of the rechargeable battery through a fourth resistor, and connected to the control end of the second switch tube.
[0014] In some embodiments of the present application, the second switch tube is an NMOS tube. A gate of the NMOS tube is connected to the other end of the switch path of the first switch tube. A source of the NMOS tube is connected to the negative electrode of the rechargeable battery. A drain of the NMOS tube is connected to the ground end of the mainboard. The diode is a body diode of the NMOS tube.
[0015] Compared with the prior art, the electronic device has the advantages and positive effects that when the controller receives the instruction to enter the transportation mode, the controller controls the first control end and the second control end to output the off instruction to the flip-flop, so that the data output end of the flip-flop outputs the off signal to the control end of the power supply switch circuit to control the power supply switch circuit to be off, thereby cutting off the power supply circuit in which the charging battery supplies power to the mainboard, and the mainboard is powered off to enter the transportation mode; since the mainboard is powered off, the power consumption of the charging battery is reduced, and the power supply duration of the charging battery is prolonged; when the charging port is connected to the charger, the charger charges the charging battery and supplies power to the mainboard, and the controller is powered on; when the controller is switched from the powered-off state to the powered-on state, the controller controls the first control end and the second control end to output the on instruction to the flip-flop, so that the data output end of the flip-flop outputs the on signal to the control end of the power supply switch circuit to control the power supply switch circuit to be on, thereby enabling the power supply circuit in which the charging battery supplies power to the mainboard, and the electronic device exits the transportation mode; after the charger is removed, the charging battery can supply power to the mainboard, and the mainboard normally operates. Moreover, the flip-flop can avoid entering the transportation mode during the controller upgrade process, and the controller is smoothly upgraded. Therefore, the electronic device cuts off the power supply circuit in which the charging battery supplies power to the mainboard when the controller receives the instruction to enter the transportation mode, the mainboard is powered off to enter the transportation mode, the power consumption of the charging battery is reduced, the power supply duration of the charging battery is prolonged, and the technical problem of large power consumption of the charging battery in the prior art is solved; when the charger is connected, the mainboard can be powered on to exit the transportation mode.
[0016] Other characteristics and advantages of the present application will become more apparent after reading the detailed description of the embodiments of the present application in conjunction with the accompanying drawings. BRIEF DESCRIPTION OF DRAWINGS
[0017] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the accompanying drawings needed to be used in the embodiments or the prior art description will be briefly introduced. Obviously, the accompanying drawings in the following description are some embodiments of the present application, and other accompanying drawings can be obtained by those skilled in the art without any creative labor.
[0018] Figure 1 is a circuit structure block diagram of an embodiment of the electronic device proposed by the present application; Figure 2 is Figure 1 is a circuit principle diagram of an embodiment of the charging activation circuit in the present application; Figure 3 is Figure 2 is a circuit principle diagram of a triode in the present application; Figure 4 is an equivalent circuit diagram; Figure 5 is another equivalent circuit diagram; Figure 6 is another equivalent circuit diagram; Figure 7 is an input signal, output signal waveform diagram of the flip-flop; Figure 8 is a power supply signal, output signal waveform diagram of the flip-flop; Figure 9 is a power supply signal, output signal waveform diagram of the flip-flop. DETAILED DESCRIPTION
[0019] In order to make the objects, technical solutions and advantages of the present application clearer, further detailed description will be made to the present application in combination with the drawings and examples.
[0020] It should be noted that in the description of the present application, the terms indicating the direction or position relationship of "up", "down", "left", "right", "vertical", "horizontal", "inner", "outer" and the like are based on the direction or position relationship shown in the drawings, which is only for the convenience of description, and does not indicate or imply that the device or element must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation on the present application. In addition, the terms "first" and "second" are only for descriptive purposes and cannot be understood as indicating or implying relative importance.
[0021] In addition, it should be further pointed out that in the description of the present application, unless otherwise explicitly specified and limited, the terms "mounting", "connecting", "connecting" should be understood broadly, for example, it can be fixedly connected, or it can be detachably connected, or integrally connected; it can be mechanically connected, or it can be electrically connected; it can be directly connected, or it can be indirectly connected through an intermediate medium; it can be the communication inside two elements. For those skilled in the art, the specific meaning of the above terms in the present application can be understood according to the specific circumstances.
[0022] The electronic device of the present embodiment includes a mainboard, a charging board, a charging activation circuit, etc., as shown in Figure 1 .
[0023] The mainboard has a controller, a ground terminal, a power input terminal, etc.
[0024] The charging board has a charging battery and a charging port; the positive electrode of the charging port is connected with the positive electrode of the charging battery through a charging management chip, and the negative electrode of the charging port is connected with the ground terminal of the mainboard. The positive electrode and the negative electrode of the charging port are used to connect the positive electrode and the negative electrode of the charger. The positive electrode of the charging battery is connected with the power input terminal of the mainboard.
[0025] The charging activation circuit includes a flip-flop U1 and a power supply switch circuit, etc., as shown in Figure 2 .
[0026] A flip-flop U1, whose data input end is connected with the first control end of the mainboard; whose clock input end is connected with the second control end of the mainboard; and whose data output end is connected with the control end of the power supply switch circuit. The power supply input end of the flip-flop is connected with a direct current power supply (such as a 3.3V direct current power supply).
[0027] The power supply switch circuit, whose control end is connected with the data output end of the flip-flop, has one end of its switch path connected with the negative pole of the charging battery, has the other end of its switch path connected with the ground end of the mainboard, and has two ends of its switch path connected in parallel with a diode; the positive pole of the diode is connected with the negative pole of the charging battery, and the negative pole of the diode is connected with the ground end of the mainboard.
[0028] The ground end of the mainboard is grounded (the mainboard end GND). The power supply input end of the mainboard is connected with the positive pole BAT+ of the charging battery.
[0029] The controller is configured to: When receiving an instruction to enter the transportation mode, the controller controls the first control end and the second control end of the mainboard to output an off instruction to the flip-flop, controls the data output end of the flip-flop to output an off signal to the control end of the power supply switch circuit, and controls the power supply switch circuit to be off, so as to enter the transportation mode. When the power-off state is changed into the power-on state, the controller controls the first control end and the second control end of the mainboard to output an on instruction to the flip-flop, controls the data output end of the flip-flop to output an on signal to the control end of the power supply switch circuit, and controls the power supply switch circuit to be on, so as to exit the transportation mode.
[0030] When receiving an instruction to enter the transportation mode, the controller controls the power supply switch circuit to be off, that is, the power supply circuit for the mainboard supplied by the charging battery is cut off, the mainboard is powered off, stops working, and enters an ultra-low power consumption state, that is, enters the transportation mode. Since the charging battery cannot supply power to the mainboard, the power consumption of the charging battery is reduced, and the power supply time of the charging battery is prolonged.
[0031] When it is necessary to activate the mainboard, that is, to exit the transportation mode, the charging port is connected with the charger, the charger charges the charging battery, and simultaneously supplies power to the mainboard, so as to activate the mainboard.
[0032] When the power supply switch circuit is off, the charging circuit for charging the charging battery by the charger is: the positive pole of the charger → the positive pole BAT+ of the battery → the battery → the negative pole BAT- of the battery → the diode → the ground end of the mainboard → the negative pole of the charger.
[0033] When the power supply switch circuit is on, the charging circuit for charging the charging battery by the charger is: the positive pole of the charger → the positive pole BAT+ of the battery → the battery → the negative pole BAT- of the battery → the switch path of the power supply switch circuit → the ground end of the mainboard → the negative pole of the charger.
[0034] The power supply circuit for the mainboard powered by the charging battery is: the positive pole of the charging battery → the positive pole of the battery BAT+ → the power input end of the mainboard → the power conversion chip on the mainboard → the load on the mainboard → the ground end of the mainboard → the negative pole of the charging battery.
[0035] After the mainboard is powered on, the power conversion chip (such as a DCDC chip or an LDO chip) on the mainboard generates a direct-current power supply (such as a 3.3V direct-current power supply) to supply power to the controller MCU and peripheral circuits and other electrical devices on the mainboard, and to supply power to the power supply switch circuit and the flip-flop.
[0036] After the mainboard is powered on, the controller is powered on, the controller changes from a power-off state to a power-on state, the controller MCU starts to work, the first control end and the second control end output a conduction instruction to the flip-flop, the data output end of the flip-flop outputs a conduction signal to the control end of the power supply switch circuit, the power supply switch circuit is controlled to be conductive, the power supply circuit for the mainboard powered by the charging battery is conductive, the power-on activation is successful, the mainboard exits the transportation mode and enters the normal working mode. At this time, even if the charging battery is pulled out, the charging battery can supply power to the mainboard, and the mainboard can still work normally.
[0037] After the charging battery is pulled out, the power supply circuit for the mainboard powered by the charging battery is: the positive pole of the battery BAT+ → the power input end of the mainboard → the power conversion chip on the mainboard → the load on the mainboard → the ground end of the mainboard → the switch path of the power supply switch circuit → the negative pole of the battery BAT-. Therefore, the charging battery can normally supply power to the mainboard, and the mainboard can normally operate.
[0038] When the controller is performing OTA upgrade, the states of the first control end and the second control end (i.e. the IO port of the controller) are uncertain, and a turn-off instruction may be output, causing the mainboard to power off and enter the transportation mode. In order to avoid the mainboard entering the transportation mode due to the unstable states of the first control end and the second control end during the upgrade process, a flip-flop is designed, the flip-flop is triggered at the edge, and has a data retention function. Therefore, during the upgrade process of the controller, the output of the flip-flop is stable, avoiding the entry into the transportation mode during the upgrade process, and ensuring the smooth upgrade of the controller.
[0039] The electronic device of the embodiment, when the controller receives the instruction to enter the transportation mode, the controller controls the first control end and the second control end to output the off instruction to the flip-flop, so that the data output end of the flip-flop outputs the off signal to the control end of the power supply switch circuit, to control the power supply switch circuit to be off, and the power supply loop in which the charging battery supplies power to the mainboard is cut off, the mainboard is powered off, and the transportation mode is entered; because the mainboard is powered off, the power consumption of the charging battery is reduced, and the power supply duration of the charging battery is prolonged; when the charging port is connected to the charger, the charger charges the charging battery and supplies power to the mainboard, the controller is powered on, and when the controller is switched from the powered-off state to the powered-on state, the controller controls the first control end and the second control end to output the on instruction to the flip-flop, so that the data output end of the flip-flop outputs the on signal to the control end of the power supply switch circuit, to control the power supply switch circuit to be on, so that the power supply loop in which the charging battery supplies power to the mainboard is on, and the transportation mode is exited; after the charger is removed, the charging battery can supply power to the mainboard, and the mainboard normally operates. Moreover, the flip-flop can avoid entering the transportation mode during controller upgrading, and ensure smooth upgrading of the controller. Therefore, the electronic device of the embodiment cuts off the power supply loop in which the charging battery supplies power to the mainboard when the controller receives the instruction to enter the transportation mode, the mainboard is powered off, the transportation mode is entered, the power consumption of the charging battery is reduced, the power supply duration of the charging battery is prolonged, and the technical problem of large power consumption of the charging battery in the prior art is solved; when the charger is connected, the mainboard can be powered on and the transportation mode is exited.
[0040] To prolong the working duration of the charging battery, a charging activation circuit is designed in the electronic device, the power supply of the mainboard is disconnected in the transportation mode, and the power consumption is extremely low. When the mainboard needs to normally operate, the charger is connected to supply power to the mainboard, and charging activation is achieved.
[0041] In some embodiments of the application, the flip-flop is a rising edge triggered D flip-flop. It is ensured that the state conversion only occurs at the clock edge, is stable and reliable, and unnecessary jitter or glitches are avoided.
[0042] When the clock input end of the D flip-flop receives a rising edge signal, if the data input end is at a low level, the data output end is at a high level; if the data input end is at a high level, the data output end is at a low level.
[0043] When the clock input end of the D flip-flop is at a low level, the data output end remains the previous state and is not affected by the change of the data input end.
[0044] In some embodiments of the application, the controller is further configured to: When receiving the instruction of entering the transport mode, the controller controls the first control end to output the off instruction (such as low level) to the data input end of the D flip-flop, controls the second control end to output the rising edge (first output low level and then output high level) to the clock input end of the D flip-flop, so that the data output end of the D flip-flop outputs the off signal (such as high level) to the control end of the power supply switch circuit to control the power supply switch circuit to be off, and enter the transport mode.
[0045] When the controller is in the power-off state and is changed into the power-on state, the controller controls the first control end to output the on instruction (such as high level) to the data input end of the D flip-flop, controls the second control end to output the rising edge (first output low level and then output high level) to the clock input end of the D flip-flop, so that the data output end of the D flip-flop outputs the on signal (such as low level) to the control end of the power supply switch circuit to control the power supply switch circuit to be on, and exit the transport mode.
[0046] Therefore, when the rising edge signal is received at the clock input end of the D flip-flop, If the data input end is the off instruction of low level, the data output end is the off signal of high level, so as to control the power supply switch circuit to be off and enter the transport mode.
[0047] If the data input end is the on instruction of high level, the data output end is the on signal of low level, so as to control the power supply switch circuit to be on and exit the transport mode.
[0048] By designing the above control logic, the off signal or the on signal is stably output to the power supply switch circuit through the D flip-flop, so that the mainboard enters or exits the transport mode, and the control logic is simple, stable and reliable.
[0049] In some embodiments of the application, when the controller is in the power-off state and is changed into the power-on state, the following steps are further included: After the first control end outputs the on instruction (such as high level) to the data input end of the D flip-flop for a first set time length (such as 500us), the second control end outputs the rising edge to the clock input end of the D flip-flop.
[0050] If the rising edge signal is received at the clock input end of the D flip-flop, and the data input end of the D flip-flop has not received the on instruction (such as high level), the data output end cannot output the on signal (such as low level), the power supply switch circuit is still off, the mainboard is still powered off when the charger is pulled out, and the power-on activation fails.
[0051] Therefore, the controller controls the first control end to output a conduction instruction (such as a high level) to the data input end of the D flip-flop when the power-off state is changed to the power-on state, and controls the second control end to switch from a low level to a high level after a first set time length (such as 500 us), so as to ensure that the data output end outputs a conduction signal (such as a low level), and the power supply switching circuit is turned on, and the mainboard is successfully powered on and activated.
[0052] In some embodiments of the present application, the controller is further configured to control the second control end to output a low level to the clock input end of the D flip-flop and control the first control end to output a low level to the data input end of the D flip-flop after the transportation mode is exited.
[0053] If the data input end and the clock input end of the D flip-flop maintain a high level, the power consumption is relatively high. Therefore, after the mainboard is successfully activated, the signals of the data input end and the clock input end of the D flip-flop are set to a low level after the transportation mode is exited, so as to reduce the power consumption of the D flip-flop.
[0054] In some embodiments of the present application, the controller is further configured to control the second control end to output a low level to the clock input end of the D flip-flop for a second set time length (such as 1 ms) and then control the first control end to output a low level to the data input end of the D flip-flop after the transportation mode is exited.
[0055] If the data input end and the clock input end of the D flip-flop are simultaneously lowered, the output state of the data output end of the D flip-flop is uncertain, which may cause the power supply switching circuit to be turned off. Therefore, the clock input end of the D flip-flop is first set to a low level, and then the data input end of the D flip-flop is set to a low level after a second set time length, such as 1 ms, so as to ensure that the state of the data output end of the D flip-flop is stable. The waveform diagram is shown in Figure 7 .
[0056] In some embodiments of the present application, the power supply switching circuit includes a first switching circuit and a second switching circuit.
[0057] The first switching circuit has a control end connected to the data output end of the flip-flop, and one end of a switching path of the first switching circuit is connected to a direct current power supply (such as a 3.3V direct current power supply).
[0058] The second switching circuit has a control end connected to the other end of the switching path of the first switching circuit. One end of a switching path of the second switching circuit is connected to a negative electrode BAT- of the charging battery, and the other end of the switching path of the second switching circuit is connected to a ground end of the mainboard. The two ends of the switching path of the second switching circuit are connected in parallel with a diode. The positive electrode of the diode is connected to the negative electrode BAT- of the charging battery, and the negative electrode of the diode is connected to the ground end of the mainboard.
[0059] When the data output end of the flip-flop outputs an off signal to the control end of the first switch circuit, the switch path of the first switch circuit is controlled to be off, and the switch path of the second switch circuit is controlled to be off, that is, the power supply loop in which the charging battery supplies power to the mainboard is cut off, and the mainboard enters the transportation mode.
[0060] When the data output end of the flip-flop outputs an on signal to the control end of the first switch circuit, the switch path of the first switch circuit is controlled to be on, and the switch path of the second switch circuit is controlled to be on, that is, the power supply loop in which the charging battery supplies power to the mainboard is connected, the mainboard exits the transportation mode, and enters the normal working mode.
[0061] By designing the power supply switch circuit as the first switch circuit and the second switch circuit, the on-off control is convenient, and the on-off of the power supply loop in which the charging battery supplies power to the mainboard is facilitated.
[0062] In some embodiments of the present application, the first switch circuit includes a first switch tube T1, and the second switch circuit includes a second switch tube Q2.
[0063] The control end of the first switch tube T1 is connected to the data output end of the flip-flop, one end of the switch path of the first switch tube T1 is connected to a direct current power supply (such as a 3.3V direct current power supply), the other end of the switch path of the first switch tube T1 is connected to the control end of the second switch tube Q2, one end of the switch path of the second switch tube Q2 is connected to the negative electrode of the charging battery, and the other end of the switch path of the second switch tube Q2 is connected to the ground end of the mainboard.
[0064] When the first switch tube T1 is off, the second switch tube Q2 is also off, and the power supply loop in which the charging battery supplies power to the mainboard is cut off. When the first switch tube T1 is on, the second switch tube Q2 is also on, and the power supply loop in which the charging battery supplies power to the mainboard is connected.
[0065] By designing the first switch circuit to include the first switch tube T1 and the second switch circuit to include the second switch tube Q2, the circuit structure is simple, and the on-off control is convenient.
[0066] In some embodiments of the present application, the first switch tube T1 is a PNP triode. The base of the PNP triode is connected to the data output end of the flip-flop through a first resistor R1, the base of the PNP triode is connected to a direct current power supply (such as a 3.3V direct current power supply) through a second resistor R2, the base of the PNP triode is grounded through a third resistor R3, the emitter of the PNP triode is connected to the direct current power supply, the collector of the PNP triode is connected to the negative electrode of the charging battery through a fourth resistor R4, and the collector of the PNP triode is connected to the control end of the second switch tube.
[0067] When the base of the PNP triode receives a high level, the PNP triode is off, the second switch tube Q2 is also off, and the power supply loop in which the charging battery supplies power to the mainboard is cut off.
[0068] When the base of the PNP triode receives a low level, the PNP triode is turned on, so that the second switch tube Q2 is also turned on, and the power supply circuit for the main board powered by the charging battery is connected.
[0069] By selecting the first switch tube T1 as a PNP triode, the on-off control is convenient, the performance is stable, and the cost is low.
[0070] In some embodiments of the present application, the first switch tube is a PMOS tube. The gate of the PMOS tube is connected to the data output end of the flip-flop through the fifth resistor; the gate of the PMOS tube is connected to the direct current power supply (such as a 3.3V direct current power supply) through the sixth resistor; the gate of the PMOS tube is connected to the ground through the seventh resistor; the source of the PMOS tube is connected to the direct current power supply; the drain of the PMOS tube is connected to the negative pole of the charging battery through the eighth resistor; and the drain of the PMOS tube is connected to the control end of the second switch tube.
[0071] When the gate of the PMOS tube receives a high level, the PMOS tube is turned off, so that the second switch tube Q2 is also turned off, and the power supply circuit for the main board powered by the charging battery is cut off.
[0072] When the gate of the PMOS tube receives a low level, the PMOS tube is turned on, so that the second switch tube Q2 is also turned on, and the power supply circuit for the main board powered by the charging battery is connected.
[0073] By selecting the first switch tube as a PMOS tube, the on-off control is convenient, the performance is stable, and the cost is low.
[0074] In some embodiments of the present application, the second switch tube Q2 is an NMOS tube. The gate of the NMOS tube is connected to the other end of the switch path of the first switch tube; the source of the NMOS tube is connected to the negative pole of the charging battery; the drain of the NMOS tube is connected to the ground end of the main board; and the diode is the body diode (parasitic diode) of the NMOS tube.
[0075] When the first switch tube T1 is turned off, the gate of the NMOS tube is at a low level, and the NMOS tube is also turned off, so that the power supply circuit for the main board powered by the charging battery is cut off.
[0076] When the first switch tube T1 is turned on, the direct current power supply pulls the gate of the NMOS tube to a high level, the NMOS tube is turned on, and the power supply circuit for the main board powered by the charging battery is connected.
[0077] By selecting the second switch tube as an NMOS tube, the on-off control is convenient, the performance is stable, and the cost is low.
[0078] In the following, combined with Figure 2, the first switch tube T1 is selected as PNP triode, the second switch tube Q2 is selected as NMOS tube, the working principle of the circuit is specifically explained. The NMOS tube is connected between the negative electrode of the battery and the ground end of the mainboard. The first control end and the second control end of the mainboard are the IO port of the controller.
[0079] When the controller works normally, the data output end of the D flip-flop is kept at low level, the first switch tube PNP triode is turned on, the gate of the NMOS tube is continuously pulled up to keep the NMOS tube in the on state.
[0080] When the data output end of the D flip-flop is high, the first switch tube PNP triode is in the off state, the gate of the NMOS tube changes from high to low, and the NMOS tube also enters the off state, cutting off the loop between the negative electrode of the battery and the ground end of the mainboard, so that the mainboard is powered off and stops working, and enters the ultra-low power consumption state (transport mode).
[0081] After the charging port is connected to the charger, the charging current charges the battery in the form of battery positive BAT+→ battery→ battery negative BAT-→ body diode of NMOS→ ground end GND of mainboard, and activates the mainboard at the same time. The data output end of the D flip-flop is kept at low level, so even if the charger is pulled out, the mainboard can still work.
[0082] The following analyzes the states of each state activated by charging.
[0083] (1) Connect the charger stage: connect the charger to the charging port, which is equivalent to the first start of the mainboard, the power-on stage, and the control end (IO port) of the controller chip on the mainboard has not been configured at this time. The circuit of PNP triode is as shown in Figure 3 .
[0084] Using Thevenin theorem, the equivalent circuit of the boxed part in Figure 3 is calculated, and the equivalent circuit is as shown in Figure 4 .
[0085] The equivalent voltage V2=3.3*R3 / (R1+R2)≈2.33V; The equivalent resistance Rb1=(R2*R3) / (R2+R3)=0.706MΩ.
[0086] The base current Ib, collector current Ic, collector voltage Vc, and voltage Vec between emitter and collector are calculated: Ib=(3.3-0.7-2.33) / (1k+706k)≈381.89nA; Ic=β*Ib, β is the coefficient, the value range is 100~300; Ic = β * Ib = (100 - 300) * Ib ≈ 38.189 μA - 114.567 μA; Vc = Ic * 10 kΩ = 0.38189 V - 1.145 V; Vec = 3.3 - Vc = 2.91811 V - 2.155 V; Vec is greater than the maximum saturation voltage drop of 0.5 V, so the PNP transistor is in the amplification state at this time.
[0087] If an NMOS transistor with Vgs(th) ≤ Vc is selected, the NMOS transistor will conduct. Vgs(th) is the gate-source threshold voltage of the NMOS transistor.
[0088] (2) After the IO ports of the controller chip are configured, when the data output terminal of the D flip-flop is at a low level, the equivalent circuit is as Figure 5 shown. At this time, R3 is short-circuited by the data output terminal of the D flip-flop. At this time, the base current Ib of the PNP transistor is: Ib = (3.3 - 0.7) / 1 k ≈ 2.6 mA.
[0089] Assuming that the PNP transistor is in the amplification state, then the collector current Ic and the collector voltage Vc at this time are respectively: Ic = β * Ib = (100 - 300) * Ib ≈ 260 mA - 780 mA; Vc = Ic * 10 kΩ = 2600 V - 7800 V; Obviously, this is a wrong conclusion. Therefore, the PNP transistor is not in the amplification state, but in the saturation state. At this time, the voltage drop of Vec of the transistor ≤ 0.5 V. Vc should be between 2.8 - 3.3 V.
[0090] And Vc = Vgs = 2.8 - 3.3 V > Vgs(th), the NMOS transistor conducts.
[0091] (3) When the data output terminal of the D flip-flop outputs a high level, the transportation mode is started. The circuit of the PNP transistor is as Figure 6 shown.
[0092] At this time, the PNP transistor is in the cut-off state, Vc ≈ 0 < Vgs(th), the NMOS transistor is cut off, disconnecting the connection between the negative pole of the battery and the motherboard ground terminal. Since the transistor is a current-controlled device, when the NMOS transistor is cut off, there is no loop for the base current of the PNP transistor, forming "self-locking".
[0093] After the charger is connected to the charging port, the motherboard is powered on and activated, and the controller controls the data output terminal of the D flip-flop to be at a low level through the first control terminal and the second control terminal.
[0094] The controller controls the signal of the data output end of the D flip-flop to change from low to high, and starts the transportation mode.
[0095] Trigger mode of entering the transportation mode: The first control end ED_DC of the MCU outputs low level to the data input end of the D flip-flop; The second control end ED_DC_CP of the MCU first outputs low level to the clock input end of the D flip-flop, and then switches to high level, and there is a rising edge at the clock input end; the data output end of the D flip-flop outputs high level, controls the first switch tube T1 to be turned off, the second switch tube Q2 is also turned off, the power supply loop of the charging battery for the mainboard is cut off, the mainboard is powered off, and the transportation mode is entered.
[0096] Charging wake-up-exit transportation mode: After the charging port is connected to the charger, the mainboard is powered on, and the MCU is powered on and works.
[0097] The first control end ED_DC of the MCU outputs high level to the data input end of the D flip-flop; The second control end ED_DC_CP of the MCU first outputs low level to the clock input end of the D flip-flop, and then switches to high level, and there is a rising edge at the clock input end; the data output end of the D flip-flop outputs low level, controls the first switch tube T1 to be turned on, the second switch tube Q2 is also turned on, and the power supply loop of the charging battery for the mainboard is connected. The mainboard is powered on and activated successfully, starts to work normally, and exits the transportation mode.
[0098] After exiting the transportation mode, the second control end ED_DC_CP of the MCU outputs low level to the clock input end of the D flip-flop, and after a second set time delay, for example, after 1 ms, the first control end ED_DC of the MCU also outputs low level to the data input end of the D flip-flop, and the waveform diagram is as shown in Figure 7 The final state of the D flip-flop is that the data input end and the clock input end are both in low level state, the data output end of the D flip-flop remains the previous state, that is, low level. Moreover, the power consumption of the D flip-flop at this time is also low, for example, only 1uA.
[0099] Therefore, during the MCU upgrading process, the data output end of the D flip-flop remains the previous state, that is, low level, which can ensure that the first switch tube and the second switch tube are turned on, ensure that the power supply loop of the charging battery for the mainboard is turned on, ensure that the mainboard works normally, and avoid entering the transportation mode. Through the design of the flip-flop, during the upgrading process, the state of the MCU control port is stable, which avoids the mainboard entering the transportation mode.
[0100] In some embodiments of the application, in order to ensure the safety of the flip-flop, the data input terminal of the flip-flop is connected to the first control terminal of the mainboard through the first current-limiting resistor R11; and the clock input terminal of the flip-flop is connected to the second control terminal of the mainboard through the second current-limiting resistor R12.
[0101] In some embodiments of the application, in order to ensure the stability of the state of the flip-flop, the data input terminal of the flip-flop is grounded through the first pull-down resistor R10; and the clock input terminal of the flip-flop is grounded through the second pull-down resistor R9.
[0102] In the case of uncertain state, the state of the data input terminal and the clock input terminal of the flip-flop is locked to the low level state by the pull-down resistor, and only when the clock input terminal rises, the output will have a level change.
[0103] In some embodiments of the application, in order to avoid high-frequency signal interference with the input and output of the flip-flop, the data input terminal of the flip-flop is grounded through the first filter capacitor C4; the clock input terminal of the flip-flop is grounded through the second filter capacitor C3; and the data output terminal of the flip-flop is grounded through the third filter capacitor C1, so as to filter out noise and avoid interference of the flip-flop by noise.
[0104] When entering the transportation mode, if the data output terminal of the flip-flop jumps to low, it will cause the charging battery to supply power to the mainboard circuit to be conducted, and the transportation mode cannot be entered, as shown in the waveform Figure 8 Therefore, it is necessary to adjust the capacitance value of the third filter capacitor C1, and finally debug C1 to 10pf, so that the data output terminal of the D flip-flop and the 3.3V DC power supply are kept synchronous, so that the transportation mode can be entered. The normal power-down process is shown in the waveform Figure 9 .
[0105] The electronic device of the embodiment, in the transportation mode, the mainboard is powered off and no longer works, with a power consumption of 0, thereby prolonging the use time of the battery. In the OTA upgrade process, in the uncertain state of the IO level of the mainboard, the flip-flop is designed to avoid entering the transportation mode.
[0106] The electronic device of the embodiment, by designing the charging activation circuit, when it is necessary to enter the transportation mode, the power supply circuit for supplying power to the mainboard by the charging battery is cut off, the mainboard is powered off, enters the transportation mode, reduces the power consumption of the charging battery, prolongs the power supply time of the charging battery, solves the technical problem of large power consumption of the charging battery in the prior art, and improves the competitiveness of the product.
[0107] For example, the electronic device is an electronic variable speed actuator. The electronic variable speed actuator with a battery needs to be shipped by sea, so it is necessary to design a transportation mode to cut off the connection between the battery and the mainboard during transportation, thereby reducing the power consumption of the battery.
[0108] It should be pointed out finally that the above embodiments are only used to illustrate the technical solutions of the present application, but not to limit the same; and although the present application has been described in detail with reference to the foregoing embodiments, it should be appreciated by those skilled in the art that the technical solutions recorded in the foregoing embodiments can be modified, or some technical features thereof can be replaced equivalently; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. An electronic device, characterized in that: include: The motherboard has a controller; A charging board has a rechargeable battery and a charging port; the positive terminal of the charging port is connected to the positive terminal of the rechargeable battery, and the negative terminal of the charging port is connected to the ground terminal of the motherboard; the positive terminal of the rechargeable battery is connected to the power input terminal of the motherboard. The charging activation circuit includes: A trigger, whose data input terminal is connected to the first control terminal of the motherboard; and whose clock input terminal is connected to the second control terminal of the motherboard. The power supply switch circuit has its control terminal connected to the data output terminal of the trigger, one end of its switch path connected to the negative terminal of the rechargeable battery, and the other end of its switch path connected to the ground terminal of the motherboard. A diode is connected in parallel between the two ends of its switch path; the positive terminal of the diode is connected to the negative terminal of the rechargeable battery, and the negative terminal of the diode is connected to the ground terminal of the motherboard. The controller is configured as follows: Upon receiving an instruction to enter the transportation mode, the first control terminal and the second control terminal are controlled to output a shutdown instruction to the trigger, and the data output terminal of the trigger is controlled to output a shutdown signal to the control terminal of the power supply switch circuit, thereby controlling the power supply switch circuit to shut down and enter the transportation mode. When transitioning from a power-off state to a power-on state, the first control terminal and the second control terminal output a conduction command to the trigger, and the data output terminal of the trigger outputs a conduction signal to the control terminal of the power supply switch circuit, thereby controlling the power supply switch circuit to conduct and exiting the transportation mode.
2. The electronic device according to claim 1, characterized in that: The trigger is a rising-edge triggered D flip-flop.
3. The electronic device according to claim 2, characterized in that: The controller is also configured to: Upon receiving an instruction to enter the transportation mode, the first control terminal is controlled to output a shutdown instruction to the data input terminal of the D flip-flop, and the second control terminal is controlled to output a rising edge to the clock input terminal of the D flip-flop, so that the data output terminal of the D flip-flop outputs a shutdown signal to the control terminal of the power supply switch circuit, thereby controlling the power supply switch circuit to shut down and enter the transportation mode. When transitioning from a power-down state to a power-on state, the first control terminal outputs a conduction command to the data input terminal of the D flip-flop, and the second control terminal outputs a rising edge to the clock input terminal of the D flip-flop, so that the data output terminal of the D flip-flop outputs a conduction signal to the control terminal of the power supply switch circuit, thereby controlling the power supply switch circuit to conduct and exit the transportation mode.
4. The electronic device according to claim 3, characterized in that: The transition from a power-down state to a power-on state also includes the following steps: After controlling the first control terminal to output a turn-on command to the data input terminal of the D flip-flop for a first set duration, the second control terminal is then controlled to output a rising edge to the clock input terminal of the D flip-flop.
5. The electronic device according to claim 3, characterized in that: The controller is also configured to: After exiting the transport mode, the second control terminal is controlled to output a low level to the clock input of the D flip-flop, and the first control terminal is controlled to output a low level to the data input of the D flip-flop.
6. The electronic device according to claim 5, characterized in that: The controller is also configured to: After exiting the transport mode, the second control terminal is controlled to output a low level to the clock input terminal of the D flip-flop for a second set duration, and then the first control terminal is controlled to output a low level to the data input terminal of the D flip-flop.
7. The electronic device according to any one of claims 1 to 6, characterized in that: The power supply switch circuit includes: The first switching circuit has its control terminal connected to the data output terminal of the trigger, and one end of its switching path connected to a DC power supply. The second switching circuit has its control terminal connected to the other end of the switching path of the first switching circuit; one end of the switching path of the second switching circuit is connected to the negative terminal of the rechargeable battery, and the other end of the switching path of the second switching circuit is connected to the ground terminal of the motherboard; the diode is connected in parallel across the two ends of the switching path of the second switching circuit.
8. The electronic device according to claim 7, characterized in that: The first switching circuit includes a first switching transistor; the second switching circuit includes a second switching transistor. The control terminal of the first switching transistor is connected to the data output terminal of the trigger; One end of the switching path of the first switching transistor is connected to the DC power supply; The other end of the switching path of the first switching transistor is connected to the control terminal of the second switching transistor; One end of the switching path of the second switching transistor is connected to the negative terminal of the rechargeable battery, and the other end of the switching path of the second switching transistor is connected to the ground terminal of the motherboard.
9. The electronic device according to claim 8, characterized in that: The first switching transistor is a PNP transistor; The base of the PNP transistor is connected to the data output terminal of the trigger through a first resistor; the base of the PNP transistor is connected to the DC power supply through a second resistor; and the base of the PNP transistor is grounded through a third resistor. The emitter of the PNP transistor is connected to the DC power supply; The collector of the PNP transistor is connected to the negative terminal of the rechargeable battery through a fourth resistor; and the collector of the PNP transistor is connected to the control terminal of the second switching transistor.
10. The electronic device according to claim 8, characterized in that: The second switch is an NMOS transistor; The gate of the NMOS transistor is connected to the other end of the switching path of the first switching transistor. The source of the NMOS transistor is connected to the negative terminal of the rechargeable battery; The drain of the NMOS transistor is connected to the ground terminal of the motherboard; The diode is the body diode of an NMOS transistor.