A scanning code charging power supply
The code scanning charging power supply system addresses the lack of input voltage and power display by integrating advanced circuits to detect and display these parameters on mobile devices, improving user control and awareness during charging.
Patent Information
- Application Number
- CN202010674391.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-07-14
- Publication Date
- 2024-12-31
- Estimated Expiration
- 2040-07-14
AI Technical Summary
Existing charging technologies for mobile devices do not display the current input voltage, current, and power on the device, limiting user awareness and control over the charging process.
A code scanning charging power supply system that includes a power supply circuit, MCU main control circuit, relay detection and control circuit, control key circuit, MODULE module circuit, and SIM card circuit, equipped with components like manganese copper resistors, transistors, photocouplers, and indicator light circuits, to detect and display input voltage, current, and power on a mobile device.
Enables automatic detection and display of input voltage, current, and power on a mobile device via a QR code scan, enhancing user control and awareness during charging.
Smart Images

Figure CN112003339B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of charging power supplies, and more specifically, to a code scanning charging power supply. Background Art
[0002] With the rapid development of the Internet, cloud computing, and big data technologies, the sharing economy has appeared more and more in all areas of social life. Shared cars, shared bicycles, and shared chargers have gradually changed people's lifestyles. Although the sharing economy has not created new value, with the help of Internet technology, the sharing economy has better allocated idle social resources, effectively improved resource utilization, facilitated people's lives, and indirectly improved social production efficiency.
[0003] Currently, the application prospects of mobile electronic products are very broad and there are many types. Since the battery capacity of the products is limited, they often need to be charged. Therefore, a charging function that scans a QR code has appeared in public places. However, the existing technology cannot display the current input voltage, current and power on the mobile device. The user can only see the remaining power of the mobile device. Summary of the invention
[0004] In order to overcome the deficiencies of the prior art, the present invention provides a code scanning charging power supply, which can detect the current input voltage, current and power.
[0005] The technical solution adopted by the present invention to solve the technical problem is: a scanning charging power supply, the improvement of which is that it includes a power supply circuit, an MCU main control circuit, a relay detection and control circuit, a control key circuit, a MODULE module circuit and a SIM card circuit;
[0006] The power supply circuit is connected to the MCU main control circuit and the MODULE module circuit respectively to provide the power required for work; the control key circuit is connected between the MCU main control circuit and the MODULE module circuit; the SIM card circuit is electrically connected to the MODULE module circuit;
[0007] The MCU main control circuit includes a chip U1 with computing processing capabilities, the relay detection and control circuit is electrically connected to the chip U1 of the MCU main control circuit, and the relay detection and control circuit includes a power supply end, a relay, a relay control circuit, a current and voltage detection end, and a relay detection circuit; the power supply end is electrically connected to the relay, the current and voltage detection end, and the relay detection circuit, respectively, and the current and voltage detection end and the relay detection circuit are electrically connected to the relay; the relay control circuit, the current and voltage detection end, and the relay detection circuit are electrically connected to the chip U1, the relay control circuit is connected to the relay, and the relay control circuit is used to control the on and off of the relay according to the detection results of the relay detection circuit and the current and voltage detection end.
[0008] In the above structure, the current and voltage detection end includes a manganese copper resistor MT1, a resistor R6, a resistor R7, a capacitor C11, a capacitor C12 and two detection output ports;
[0009] The manganese copper resistor MT1 is connected in parallel between the power supply end and the detection port of the relay, and the two detection output ports are used to detect the voltage and current at both ends of the manganese copper resistor MT1;
[0010] A resistor R7 is provided between one of the detection output ports and the power supply terminal, and a capacitor C12 is provided between the detection output port and the ground terminal;
[0011] A resistor R6 is provided between another detection output port and the detection port of the relay, and a capacitor C11 is provided between the detection output port and the ground terminal.
[0012] In the above structure, the relay control circuit includes a resistor R18, a resistor R17, an NPN transistor Q1, a diode D1, a resistor R16, a capacitor C20 and a control signal input terminal;
[0013] The resistor R18 is connected between the control signal input terminal and the base of the NPN transistor Q1, the emitter of the NPN transistor Q1 is grounded, and the resistor R17 is connected between the base and the emitter of the NPN transistor Q1;
[0014] The relay has a first control port RA1 and a second control port RB1, the collector of the NPN transistor Q1 is connected to the second control port RB1, the diode D1 is arranged between the first control port RA1 and the second control port RB1, and the positive terminal of the diode D1 is connected to the second control port RB1;
[0015] The resistor R16 is disposed between the power supply terminal VDD and the first control port RA1 , and the capacitor C20 is disposed between the power supply terminal VDD and the ground terminal.
[0016] In the above structure, the model of the NPN transistor Q1 is LMBTA06LT1G.
[0017] In the above structure, the relay detection circuit includes a photocoupler U4, a diode D4, a capacitor C33, a resistor R33 and a detection signal port;
[0018] The photoelectric coupler U4 has two input terminals and two output terminals, one of which is connected to the relay and the other is connected to the power supply terminal, and the diode D4 is connected between the two input terminals;
[0019] One output terminal of the photocoupler is grounded, the capacitor C33 is connected between the two output terminals, the other output terminal is connected to the detection signal port, and the resistor R33 is arranged between the other output terminal of the photocoupler U4 and the power supply terminal VCPU.
[0020] In the above structure, the model of the photoelectric coupler is ORPC-817SC.
[0021] In the above structure, the model of the chip U1 is QS1211B.
[0022] In the above structure, the MODULE module circuit includes a chip J3-A, and the model of the chip J3-A is L501.
[0023] In the above structure, the code scanning charging power supply also includes an indicator light circuit, and the indicator light circuit is composed of a network indicator light circuit, an electric energy pulse indicator light circuit and a status indicator light circuit.
[0024] In the above structure, the network indicator light circuit includes a light emitting diode L1, a resistor R52, a resistor R63 and an NPN transistor Q6;
[0025] The light emitting diode L1 and the resistor R52 are connected in series between the power supply terminal VCPU and the collector of the NPN transistor Q6. The base of the NPN transistor Q6 is the NETLIGHT port, which is connected to the MODULE module circuit. The resistor R63 is arranged between the base of the NPN transistor Q6 and the ground terminal. The emitter of the NPN transistor Q6 is grounded.
[0026] The electric energy pulse indicator light circuit includes a resistor R50, a light emitting diode L2, a resistor R51 and a light emitting diode L3. The resistor R50 and the light emitting diode L2 are connected in series between the chip U1 and the ground terminal, and the resistor R51 and the light emitting diode L3 are connected in series between the chip U1 and the ground terminal.
[0027] The status indicator circuit includes a light-emitting diode L4, a resistor R53, a resistor R59, a resistor R61, an NPN transistor Q7, a light-emitting diode L5, a resistor R54, a resistor R60, a resistor R62 and an NPN transistor Q8; the light-emitting diode L4 and the resistor R53 are connected in series between the power supply terminal VCPU and the collector of the NPN transistor Q7, the chip U1 has an LED-STATUS1 port, a resistor R59 is arranged between the LED-STATUS1 port and the base of the NPN transistor Q7, and the base of the NPN transistor Q7 is connected to the LED-STATUS2 port. A resistor R61 is connected between the base and the emitter of the NPN transistor Q7, and the emitter of the NPN transistor Q7 is grounded; the light emitting diode L5 and the resistor R54 are connected in series between the power supply terminal VCPU and the collector of the NPN transistor Q8, the chip U1 has an LED-STATUS2 port, a resistor R60 is arranged between the LED-STATUS2 port and the base of the NPN transistor Q8, a resistor R62 is connected between the base of the NPN transistor Q8 and the emitter of the NPN transistor Q8, and the emitter of the NPN transistor Q8 is grounded.
[0028] The beneficial effects of the present invention are: when the user scans and provides a specific QR code, the APP software will be contacted for data communication, and the MCU main control circuit will respond to the command according to the user's operation. When the user provides an instruction to turn on the charging device, the MCU main control circuit will provide a signal to control the relay to turn on the charging device, and the indicator circuit LED will provide an indication. When the user uses the charging device, the MCU main control circuit will automatically calculate the current input voltage, current and power based on the voltage and current across the manganese copper resistor and display it on the mobile device APP software. Therefore, the code scanning charging power supply can detect the current input voltage, current and power, and display them on the mobile device. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] Figure 1 This is a structural principle diagram of a code scanning charging power supply of the present invention.
[0030] Figure 2 This is a structural principle diagram of the MCU main control circuit of a code scanning charging power supply of the present invention.
[0031] Figure 3 A principle block diagram of a relay detection and control circuit of a code scanning charging power supply of the present invention.
[0032] Figure 4 This is a structural principle diagram of a relay detection and control circuit of a code scanning charging power supply of the present invention.
[0033] Figure 5 This is a structural principle diagram of a power supply circuit of a code scanning charging power supply of the present invention.
[0034] Figure 6 This is a structural principle diagram of a SIM card circuit of a code scanning charging power supply according to the present invention.
[0035] Figure 7 The present invention is a schematic diagram of the structure of a MODULE module circuit of a code scanning charging power supply.
[0036] Figure 8 Fig. 9 as well as Fig.10 This is a structural principle diagram of an indicator light circuit of a code scanning charging power supply of the present invention. DETAILED DESCRIPTION
[0037] The present invention is further described below in conjunction with the accompanying drawings and embodiments.
[0038] The following will clearly and completely describe the concept, specific structure and technical effects of the present invention in combination with the embodiments and drawings, so as to fully understand the purpose, characteristics and effects of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of them. Based on the embodiments of the present invention, other embodiments obtained by technicians in this field without creative work are all within the scope of protection of the present invention. In addition, all the connection / connection relationships involved in the patent do not refer to the direct connection of components, but refer to the formation of a better connection structure by adding or reducing connection accessories according to the specific implementation situation. The various technical features in the invention can be combined interchangeably without conflicting with each other.
[0039] Reference Figure 1 As shown, the present invention discloses a scanning code charging power supply, which automatically turns on the power supply device through a relay after the user scans the provided QR code, provides charging energy to the user, and can automatically display the voltage, voltage, power and time, etc. on the software. Specifically, the scanning code charging power supply includes a power supply circuit 10, an MCU main control circuit 50, a relay detection and control circuit 20, a control key circuit 60, a MODULE module circuit 70 and a SIM card circuit 80; the power supply circuit 10 is respectively connected to the MCU main control circuit 50 and the MODULE module circuit 70 to provide the electric energy required for work; the control key circuit 60 is connected between the MCU main control circuit 50 and the MODULE module circuit 70; the SIM card circuit 80 is electrically connected to the MODULE module circuit 70; as shown Figure 2As shown, the MCU main control circuit 50 includes a chip U1 with computing processing capability. The model of the chip U1 is QS1211B, which is an electric energy chip. Its structure and working principle are very mature in the prior art, and will not be described in detail in this embodiment. In addition, it can be understood that the chip U1 needs to cooperate with the peripheral circuit to realize its specific function, but this part of the structure also belongs to a very mature technology in the prior art, and will not be described in detail in this embodiment. The relay detection and control circuit 20 is electrically connected to the chip U1 of the MCU main control circuit 50, and the power supply circuit 10 is used to provide power to each part of the circuit when it is working. The relay detection and control circuit 20 is used to detect the current and voltage of the relay, and send the detection result to the chip U1 of the MCU main control circuit 50, and then send the signal to the relay detection and control circuit 20 through the logic of the chip U1 to realize the control of the relay on and off. In this process, the MODULE module circuit 70 will communicate with the mobile network provider through the SIM circuit, and then display the wireless network contact status and charging data on the specified mobile device APP software. In addition, the control key circuit 60 is used to control the scanning charging power supply, such as realizing circuit resetting and other functions. Its implementation method belongs to a common solution in the prior art, so it will not be described in detail in this embodiment.
[0040] like Figure 3 As shown, it is a circuit schematic diagram of the relay detection and control circuit 20. In this embodiment, the relay detection and control circuit 20 includes a power supply terminal 201, a relay 202, a relay control circuit 203, a current and voltage detection terminal 204, and a relay detection circuit 205, wherein the power supply terminal 201 includes devices such as an AC input line and a socket, which are not described in detail in this embodiment; the power supply terminal 201 is electrically connected to the relay 202, the current and voltage detection terminal 204, and the relay detection circuit 205, respectively, and the current and voltage detection terminal 204 and the relay detection circuit 205 are electrically connected to the relay 202; the relay control circuit 203 is connected to the relay, and the relay control circuit 203 is used to control the on and off of the relay according to the detection results of the relay detection circuit 205 and the current and voltage detection terminal 204. It should be noted that the relay detection circuit 205 is used to detect the voltage and current of the relay, and the relay control circuit 203 and the relay detection circuit 205 are connected to the chip U1, and its specific embodiment will be further described below.
[0041] like Figure 4As shown, in this embodiment, the above-mentioned relays, relay control circuits 203, current and voltage detection terminals 204 and relay detection circuits 205 are all provided with two groups, one group is a first relay 301, a first relay control circuit 302, a first current and voltage detection terminal 303 and a first relay detection circuit 304, and the other group is a second relay 401, a second relay control circuit 402, a second current and voltage detection terminal 403 and a second relay detection circuit 404. Since the circuit structures of the two groups are basically the same, only the structure of one group is described in detail in this embodiment. In this embodiment, the first current and voltage detection terminal 303 includes a manganese copper resistor MT1, a resistor R6, a resistor R7, a capacitor C11, a capacitor C12 and two detection output ports; the manganese copper resistor MT1 is connected in parallel between the power supply terminal 201 and the detection port of the relay, and the two detection output ports are used to detect the voltage and current at both ends of the manganese copper resistor MT1; one of the detection output ports and the power supply terminal 201 is provided with a resistor R7, and a capacitor C12 is provided between the detection output port and the ground terminal; a resistor R6 is provided between the other detection output port and the detection port of the relay, and a capacitor C11 is provided between the detection output port and the ground terminal. In this embodiment, the two detection output ports are I1P and I1N respectively.
[0042] Continue to refer to Figure 4 As shown, for the first relay control circuit 302, the present invention provides a specific embodiment, the relay control circuit includes a resistor R18, a resistor R17, an NPN transistor Q1, a diode D1, a resistor R16, a capacitor C20 and a control signal input terminal; the resistor R18 is connected between the control signal input terminal and the base of the NPN transistor Q1, the emitter of the NPN transistor Q1 is grounded, and the resistor R17 is connected between the base and the emitter of the NPN transistor Q1; the relay has a first control port RA1 and a second control port RB1, the collector of the NPN transistor Q1 is connected to the second control port RB1, the diode D1 is arranged between the first control port RA1 and the second control port RB1, and the positive terminal of the diode D1 is connected to the second control port RB1; the resistor R16 is arranged between the power supply terminal VDD and the first control port RA1, and a capacitor C20 is arranged between the power supply terminal VDD and the ground terminal. In this embodiment, the model of the NPN transistor Q1 is LMBTA06LT1G, and the control signal input terminal is RLY-OPEN1. Figure 4 The first relay 301 and the second relay 401 are of model HF115F-I, which are small high-power relays commonly used in the prior art. Their structures and corresponding functions are well-known technologies in the industry, so their structures are not described in detail in this embodiment.
[0043] For the first relay detection circuit 304, as Figure 2 As shown, the present invention provides a specific embodiment, the relay detection circuit includes a photocoupler U4, a diode D4, a capacitor C33, a resistor R33 and a detection signal port; the photocoupler U4 has two input terminals and two output terminals, one of which is connected to the relay, the other is connected to the power supply terminal 201, and the diode D4 is connected between the two input terminals; one output terminal of the photocoupler is grounded, the capacitor C33 is connected between the two output terminals, the other output terminal is connected to the detection signal port, and the resistor R33 is arranged between the other output terminal of the photocoupler U4 and the power supply terminal VCPU. In this embodiment, a plurality of resistors connected in series are arranged between the power supply terminal 201 and the other input terminal of the photocoupler U4; the model of the photocoupler is ORPC-817SC. In addition, the detection signal port is RLY-CHK1.
[0044] In the above embodiments, combined with Figure 4 As shown, the first relay control circuit 302, the first current and voltage detection terminal 303 and the first relay detection circuit 304 all need to be connected to the same chip with output processing, such as Figure 2 As shown, the chip U1 has pins respectively connected to the detection output port I1P, the detection output port I1N, the control signal input terminal RLY-OPEN1 and the detection signal port RLY-CHK1.
[0045] Through the above structure, the first relay detection circuit 304 is used to detect the working voltage and current of the relay, and transmit the detection result to the chip U1. The chip U1 sends a control signal to the first relay control circuit 302 according to the detection result to control the relay; when the user uses the charging device, the chip U1 will automatically calculate the current input voltage, current and power based on the voltage and current across the manganese copper resistor MT1, and can also display it on the display screen; therefore, the current input voltage, current and power can be detected and calculated, which is convenient for realizing the control of the relay.
[0046] like Figure 5 As shown, for the power supply circuit 10, the present invention provides a specific embodiment, including a voltage regulator MC7805K, a capacitor C18, a capacitor C19, a resistor R8, a resistor R15, a capacitor C16 and a capacitor C17, and the connection method thereof is as follows Figure 5 As shown in the figure, the voltage output terminal VBAT ranges from 3.3V to 5V, and 5V output is usually used directly. Figure 6As shown, for the SIM card circuit 80, the present invention provides a specific embodiment, which includes a SIM card chip J1, and a VCC interface, a USIM_RST interface, a USIM_CLK interface, a USIM_DATA interface and a USIM_DET interface are formed on the SIM card chip J1, and these interfaces are electrically connected to the MODULE module circuit 70. The power supply circuit 10 and the SIM card circuit 80 are already very mature technologies in the art, and will not be described in detail in this embodiment.
[0047] like Figure 7 As shown, for the above-mentioned MODULE module circuit 70, the present invention provides a specific embodiment, the MODULE module circuit 70 includes a chip J3-A, whose model is L501. L501 is a Cat1 module with a small package, stable and reliable performance, LCC+LGA, which can well meet the customer's application requirements for high cost performance and low power consumption. The size of L501 is only 30*30*2.9mm, which can meet the customer's demand for small-size module products, and at the same time facilitate customers to reduce product size and optimize product costs; the adopted LCC+LGA package can realize the rapid production of modules through standard SMT equipment, so that it can be widely used in the field of IOT, such as public network intercom, mobile payment, security, vehicle-mounted, DTU, asset tracking and sharing economy. The chip J3-A has a USIM_RST pin, a USIM_CLK pin, a USIM_DET pin, and a USIM_DATA pin connected to the SIM card chip J1, and also has a UART1_RX pin, a UART1_TX pin, a PWRKEY pin, a RESET pin, a VBUS pin, and a VDD_1V8 pin electrically connected to the control key circuit 60; in addition, the chip J3-A also has a NETLIGHT pin electrically connected to the indicator light circuit. Since the chip J3-A is a very mature product in the prior art, the present invention does not provide a detailed description of its structure.
[0048] like Figure 1 As shown, the code scanning charging power supply also includes an indicator light circuit 90, and the indicator light circuit 90 is electrically connected to the MCU main control circuit 50 and the MODULE module circuit 70, such as Figures 8 to 10 As shown, in this embodiment, the indicator light circuit 90 is composed of a network indicator light circuit, an energy pulse indicator light circuit and a status indicator light circuit, wherein Figure 8As shown, the network indicator light circuit includes a light emitting diode L1, a resistor R52, a resistor R63 and an NPN transistor Q6; the light emitting diode L1 and the resistor R52 are connected in series between the power supply terminal VCPU and the collector of the NPN transistor Q6, the base of the NPN transistor Q6 is a NETLIGHT port, which is connected to the NETLIGHT pin of the MODULE module circuit 70, the resistor R63 is arranged between the base of the NPN transistor Q6 and the ground terminal, and the emitter of the NPN transistor Q6 is grounded; the indication of the network status is realized by the light emitting diode L1.
[0049] like Fig. 9 As shown, the electric energy pulse indicator light circuit includes a resistor R50, a light-emitting diode L2, a resistor R51 and a light-emitting diode L3. The resistor R50 and the light-emitting diode L2 are connected in series between the chip U1 and the ground terminal, and the resistor R51 and the light-emitting diode L3 are connected in series between the chip U1 and the ground terminal; the light-emitting diode L2 and the light-emitting diode L3 are the electric energy pulse indicator lights.
[0050] like Fig.10 As shown, the status indicator light circuit includes a light-emitting diode L4, a resistor R53, a resistor R59, a resistor R61, an NPN transistor Q7, a light-emitting diode L5, a resistor R54, a resistor R60, a resistor R62 and an NPN transistor Q8; the light-emitting diode L4 and the resistor R53 are connected in series between the power supply terminal VCPU and the collector of the NPN transistor Q7, the chip U1 has a LED-STATUS1 port, a resistor R59 is arranged between the LED-STATUS1 port and the base of the NPN transistor Q7, and the base of the NPN transistor Q7 is connected to the LED-STATUS2 port. A resistor R61 is connected between the base and the emitter of the NPN transistor Q7, and the emitter of the NPN transistor Q7 is grounded; the light-emitting diode L5 and the resistor R54 are connected in series between the power supply terminal VCPU and the collector of the NPN transistor Q8, and the chip U1 has an LED-STATUS2 port, a resistor R60 is provided between the LED-STATUS2 port and the base of the NPN transistor Q8, a resistor R62 is connected between the base of the NPN transistor Q8 and the emitter of the NPN transistor Q8, and the emitter of the NPN transistor Q8 is grounded. The light-emitting diode L4 and the light-emitting diode L5 are status indicator lights, and when the light-emitting diode L4 and the light-emitting diode L5 flash, it indicates a fault, which includes overcurrent and abnormal relay.
[0051] Through the above circuit structure, after the external power supply is input, the voltage is reduced by the voltage regulator MC7805K of the power supply circuit 10, and the MCU main control circuit 50 and the MODULE module circuit 70 are powered. The MCU main control circuit 50 and the MODULE module circuit 70 start to reset, and the indicator light circuit provides an indication. The MODULE module circuit 70 will communicate with the mobile network provider according to the SIM card chip and display the wireless network contact status and other data on the specified mobile device APP software. When the user scans and provides a specific QR code, the APP software will be connected for data communication. The MCU main control circuit 50 will respond to the command according to the user's operation. When the user provides an instruction to turn on the charging device, the MCU main control circuit 50 will provide a signal to control the relay to turn on the charging device, and the indicator circuit LED will provide an indication. When the user uses the charging device, the MCU main control circuit 50 will automatically calculate the current input voltage, current and power based on the voltage and current across the manganese copper resistor and display it on the mobile device APP software. Therefore, the code scanning charging power supply can detect the current input voltage, current and power and display them on the mobile device.
[0052] The above is a specific description of the preferred implementation of the present invention, but the invention is not limited to the embodiments. Those skilled in the art can make various equivalent modifications or substitutions without violating the spirit of the present invention. These equivalent modifications or substitutions are all included in the scope defined by the claims of this application.
Claims
1. A code scanning charging power supply, characterized in that: Including power supply circuit, MCU main control circuit, relay detection and control circuit, control key circuit, MODULE module circuit and SIM card circuit; The power supply circuit is connected to the MCU main control circuit and the MODULE module circuit respectively to provide the power required for work; the control key circuit is connected between the MCU main control circuit and the MODULE module circuit; the SIM card circuit is electrically connected to the MODULE module circuit; The MCU main control circuit includes a chip U1 with computing processing capabilities, the relay detection and control circuit is electrically connected to the chip U1 of the MCU main control circuit, and the relay detection and control circuit includes a power supply end, a relay, a relay control circuit, a current and voltage detection end, and a relay detection circuit; the power supply end is electrically connected to the relay, the current and voltage detection end, and the relay detection circuit, respectively, and the current and voltage detection end and the relay detection circuit are electrically connected to the relay; the relay control circuit, the current and voltage detection end, and the relay detection circuit are electrically connected to the chip U1, the relay control circuit is connected to the relay, and the relay control circuit is used to control the on and off of the relay according to the detection results of the relay detection circuit and the current and voltage detection end; The current and voltage detection end includes a manganese copper resistor MT1, a resistor R6, a resistor R7, a capacitor C11, a capacitor C12 and two detection output ports; the manganese copper resistor MT1 is connected in parallel between the power supply end and the detection port of the relay, and the two detection output ports are used to detect the voltage and current at both ends of the manganese copper resistor MT1; one of the detection output ports and the power supply end is provided with a resistor R7, and a capacitor C12 is provided between the detection output port and the grounding end; a resistor R6 is provided between the other detection output port and the detection port of the relay, and a capacitor C11 is provided between the detection output port and the grounding end; The relay control circuit includes a resistor R18, a resistor R17, an NPN transistor Q1, a diode D1, a resistor R16, a capacitor C20 and a control signal input terminal; the resistor R18 is connected between the control signal input terminal and the base of the NPN transistor Q1, the emitter of the NPN transistor Q1 is grounded, and the resistor R17 is connected between the base and the emitter of the NPN transistor Q1; the relay has a first control port RA1 and a second control port RB1, the collector of the NPN transistor Q1 is connected to the second control port RB1, the diode D1 is arranged between the first control port RA1 and the second control port RB1, and the positive terminal of the diode D1 is connected to the second control port RB1; the resistor R16 is arranged between the power supply terminal VDD and the first control port RA1, and a capacitor C20 is arranged between the power supply terminal VDD and the ground terminal; The relay detection circuit includes a photocoupler U4, a diode D4, a capacitor C33, a resistor R33 and a detection signal port; the photocoupler U4 has two input terminals and two output terminals, one of which is connected to the relay, the other is connected to the power supply terminal, and the diode D4 is connected between the two input terminals; one output terminal of the photocoupler is grounded, the capacitor C33 is connected between the two output terminals, the other output terminal is connected to the detection signal port, and the resistor R33 is arranged between the other output terminal of the photocoupler U4 and the power supply terminal VCPU.
2. A code scanning charging power supply according to claim 1, characterized in that: The model of the NPN transistor Q1 is LMBTA06LT1G.
3. A code scanning charging power supply according to claim 1, characterized in that: The model of the photoelectric coupler is ORPC-817SC.
4. A code scanning charging power supply according to claim 1, characterized in that: The model of the chip U1 is QS1211B.
5. The code scanning charging power supply according to claim 1, characterized in that: The MODULE module circuit includes a chip J3-A, and the model of the chip J3-A is L501.
6. A code scanning charging power supply according to claim 1, characterized in that: The code scanning charging power supply also includes an indicator light circuit, and the indicator light circuit is composed of a network indicator light circuit, an electric energy pulse indicator light circuit and a status indicator light circuit.
7. A code scanning charging power supply according to claim 6, characterized in that: The network indicator light circuit includes a light emitting diode L1, a resistor R52, a resistor R63 and an NPN transistor Q6; The light emitting diode L1 and the resistor R52 are connected in series between the power supply terminal VCPU and the collector of the NPN transistor Q6. The base of the NPN transistor Q6 is the NETLIGHT port, which is connected to the MODULE module circuit. The resistor R63 is arranged between the base of the NPN transistor Q6 and the ground terminal. The emitter of the NPN transistor Q6 is grounded. The electric energy pulse indicator light circuit includes a resistor R50, a light emitting diode L2, a resistor R51 and a light emitting diode L3. The resistor R50 and the light emitting diode L2 are connected in series between the chip U1 and the ground terminal, and the resistor R51 and the light emitting diode L3 are connected in series between the chip U1 and the ground terminal. The status indicator circuit includes a light-emitting diode L4, a resistor R53, a resistor R59, a resistor R61, an NPN transistor Q7, a light-emitting diode L5, a resistor R54, a resistor R60, a resistor R62 and an NPN transistor Q8; the light-emitting diode L4 and the resistor R53 are connected in series between the power supply terminal VCPU and the collector of the NPN transistor Q7, the chip U1 has an LED-STATUS1 port, a resistor R59 is arranged between the LED-STATUS1 port and the base of the NPN transistor Q7, and the base of the NPN transistor Q7 is connected to the LED-STATUS2 port. A resistor R61 is connected between the base and the emitter of the NPN transistor Q7, and the emitter of the NPN transistor Q7 is grounded; the light emitting diode L5 and the resistor R54 are connected in series between the power supply terminal VCPU and the collector of the NPN transistor Q8, the chip U1 has an LED-STATUS2 port, a resistor R60 is arranged between the LED-STATUS2 port and the base of the NPN transistor Q8, a resistor R62 is connected between the base of the NPN transistor Q8 and the emitter of the NPN transistor Q8, and the emitter of the NPN transistor Q8 is grounded.