A power on / off control circuit

By introducing physical or virtual buttons, debounce circuits and signal isolation circuits into the robot switch control circuit, the switching signal is electrically isolated from the load power supply system, solving the problems of electromagnetic interference and misoperation, ensuring that the robot components lose power in a predetermined order and prevent damage.

CN115113564BActive Publication Date: 2025-08-08GUANGZHOU GOSUNCN ROBOTICS CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210737120.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-27
Publication Date
2025-08-08
Estimated Expiration
2042-06-27

AI Technical Summary

Technical Problem

The prior art has problems such as electromagnetic interference, misoperation and improper power failure in robot switch control, resulting in damage to components.

Method used

The physical key circuit or virtual key circuit is used to receive the switch signal, generate a flip signal through the debounce circuit, and the signal isolation circuit is used to achieve electrical isolation, and the shutdown delay time is accurately controlled through the two-way switch control circuit to ensure that the components are powered down in a predetermined order.

Benefits of technology

It effectively enhances anti-interference performance, prevents misoperation, and ensures that the robot components lose power in a predetermined order before shutting down, so as to avoid damage to the components.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115113564B_ABST
    Figure CN115113564B_ABST
Patent Text Reader

Abstract

The present invention provides a power on / off control circuit, which receives a switch signal through a physical key circuit or a virtual key circuit; generates a flip signal through a debounce circuit when the power-on time reaches a preset time threshold after power-on; flips the output signal from a low level to a high level and maintains the output signal at a high level for a preset time through a signal isolation circuit according to the flip signal, or flips it from a high level to a low level; finally, the first switch control circuit controls the switch module to turn on according to the high level to power on the load or controls the switch module to turn off according to the low level to power off the load; thereby, electrical isolation between the switch signal and the load power supply system is achieved, the anti-interference performance is effectively enhanced, and the shutdown signal is shielded for a period of time after power-on to prevent personnel from operating incorrectly; and by setting two switch control circuits, the shutdown delay time can be accurately controlled, and it can be ensured that all components execute the power-off sequence according to predetermined requirements before shutdown to prevent component damage.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of electronic technology, and in particular to a power on / off control circuit. Background Art

[0002] The existing technology mainly adopts the following three methods to realize the power on and off function of the robot: the first is to use a power knob, and the power knob in the robot is switched between ON / OFF to realize the power on and off; the second is to use a self-locking button, and the self-locking button is pressed to turn on, and it is released again to turn on and off; the third is to use the self-locking button, press it to turn on, and long press it to turn off.

[0003] However, the existing technologies all use switches to directly control the on / off of the circuit. There is no electrical isolation design between the switch signal and the power supply signal, which is susceptible to electromagnetic interference. Furthermore, if the user encounters an incorrect shutdown operation immediately after turning on the machine, it is easy to cause damage to the hard disk, etc. When shutting down the machine, it is impossible to ensure that the internal components of the robot execute the power-off sequence according to the predetermined requirements, thereby causing damage to the components. Summary of the Invention

[0004] The present invention provides a power on / off control circuit to solve the problems of electromagnetic interference, misoperation and power failure protection in the prior art when performing power on / off control.

[0005] The present invention is implemented as follows: a power on / off control circuit comprising:

[0006] Physical key circuit, virtual key circuit, debounce circuit, signal isolation circuit, first switch control circuit, second switch control circuit, switch module;

[0007] The physical button circuit is configured to receive a user's pressing operation on the physical button, and connect the power supply to the load and the power supply to the debouncing circuit according to the pressing operation;

[0008] The virtual key circuit is used to receive the switch signal output by the single chip microcomputer and connect the power supply and the debouncing circuit according to the switch signal;

[0009] The debouncing circuit is used to generate a flip signal if the power-on duration reaches a preset time threshold after power-on;

[0010] The signal isolation circuit is configured to perform a flipping process on the output signal according to the flipping signal, flipping the output signal to a high level when the output signal is at a low level and maintaining the output signal at a high level for a preset time, and flipping the output signal to a low level when the output signal is at a high level;

[0011] The first switch control circuit is configured to receive an output signal from the signal isolation circuit, and when the output signal is at a high level, control the switch module to turn on to power on the load, and when the output signal is at a low level, control the switch module to turn off to power off the load;

[0012] The second switch control circuit is configured to control the switch module to disconnect and power off the load according to the shutdown signal when receiving a shutdown signal output by the single-chip microcomputer, wherein the shutdown signal is a low-level signal generated and output by the single-chip microcomputer after a preset delay time after the output signal of the signal isolation circuit flips to a low level;

[0013] The switch module is connected to the conduction loop between the power supply and the load.

[0014] Optionally, the switch module includes a first resistor, a first capacitor, and a solid-state relay;

[0015] The first end of the solid-state relay is connected to the first end of the first resistor, the second end of the first resistor and the first end of the first capacitor are connected to a power supply, and the second end of the first capacitor is grounded;

[0016] The second end of the solid-state relay is connected to the first switch control circuit and the second switch control circuit respectively;

[0017] The third end of the solid-state relay is connected to the positive electrode of the load, and the fourth end is connected to the negative electrode of the load.

[0018] Optionally, the physical key circuit includes a dual-way key;

[0019] The first button is connected to the path between the power supply and the load;

[0020] The second button is connected to the path between the power supply and the debouncing circuit.

[0021] Optionally, the virtual key circuit includes a second resistor, a third resistor, a fourth resistor, and a first transistor;

[0022] The first end of the second resistor is connected to a power supply;

[0023] A common point between the second end of the second resistor and the first end of the third resistor serves as an input end of the virtual key circuit;

[0024] The base of the first transistor is connected to the second end of the third resistor, the emitter is connected to the power supply, and the collector is connected to the first end of the fourth resistor;

[0025] The second end of the fourth resistor is connected to the debouncing circuit.

[0026] Optionally, the debouncing circuit includes a second capacitor, a third capacitor, a fifth resistor, a sixth resistor, a Schmitt trigger, and a fourth capacitor;

[0027] A common point among the first end of the second capacitor, the first end of the third capacitor, the first end of the fifth resistor, and the first end of the sixth resistor serves as an input end of the debouncing circuit;

[0028] The second end of the second capacitor, the second end of the third capacitor, and the second end of the fifth resistor are connected to the ground;

[0029] The second end of the sixth resistor is connected to the input end of the Schmitt trigger;

[0030] The output end of the Schmitt trigger is connected to the input end of the signal isolation circuit;

[0031] The power supply terminal of the Schmitt trigger and the first terminal of the fourth capacitor are commonly connected to a power supply;

[0032] A second terminal of the fourth capacitor is grounded.

[0033] Optionally, the signal isolation circuit includes: a fifth capacitor, a seventh resistor, an eighth resistor, a ninth resistor, a sixth capacitor, and a D-type trigger;

[0034] The clock control terminal of the D-type flip-flop is connected to the output terminal of the debouncing circuit through the seventh resistor;

[0035] The power supply terminal of the D-type trigger, the first terminal of the fifth capacitor, the first terminal of the eighth resistor, and the first terminal of the ninth resistor are commonly connected to a power supply;

[0036] The negation terminal of the D-type flip-flop is connected to the signal input terminal;

[0037] The power supply terminal pre-end of the D-type trigger is connected to the common point between the second end of the ninth resistor and the first end of the sixth capacitor;

[0038] The reset terminal of the D-type trigger is connected to the second terminal of the eighth resistor;

[0039] The output end of the D-type trigger serves as the output end of the signal isolation circuit;

[0040] The ground terminal of the D-type trigger, the second terminal of the fifth capacitor, and the second terminal of the sixth capacitor are grounded respectively.

[0041] Optionally, the first switch control circuit includes: a tenth resistor, a second transistor;

[0042] The first end of the tenth resistor serves as an input end of the first switch control circuit;

[0043] The base of the second transistor is connected to the second end of the tenth resistor, the emitter is grounded, and the collector is connected to the switch module.

[0044] Optionally, the first switch control circuit further includes:

[0045] 11th resistor, light emitting diode;

[0046] The first end of the eleventh resistor is connected to a power supply, and the second end is connected to the positive electrode of the light emitting diode;

[0047] The cathode of the light emitting diode and the first end of the tenth resistor are commonly connected to the output end of the signal isolation circuit.

[0048] Optionally, the second switch control circuit includes:

[0049] The twelfth resistor, the thirteenth resistor, and the third transistor;

[0050] The first end of the twelfth resistor is connected to a power supply;

[0051] A common point between the second end of the twelfth resistor and the first end of the thirteenth resistor serves as an input end of the second switch control circuit;

[0052] The base of the third transistor is connected to the second end of the thirteenth resistor, the emitter is grounded, and the collector is connected to the switch module.

[0053] Optionally, the power supply is an isolated power supply.

[0054] The present invention provides a power-on / off control circuit, which receives a switch signal via a physical key circuit or a virtual key circuit; generates a flip signal via a debounce circuit when the power-on duration after power-on reaches a preset time threshold; flips an output signal from a low level to a high level and maintains the output signal at the high level for a preset time, or flips the output signal from a high level to a low level, according to the flip signal, via a signal isolation circuit; finally, controls a switch module to conduct according to the high level to power on a load, or controls the switch module to disconnect according to the low level to disconnect the load; thereby achieving electrical isolation between the switch signal and the load power supply system, effectively enhancing anti-interference performance, and shielding the shutdown signal for a period of time after power-on, effectively preventing human error; and by providing two switch control circuits, after the first switch control circuit controls the switch module to disconnect to disconnect the load, the second switch control circuit controls the switch module to disconnect again according to the low level signal output by the single-chip microcomputer to disconnect the load, thereby accurately controlling the shutdown delay time, ensuring that all robot components execute a power-off sequence according to predetermined requirements before shutdown, and preventing component damage caused by power-off sequence problems. BRIEF DESCRIPTION OF THE DRAWINGS

[0055] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0056] Figure 1 is a schematic diagram of a power on / off control circuit provided by an embodiment of the present invention;

[0057] Figure 2 FIG. 4 is a schematic diagram of a power on / off control circuit provided by another embodiment of the present invention. DETAILED DESCRIPTION

[0058] In order to make the purpose, technical solutions and advantages of the present invention more clearly understood, the present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.

[0059] The present invention provides a power-on / off control circuit, which receives a switch signal via a physical key circuit or a virtual key circuit; generates a flip signal via a debounce circuit when the power-on duration after power-on reaches a preset time threshold; flips an output signal from a low level to a high level and maintains the output signal at the high level for a preset time, or flips the output signal from a high level to a low level, according to the flip signal, via a signal isolation circuit; finally, controls a switch module to conduct according to the high level to power on a load, or controls the switch module to disconnect according to the low level to disconnect the load; thereby achieving electrical isolation between the switch signal and the load power supply system, effectively enhancing anti-interference performance, and shielding the shutdown signal for a period of time after power-on, effectively preventing human error; and by providing two switch control circuits, after the first switch control circuit controls the switch module to disconnect to disconnect the load, the second switch control circuit controls the switch module to disconnect again according to the low level signal output by the single-chip microcomputer to disconnect the load, thereby accurately controlling the shutdown delay time, ensuring that all robot components execute a power-off sequence according to predetermined requirements before shutdown, and preventing component damage caused by power-off sequence problems.

[0060] Figure 1 Schematic diagram of a power on / off control circuit provided by an embodiment of the present invention. Figure 1 As shown, the power on / off control circuit includes:

[0061] Physical key circuit 10, virtual key circuit 20, debounce circuit 30, signal isolation circuit 40, first switch control circuit 50, second switch control circuit 60, switch module 70;

[0062] The physical button circuit 10 is used to receive a user's pressing operation on the physical button, and connect the power supply and the load according to the pressing operation, and connect the power supply and the debounce circuit 30;

[0063] The virtual key circuit 20 is used to receive the switch signal output by the single chip microcomputer and connect the power supply and the debounce circuit 30 according to the switch signal;

[0064] The debouncing circuit 30 is used to generate a flip signal if the power-on duration reaches a preset time threshold after power-on;

[0065] The signal isolation circuit 40 is used to flip the output signal according to the flip signal, flip the output signal to a high level when the output signal is at a low level and keep the output signal at a high level for a preset time, and flip the output signal to a low level when the output signal is at a high level;

[0066] The first switch control circuit 50 is configured to receive the output signal of the signal isolation circuit 40 and control the switch module 70 to turn on to power on the load when the output signal is at a high level, and to control the switch module 70 to turn off to power off the load when the output signal is at a low level;

[0067] The second switch control circuit 60 is configured to control the switch module to disconnect and de-energize the load upon receiving a shutdown signal output by the single-chip microcomputer. The shutdown signal is a low-level signal generated and output by the single-chip microcomputer after a preset delay time from when the output signal of the signal isolation circuit 40 flips to a low level.

[0068] The switch module 70 is connected to the conduction loop between the power supply and the load.

[0069] Here, the load can be a robot, so the power on / off control circuit provided in this embodiment can be applied to a robot. The embodiment of the present invention generates a switch signal through a physical key circuit 10 and a virtual key circuit 20, and then the switch signal is smoothed by the de-bouncing circuit 30, and a flip signal is generated when and only when the power-on time of the de-bouncing circuit 30 reaches a preset time threshold after power-on, such as 3 seconds; each time the de-bouncing circuit 30 outputs a flip signal, the output signal of the signal isolation circuit 40 flips once, from the current high level to the low level, or from the current low level to the high level. Finally, the first switch control circuit 50 controls the switch module 70 to turn on according to the high level output by the signal isolation circuit 40 to power on the load, or controls the switch module 70 to turn off according to the low level output by the signal isolation circuit 40 to power off the load, thereby realizing electrical isolation between the switch signal and the load power supply system, and effectively enhancing the anti-interference performance.

[0070] Here, the physical key circuit 10 generates a switch signal by receiving a user's pressing operation on a physical key, and the virtual key circuit 20 receives an electrical signal output by a single chip microcomputer to obtain a switch signal, which is obtained by the user operating a control on a computer interface.

[0071] When the physical key circuit 10 or the virtual key circuit 20 sends a switch signal, the de-bounce circuit 30 turns on the power according to the switch signal, and generates a flip signal when the power-on duration reaches a preset time threshold after power-on. The flip signal is provided to the signal isolation circuit 40, causing the output signal of the signal isolation circuit 40 to flip in level.

[0072] Among them, after the output signal flips to a high level, the signal isolation circuit 40 can maintain the high level output unchanged within a preset time period, such as 20 seconds, thereby shielding the shutdown signal for a period of time after startup, effectively preventing personnel from operating incorrectly.

[0073] The embodiment of the present invention also provides two switch control circuits and provides the output signal of the signal isolation circuit 40 to the single-chip microcomputer. After the first switch control circuit 50 controls the switch module 70 to disconnect according to the low level to cut off the power to the load, the single-chip microcomputer outputs a shutdown signal again, and the second switch control circuit 60 controls the switch module 70 to disconnect again according to the shutdown signal to cut off the power to the load. The switch signal is a low-level signal generated and output by the single-chip microcomputer after a preset delay time from when the output signal of the signal isolation circuit 40 is flipped to a low level. For example, the preset delay time can be 1 minute, so that the shutdown delay time can be accurately controlled according to demand, ensuring that all robot components execute the power-off sequence according to the predetermined requirements before shutdown, and preventing component damage caused by power-off sequence problems, such as hard disk damage.

[0074] Alternatively, as a preferred example of the present invention, Figure 2 As shown, the switch module 70 includes a first resistor R1, a first capacitor C1, and a solid-state relay U1;

[0075] The first end of the solid-state relay U1 is connected to the first end of the first resistor R1, the second end of the first resistor R1 and the first end of the first capacitor C1 are connected to the power supply, and the second end of the first capacitor C1 is grounded;

[0076] The second end of the solid-state relay U1 is connected to the first switch control circuit 50 and the second switch control circuit 60 respectively;

[0077] The third terminal of the solid-state relay U1 is connected to the positive electrode K1 - 1 of the load, and the fourth terminal is connected to the negative electrode K1 - 2 of the load.

[0078] The physical key circuit 10 includes a dual-way key K;

[0079] The first button K1 is connected to the path between the power supply and the load;

[0080] The second button K2 is connected to the path between the power supply and the debouncing circuit 30 .

[0081] When the user presses the dual-way button K, the power supply and the load, as well as the power supply and the de-bouncing circuit 30 are connected at the same time, and the load and the de-bouncing circuit 30 are powered on and enabled at the same time.

[0082] The debouncing circuit 30 includes a second capacitor C2, a third capacitor C3, a fifth resistor R5, a sixth resistor R6, a Schmitt trigger U2, and a fourth capacitor C4;

[0083] A common point between the first end of the second capacitor C2, the first end of the third capacitor C3, the first end of the fifth resistor R5, and the first end of the sixth resistor R6 serves as an input end of the debouncing circuit 30;

[0084] The second end of the second capacitor C2, the second end of the third capacitor C3, and the second end of the fifth resistor R5 are connected to the ground;

[0085] The second end of the sixth resistor R6 is connected to the input end of the Schmitt trigger U2.

[0086] The output end of the Schmitt trigger U2 is connected to the input end of the signal isolation circuit 40;

[0087] The power supply terminal of the Schmitt trigger U2 and the first terminal of the fourth capacitor C4 are commonly connected to the power supply VCC;

[0088] A second terminal of the fourth capacitor C4 is grounded.

[0089] Here, as Figure 2 As shown, when the user presses the dual-way button K, the power supply VCC supplies power to the load via the first button K1 and charges the second and third capacitors C2 and C3 via the second button K2. The charging time is approximately 100ms. The voltages of the second and third capacitors C2 and C3 gradually rise and are supplied to the input terminal U2-1 of the Schmitt trigger U2. When the voltages of the second and third capacitors C2 and C3 rise to the high-level threshold voltage of the Schmitt trigger U2, the output terminal U2-6 of the Schmitt trigger U2 outputs a flip signal. Optionally, the flip signal is high. When the dual-way button K is released, the second and third capacitors C2 and C3 discharge via the fifth capacitor R5, and the voltages of the second and third capacitors C2 and C3 gradually decrease. When they fall to the low-level threshold voltage range of the Schmitt trigger U2, the output terminal U2-6 of the Schmitt trigger U2 outputs a low-level pulse. Therefore, in this embodiment of the present invention, when the dual-way button K is pressed and then released, the output terminal U2-6 of the Schmitt trigger U2 outputs a high-level pulse.

[0090] Optionally, the embodiment of the present invention further provides a virtual key circuit 30. The virtual key circuit 30 includes a second resistor R2, a third resistor R3, a fourth resistor R4, and a first transistor Q1;

[0091] A first end of the second resistor R2 is connected to a power supply VCC;

[0092] A common point between the second end of the second resistor R2 and the first end of the third resistor R3 serves as an input end of the virtual key circuit 30;

[0093] The base of the first transistor Q1 is connected to the second end of the third resistor R3, the emitter is connected to the power supply VCC, and the collector is connected to the first end of the fourth resistor R4;

[0094] A second end of the fourth resistor R4 is connected to the debouncing circuit 30 .

[0095] Here, when a user inputs a power on / off command on a control of a computer device, such as a click or long press, the microcontroller outputs an electrical signal accordingly. The virtual key circuit 30 receives an electrical signal from the microcontroller via an input terminal as a switch signal. Optionally, when the switch signal is low, the first transistor Q1 is saturated and conductive, and the power supply VCC charges the second capacitor C2 and the third capacitor C3 through the fourth resistor R4, with a charging time of approximately 100ms. The voltage of the second capacitor C2 and the third capacitor C3 gradually rises and is provided to the input terminal U2-1 of the Schmitt trigger U2. When the voltage of the second capacitor C2 and the third capacitor C3 rises to the high threshold voltage of the Schmitt trigger U2, the output terminal U2-6 of the Schmitt trigger U2 outputs a flip signal. When the switch signal is high, the second capacitor C2 and the third capacitor C3 discharge through the fifth resistor R5. When the discharge reaches the low threshold voltage range of the Schmitt trigger U2, the output terminal U2-6 of the Schmitt trigger U2 outputs a low level. It can be seen that, in the embodiment of the present invention, every time the single chip microcomputer outputs a low level pulse, the output terminal U2 - 6 of the Schmitt trigger outputs a high level pulse.

[0096] In the de-bouncing circuit 30, the embodiment of the present invention triggers the Schmitt trigger U2 to output a high-level pulse by charging and discharging the second capacitor C2 and the third capacitor C3 to a preset threshold value, which is used as the clock signal of the signal isolation circuit 40, controls the output signal of the signal isolation circuit 40 to undergo a level flip, and then controls the conduction and disconnection of the switch module 70, thereby effectively eliminating the jitter effect of physical keys or virtual keys.

[0097] As a preferred embodiment of the present invention, the signal isolation circuit 40 includes:

[0098] A fifth capacitor C5, a seventh resistor R7, an eighth resistor R8, a ninth resistor R9, a sixth capacitor C6, and a D-type trigger U3;

[0099] The clock control terminal CLK of the D-type flip-flop U3 is connected to the output terminal of the debouncing circuit 30 through the seventh resistor R7;

[0100] The power supply terminal VCC of the D-type trigger U3, the first terminal of the fifth capacitor C5, the first terminal of the eighth resistor R8, and the first terminal of the ninth resistor R9 are commonly connected to the power supply VCC;

[0101] The negative terminal Q# of the D-type flip-flop U3 is connected to the signal input terminal D;

[0102] The power supply terminal preamplifier terminal PRE# of the D-type trigger U3 is connected to the common point between the second end of the ninth resistor R9 and the first end of the sixth capacitor C6;

[0103] The reset terminal CLR# of the D-type flip-flop U3 is connected to the second end of the eighth resistor R8;

[0104] The output terminal Q of the D-type trigger U3 serves as the output terminal of the signal isolation circuit 40;

[0105] The ground terminal GND of the D-type trigger U3, the second terminal of the fifth capacitor C5, and the second terminal of the sixth capacitor C6 are grounded respectively.

[0106] In the D-type trigger U3, the clock control terminal CLK is used to receive the flip signal output by the debounce circuit 30, that is, a high-level pulse; the signal input terminal D is connected to the negative terminal Q#, and is used to sample the signal of the negative terminal Q# as an input signal and provide it to the output terminal Q; the negative terminal Q# is used to sample the output signal of the output terminal Q and invert it. Whenever the clock control terminal CLK receives a high-level pulse from the output terminal U2-6 of the Schmitt trigger U2, the level of the output terminal Q is flipped once, from the current low level to the low level or from the current high level to the low level. The high level is used to control the switch module 70 to be turned on, and the low level is used to control the switch module 70 to be turned off, thereby realizing the electrical isolation between the switch signal and the load power supply system, and effectively enhancing the anti-interference performance.

[0107] The power supply preamplifier PRE# of the D-type flip-flop U3 controls the output terminal Q. When the power supply preamplifier PRE# is at a low level, the output terminal Q outputs a high level. When the user presses the dual-way button K, the first button K1 connects the circuit between the power supply and the load, forcing the output terminal Q to output a high level. Meanwhile, the power supply VCC begins charging the sixth capacitor C6 through the ninth resistor R9, and the power supply preamplifier PRE# is at a low level until the voltage of the sixth capacitor C6 rises to a preset threshold, at which point the power supply preamplifier PRE# becomes high. This indicates that before the voltage of the sixth capacitor C6 rises to the preset threshold, the power supply preamplifier PRE# outputs a low level, causing the output terminal Q to remain high, locking the power-on state. This effectively shields the shutdown signal for a period of time after power-on, effectively preventing user error.

[0108] In terms of switch control, the embodiment of the present invention provides two switch control circuits, namely a first switch control circuit 50 and a second switch control circuit 60 .

[0109] Wherein, the first switch control circuit 50 includes: a tenth resistor R10, a second transistor Q2;

[0110] The first end of the tenth resistor R10 serves as an input end of the first switch control circuit 50;

[0111] The base of the second transistor Q2 is connected to the second end of the tenth resistor R10 , the emitter is grounded, and the collector is connected to the switch module 70 .

[0112] Here, the input end of the first switch control circuit 50 is connected to the output end Q of the D-type flip-flop U3 of the signal isolation circuit 40, and receives the level signal of the output end Q. Since the signal isolation circuit 40 is controlled by the physical key circuit 10 and the virtual key circuit 20, both the physical key circuit 10 and the virtual key circuit 20 can control the first switch control circuit 50. When the dual-way key K or the virtual key controls the output end Q of the D-type flip-flop U3 of the signal isolation circuit 40 to output a high level, the second transistor Q2 is saturated and turned on, and the solid-state relay U1 is turned on, causing k1_1 and k1_2 to be conductive. When the output end Q outputs a low level, the second transistor Q2 is turned off, the solid-state relay U1 is turned off, and k1_1 and k1_2 are turned off. Here, when k1_1 and k1_2 are turned on, the load is turned on, and when k1_1 and k1_2 are turned off, the load is turned off.

[0113] Optionally, as a preferred example of the present invention, the first switch control circuit 50 may further include an eleventh resistor R11 and a light emitting diode LED;

[0114] The first end of the eleventh resistor R11 is connected to the power supply VCC, and the second end is connected to the positive electrode of the light emitting diode LED;

[0115] The cathode of the light emitting diode LED and the first end of the tenth resistor R10 are connected to the output end Q of the signal isolation circuit 40 .

[0116] In this embodiment of the present invention, the light-emitting diode (LED) is used to identify the load status. When the output terminal Q of the D-type flip-flop U3 of the signal isolation circuit 40 outputs a high level, the second transistor Q2 is saturated and turned on, and the light-emitting diode (LED) is turned off. When the output terminal Q outputs a low level, the second transistor Q2 is turned off, and the light-emitting diode (LED) is turned on. Therefore, the user can intuitively determine the load status by observing the light-emitting diode (LED). When the light-emitting diode (LED) is on, it indicates that the load is in the off state, and when the light-emitting diode (LED) is off, it indicates that the load is in the on state.

[0117] Optionally, the second switch control circuit 60 includes:

[0118] a twelfth resistor R12, a thirteenth resistor R13, and a third transistor Q3;

[0119] A first end of the twelfth resistor R12 is connected to a power supply VCC;

[0120] A common point between the second end of the twelfth resistor R12 and the first end of the thirteenth resistor R13 serves as an input end of the second switch control circuit 60;

[0121] The base of the third transistor Q3 is connected to the second end of the thirteenth resistor R13 , the emitter is grounded, and the collector is connected to the switch module 70 .

[0122] Here, the input of the second switch control circuit 60 is connected to a single-chip microcomputer and receives a level signal output by the single-chip microcomputer. The single-chip microcomputer determines the load status (on or off) via the level signal output by the output terminal Q of the D-type flip-flop U3 of the signal isolation circuit 40. If the load is to enter the on state, the single-chip microcomputer can directly generate and output a high-level signal. When the second switch control circuit 60 receives a high-level signal, the third transistor Q3 saturates and conducts, thereby controlling the solid-state relay U1 to conduct, thereby connecting k1_1 and k1_2. When k1_1 and k1_2 are connected, the corresponding load is turned on.

[0123] After the output signal of the signal isolation circuit 40 flips to a low level and the load enters the shutdown state, the single-chip microcomputer can generate and output a low-level signal again after a preset delay time from the time the output signal of the signal isolation circuit 40 flips to a low level. When the second switch control circuit 60 receives a low-level signal, the third transistor Q3 saturates and conducts, thereby controlling the solid-state relay U1 to disconnect, causing k1_1 and k1_2 to be disconnected. The disconnection of k1_1 and k1_2 corresponds to the load shutdown. The preset delay time can be set according to specific needs, such as 1 minute, so that the shutdown delay time can be precisely controlled according to needs, ensuring that all robot components execute the predetermined power-off sequence before shutdown, and preventing component damage caused by power-off sequence issues, such as hard drive damage.

[0124] Optionally, as a preferred example of the present invention, the power supply may also be an isolated power supply. By adopting an isolated power supply, the electromagnetic interference effect of the load during wireless charging is reduced, and uncontrolled power on and off of the load is avoided.

[0125] It should be understood that the above-mentioned loads may be electrical equipment such as robots.

[0126] It should be understood that the above functional mode is only one embodiment of the present invention and is not intended to limit the present invention. In other embodiments, specific control logic of the functional mode may also be set according to actual needs.

[0127] The embodiments described above are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the various embodiments of the present invention, and should all be included in the scope of protection of the present invention.

Claims

1. A power on / off control circuit, characterized in that: include: Physical key circuit, virtual key circuit, debounce circuit, signal isolation circuit, first switch control circuit, second switch control circuit, switch module; The physical button circuit is configured to receive a user's pressing operation on the physical button, and connect the power supply to the load and the power supply to the debouncing circuit according to the pressing operation; The virtual key circuit is configured to receive a switch signal output by the single-chip microcomputer and connect the power supply to the debounce circuit according to the switch signal. The virtual key circuit includes a second resistor, a third resistor, a fourth resistor, and a first transistor. The first end of the second resistor is connected to the power supply. The common point between the second end of the second resistor and the first end of the third resistor serves as the input end of the virtual key circuit. The base of the first transistor is connected to the second end of the third resistor, the emitter is connected to the power supply, and the collector is connected to the first end of the fourth resistor. The second end of the fourth resistor is connected to the debounce circuit. The debouncing circuit is used to generate a flip signal if the power-on duration reaches a preset time threshold after power-on; The signal isolation circuit is configured to perform a flipping process on the output signal according to the flipping signal, flipping the output signal to a high level when the output signal is at a low level and maintaining the output signal at a high level for a preset time, and flipping the output signal to a low level when the output signal is at a high level; The first switch control circuit is configured to receive an output signal from the signal isolation circuit, and when the output signal is at a high level, control the switch module to turn on to power on the load, and when the output signal is at a low level, control the switch module to turn off to power off the load; The second switch control circuit is configured to control the switch module to disconnect and power off the load according to the shutdown signal when receiving a shutdown signal output by the single-chip microcomputer, wherein the shutdown signal is a low-level signal generated and output by the single-chip microcomputer after a preset delay time after the output signal of the signal isolation circuit flips to a low level; The switch module is connected to the conduction loop between the power supply and the load.

2. The power on / off control circuit according to claim 1, wherein: The switch module includes a first resistor, a first capacitor, and a solid-state relay; The first end of the solid-state relay is connected to the first end of the first resistor, the second end of the first resistor and the first end of the first capacitor are connected to a power supply, and the second end of the first capacitor is grounded; The second end of the solid-state relay is connected to the first switch control circuit and the second switch control circuit respectively; The third end of the solid-state relay is connected to the positive electrode of the load, and the fourth end is connected to the negative electrode of the load.

3. The power on / off control circuit according to claim 2, wherein: The physical key circuit includes a dual-way key; The first button is connected to the path between the power supply and the load; The second button is connected to the path between the power supply and the debouncing circuit.

4. The power on / off control circuit according to claim 2 or 3, wherein: The debouncing circuit includes a second capacitor, a third capacitor, a fifth resistor, a sixth resistor, a Schmitt trigger, and a fourth capacitor; A common point among the first end of the second capacitor, the first end of the third capacitor, the first end of the fifth resistor, and the first end of the sixth resistor serves as an input end of the debouncing circuit; The second end of the second capacitor, the second end of the third capacitor, and the second end of the fifth resistor are connected to the ground; The second end of the sixth resistor is connected to the input end of the Schmitt trigger; The output end of the Schmitt trigger is connected to the input end of the signal isolation circuit; The power supply terminal of the Schmitt trigger and the first terminal of the fourth capacitor are commonly connected to a power supply; A second terminal of the fourth capacitor is grounded.

5. The power on / off control circuit according to claim 4, wherein: The signal isolation circuit includes: a fifth capacitor, a seventh resistor, an eighth resistor, a ninth resistor, a sixth capacitor, and a D-type trigger; The clock control terminal of the D-type flip-flop is connected to the output terminal of the debouncing circuit through the seventh resistor; The power supply terminal of the D-type trigger, the first terminal of the fifth capacitor, the first terminal of the eighth resistor, and the first terminal of the ninth resistor are connected to the power supply; The negation terminal of the D-type flip-flop is connected to the signal input terminal; The power supply terminal pre-end of the D-type trigger is connected to the common point between the second end of the ninth resistor and the first end of the sixth capacitor; The reset terminal of the D-type trigger is connected to the second terminal of the eighth resistor; The output end of the D-type trigger serves as the output end of the signal isolation circuit; The ground terminal of the D-type trigger, the second terminal of the fifth capacitor, and the second terminal of the sixth capacitor are grounded respectively.

6. The power on / off control circuit according to claim 5, wherein: The first switch control circuit includes: a tenth resistor and a second transistor; The first end of the tenth resistor serves as an input end of the first switch control circuit; The base of the second transistor is connected to the second end of the tenth resistor, the emitter is grounded, and the collector is connected to the switch module.

7. The power on / off control circuit according to claim 6, wherein: The first switch control circuit further includes: 11th resistor, light emitting diode; The first end of the eleventh resistor is connected to a power supply, and the second end is connected to the positive electrode of the light emitting diode; The cathode of the light emitting diode and the first end of the tenth resistor are commonly connected to the output end of the signal isolation circuit.

8. The power on / off control circuit according to claim 5, wherein: The second switch control circuit includes: The twelfth resistor, the thirteenth resistor, and the third transistor; The first end of the twelfth resistor is connected to a power supply; A common point between the second end of the twelfth resistor and the first end of the thirteenth resistor serves as an input end of the second switch control circuit; The base of the third transistor is connected to the second end of the thirteenth resistor, the emitter is grounded, and the collector is connected to the switch module.

9. The power on / off control circuit according to any one of claims 1 to 8, wherein: The power supply is an isolated power supply.

Citation Information

Patent Citations

  • False trigger preventing interference-free switch circuit

    CN106961267A

  • Anti-error-shutdown switch control device for computer-aided surgery equipment and method thereof

    CN109754874A