CN210404789U - Power self-locking circuit and printer with same - Google Patents
Power self-locking circuit and printer with same Download PDFInfo
- Publication number
- CN210404789U CN210404789U CN201921601073.0U CN201921601073U CN210404789U CN 210404789 U CN210404789 U CN 210404789U CN 201921601073 U CN201921601073 U CN 201921601073U CN 210404789 U CN210404789 U CN 210404789U
- Authority
- CN
- China
- Prior art keywords
- resistor
- power supply
- self
- locking
- circuit
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000001514 detection method Methods 0.000 claims abstract description 33
- 239000003990 capacitor Substances 0.000 claims description 19
- 238000000034 method Methods 0.000 description 6
- 230000008569 process Effects 0.000 description 5
- 238000010586 diagram Methods 0.000 description 3
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000006467 substitution reaction Methods 0.000 description 2
- 230000003993 interaction Effects 0.000 description 1
Images
Landscapes
- Direct Current Feeding And Distribution (AREA)
Abstract
The utility model discloses a power self-locking circuit and have its printer relates to power supply circuit technical field. The power supply self-locking circuit comprises a power supply, a self-locking button, a button detection circuit, a switch circuit, a charging detection circuit and a singlechip; the output end of the power supply is connected with the self-locking button, the self-locking button is connected with the button detection circuit, the button detection circuit is connected with the input end of the single chip microcomputer, the output end of the single chip microcomputer is connected with the switch circuit, and the charging detection circuit is connected with the input end of the single chip microcomputer. The utility model discloses a set up auto-lock button, button detection circuitry, switch circuit and charge detection circuitry, realize the start, shut down, three kinds of functions of ordinary button, the circuit is simple, is applicable to various electronic equipment.
Description
Technical Field
The utility model belongs to the technical field of the power supply circuit technique and specifically relates to a power self-locking circuit and have its printer is related to.
Background
With the development of society, the power supplies of more and more electronic devices, such as mobile phones, game machines, printers and other electronic products, are not detachable, and users can directly charge the power supplies and use the electronic devices. These electronic devices generally adopt a self-locking switch to realize self-locking of a power supply, when the self-locking switch is pressed at the time of starting up, the switch cannot bounce and keeps a conducting state, the power supply is switched on and locked, the whole system is powered on, the device starts working, and when the switch is pressed again, the self-locking switch bounces and cuts off the power supply to realize shutdown. At present, a power supply self-locking circuit for realizing startup and shutdown in the existing market is complex and easy to cause problems, and the effective disconnection or connection of electronic equipment and a power supply battery cannot be effectively guaranteed.
SUMMERY OF THE UTILITY MODEL
The present invention aims at solving at least one of the technical problems in the related art to a certain extent. Therefore, the utility model discloses an aim at provides a power auto-lock circuit and have its printer.
The utility model adopts the technical proposal that:
in a first aspect, the utility model provides a power supply self-locking circuit, which comprises a power supply, a self-locking button, a button detection circuit, a switch circuit, a charging detection circuit and a single chip microcomputer;
the output end of the power supply is connected with the self-locking button, the self-locking button is connected with the button detection circuit, the button detection circuit is connected with the input end of the single chip microcomputer, the output end of the single chip microcomputer is connected with the switch circuit, and the charging detection circuit is connected with the input end of the single chip microcomputer.
Further, the power supply is a direct current power supply, and the direct current power supply comprises a D135 chip or a D370 chip.
Furthermore, the key detection circuit comprises a second resistor, a third resistor, a second diode and a sixth capacitor, wherein one end of the second resistor is connected with the self-locking key and the anode of the second diode, the other end of the second resistor is connected with one end of the third resistor, the input end of the singlechip and one end of the sixth capacitor, the other end of the third resistor is grounded, and the other end of the sixth capacitor is grounded.
Further, the model of the second diode is 1N 5819.
Further, the switch circuit includes a fortieth resistor, a fortieth first resistor, a fortieth second resistor, a first triode and an MOS transistor, one end of the fortieth resistor is connected with the output end of the single chip microcomputer, the other end of the fortieth resistor is respectively connected with one end of the fortieth first resistor and the base of the first triode, the other end of the fortieth first resistor is grounded, the emitter of the first triode is grounded, the collector of the first triode is respectively connected with one end of the fortieth second resistor and the gate of the MOS transistor, the other end of the fortieth second resistor is connected with the source of the MOS transistor, and the drain of the MOS transistor is connected with the negative electrode of the second diode.
Further, the model of the first triode is S9013LT1, and the model of the MOS transistor is IRLML6402 GPBF.
Further, the charging detection circuit comprises a fortieth diode, a forty-third resistor, a forty-fourth resistor, a forty-first capacitor and a second triode, wherein the anode of the forty-fourth diode is connected with the input end of the single chip microcomputer, the cathode of the forty-fourth diode is respectively connected with one end of the forty-third resistor and one end of the forty-fourth resistor, the other end of the forty-third resistor is connected with the output end of the power supply, the other end of the forty-fourth resistor is respectively connected with one end of the forty-first capacitor and the base of the second triode, the other end of the forty-first capacitor is grounded, the emitter of the second triode is grounded, and the collector of the second triode is connected with the gate of the MOS transistor.
Further, the model of the fortieth diode is 1N5819, and the model of the second triode is S9013LT 1.
Further, the single chip microcomputer is STM32F103C 8.
In a second aspect, the present invention provides a printer, including the above-mentioned power self-locking circuit.
The utility model has the advantages that:
the utility model discloses a set up auto-lock button, button detection circuitry, switch circuit and charge detection circuitry, realize the start, shut down, three kinds of functions of ordinary button, the circuit is simple, is applicable to various electronic equipment.
Drawings
Fig. 1 is a schematic structural diagram of an embodiment of a power supply self-locking circuit according to the present invention;
fig. 2 is a schematic circuit diagram of another embodiment of a power supply self-locking circuit according to the present invention.
Detailed Description
It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict.
Example one
The embodiment provides a power supply self-locking circuit, as shown in fig. 1, the power supply self-locking circuit comprises a power supply, a self-locking key, a key detection circuit, a switch circuit, a charging detection circuit and a single chip microcomputer.
The output end of the power supply is connected with the self-locking key, the self-locking key is connected with the key detection circuit, the key detection circuit is connected with the input end of the single chip microcomputer, the output end of the single chip microcomputer is connected with the switch circuit, and the charging detection circuit is connected with the input end of the single chip microcomputer.
In this embodiment, the single chip microcomputer adopts STM32F103C8, is responsible for the signal interaction and the control with other circuits.
Example two
The present embodiment takes the schematic circuit diagram in fig. 2 as an example, and explains the circuit principle and the working process of the power supply self-locking circuit:
referring to fig. 2, the battery is a 3-pin DC power supply DC, and includes a D135 chip or a D370 chip, and pins include 1 pin, 2 pins, and 3 pins. The charger control switch signal chr _ chk is output by the pin 1, the circuit is powered by the output power supply VBAT of the pin 2, and the pin 3 is grounded.
Referring to fig. 2, K1 is a self-locking button, the power VBAT is connected to the self-locking button K1, and the connection nodes are grounded through capacitors C40, E40, and E42, respectively.
Referring to fig. 2, the key detection circuit includes a second resistor R2, a third resistor R3, a second diode D2, and a sixth capacitor C6. One end of the second resistor R2 is connected with the self-locking key K1 and the anode of the second diode D2, the other end of the second resistor R2 is connected with one end of the third resistor R3, the input end of the singlechip U1 and one end of the sixth capacitor C6, the other end of the third resistor R3 is grounded, and the other end of the sixth capacitor C6 is grounded. The +8V4 provides working power supply for the single chip microcomputer, and after the single chip microcomputer is powered on, the single chip microcomputer starts to work. The connection node of the second resistor R2 and the third resistor R3 is a detection point of a key detection signal SW _ on-off _ chk, and is input to the singlechip for detecting whether the self-locking key K1 is pressed down.
In this embodiment, the model of the second diode D2 is 1N 5819.
Referring to fig. 2, the switching circuit includes a fortieth resistor R40, a fortieth first resistor R41, a fortieth second resistor R42, a first transistor Q1, and a MOS transistor M1. One end of a forty-fourth resistor R40 is connected with the output end of the singlechip U1, the other end of a forty-fourth resistor R40 is respectively connected with one end of a forty-first resistor R41 and the base of the first triode Q1, the other end of the forty-first resistor R41 is grounded, the emitter of the first triode Q1 is grounded, the collector of the first triode Q1 is respectively connected with one end of a forty-second resistor R42 and the gate of the MOS transistor M1, the other end of the forty-second resistor R42 is connected with the source of the MOS transistor M1, and the drain of the MOS transistor M1 is connected with the cathode of the second diode D2.
In this embodiment, the model of the first triode Q1 is S9013LT1, and the model of the MOS transistor M1 is IRLML6402 GPBF.
Referring to fig. 2, the charge detection circuit includes a fortieth diode D40, a forty-third resistor R43, a forty-fourth resistor R44, a forty-first capacitor C41, and a second transistor Q2. The positive electrode of a forty-fourth diode D40 is connected with the input end of the singlechip U1, the negative electrode of a forty-fourth diode D40 is respectively connected with one end of a forty-third resistor R43 and one end of a forty-fourth resistor R44, the other end of the forty-third resistor R43 is connected with a power supply VBAT, the other end of the forty-fourth resistor R44 is respectively connected with one end of a forty-first capacitor C41 and the base of a second triode Q2, the other end of the forty-first capacitor C41 is grounded, the emitter of the second triode Q2 is grounded, and the collector of the second triode Q2 is connected with the gate of the MOS transistor M1.
In this embodiment, the model of the fortieth diode D40 is 1N5819, and the model of the second transistor Q2 is S9013LT 1.
The following explains the working process of the power supply self-locking circuit:
(1) starting up a key:
the self-locking button K1 is pressed, the direct-current power supply DC outputs a power supply VBAT, the +8V4 is electrified through the self-locking button K1, and the single chip microcomputer U1 starts to work. The single chip microcomputer U1 detects that the SW _ on-off _ chk signal is high level, and judges that the key is turned on. The single chip microcomputer U1 enables the output hold-fromMCU to be set at a high level, the first triode Q1 is conducted, the MOS transistor M1 is conducted through the collector electrode of the first triode Q1, and self-locking starting is achieved;
(2) and (3) key shutdown:
the self-locking key K1 is pressed again, the single chip microcomputer U1 detects that the SW _ on-off _ chk signal is high level, the key is judged to be off, the self-locking signal is cancelled, the output hold-fromMCU is set to be low level, the first triode Q1 is cut off, the MOS tube M1 is closed, the single chip microcomputer U1 stops working, the self-locking key K1 is loosened, and the shutdown is completed;
(3) key detection:
in the working process, the single chip microcomputer U1 detects an SW _ on-off _ chk signal, and the self-locking key K1 is only used as a common key.
The power supply self-locking circuit realizes three functions of starting, shutting down and common key pressing through a self-locking key and matching with the self-locking circuit.
(4) Charging and displaying:
when a charger plug is inserted to charge the battery, chr _ chk is changed into high potential, the second triode Q2 is conducted, the MOS tube M1 is conducted through the collector electrode of the second triode Q2, the +8V4 is powered on, the singlechip U1 starts to work, the singlechip U1 detects that a charge _ chk signal is high level, the charger is judged to be inserted, and the singlechip U1 controls and displays the charging process without power self-locking. When the charger plug is pulled out, the circuit is naturally powered off.
EXAMPLE III
This embodiment provides a printer including the power supply self-locking circuit described in the first and second embodiments. The printer is provided with a microcontroller, and the microcontroller comprises the single chip microcomputer and is used for realizing self-locking or disconnection of a power supply circuit of the printer. And the power supply self-locking circuit is simple and is used on the power supply of the small printer, so that the small printer is more portable.
In addition, the printer is provided with a charging socket and an LED array, the LED array is connected with the single chip microcomputer, and the LED array can be controlled by the single chip microcomputer to display the charging process after the charger is inserted into the charging socket.
The utility model discloses a power self-locking circuit also can be used to the electronic equipment of other types, all is within the protection scope of the utility model.
While the preferred embodiments of the present invention have been described, the present invention is not limited to the embodiments, and those skilled in the art can make various equivalent modifications or substitutions without departing from the spirit of the present invention, and such equivalent modifications or substitutions are intended to be included within the scope of the present invention as defined by the appended claims.
Claims (10)
1. A power supply self-locking circuit is characterized by comprising a power supply, a self-locking key, a key detection circuit, a switch circuit, a charging detection circuit and a single chip microcomputer;
the output end of the power supply is connected with the self-locking button, the self-locking button is connected with the button detection circuit, the button detection circuit is connected with the input end of the single chip microcomputer, the output end of the single chip microcomputer is connected with the switch circuit, and the charging detection circuit is connected with the input end of the single chip microcomputer.
2. The power supply self-locking circuit according to claim 1, wherein the power supply is a dc power supply, and the dc power supply comprises a D135 chip or a D370 chip.
3. The power supply self-locking circuit according to claim 1, wherein the key detection circuit comprises a second resistor, a third resistor, a second diode, and a sixth capacitor, wherein one end of the second resistor is connected to the self-locking key and the anode of the second diode, the other end of the second resistor is connected to one end of the third resistor, the input end of the single chip, and one end of the sixth capacitor, the other end of the third resistor is grounded, and the other end of the sixth capacitor is grounded.
4. The power supply self-locking circuit according to claim 3, wherein the second diode has a model number of 1N 5819.
5. The power supply self-locking circuit according to claim 3, wherein the switching circuit includes a fortieth resistor, a fortieth first resistor, a fortieth second resistor, a first triode, and an MOS transistor, one end of the fortieth resistor is connected to the output terminal of the single chip microcomputer, the other end of the fortieth resistor is connected to one end of the fortieth first resistor and the base of the first triode, the other end of the fortieth resistor is grounded, the emitter of the first triode is grounded, the collector of the first triode is connected to one end of the fortieth second resistor and the gate of the MOS transistor, the other end of the fortieth second resistor is connected to the source of the MOS transistor, and the drain of the MOS transistor is connected to the negative electrode of the second diode.
6. The power supply self-locking circuit as claimed in claim 5, wherein the first triode is S9013LT1, and the MOS transistor is IRLML6402 GPBF.
7. The power supply self-locking circuit according to claim 5, wherein the charge detection circuit includes a forty-th diode, a forty-third resistor, a forty-fourth resistor, a forty-first capacitor and a second triode, an anode of the forty-fourth diode is connected to the input terminal of the single chip, a cathode of the forty-fourth diode is connected to one end of the forty-third resistor and one end of the forty-fourth resistor, respectively, the other end of the forty-third resistor is connected to the output terminal of the power supply, the other end of the forty-fourth resistor is connected to one end of the forty-first capacitor and a base of the second triode, respectively, the other end of the forty-first capacitor is grounded, an emitter of the second triode is grounded, and a collector of the second triode is connected to the gate of the MOS transistor.
8. The power supply self-locking circuit as claimed in claim 7, wherein the type of the fortieth diode is 1N5819, and the type of the second triode is S9013LT 1.
9. A power supply self-locking circuit as claimed in any one of claims 1 to 8, wherein the single chip microcomputer is of the type STM32F103C 8.
10. A printer comprising a power supply self-locking circuit as claimed in any one of claims 1 to 9.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201921601073.0U CN210404789U (en) | 2019-09-25 | 2019-09-25 | Power self-locking circuit and printer with same |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201921601073.0U CN210404789U (en) | 2019-09-25 | 2019-09-25 | Power self-locking circuit and printer with same |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN210404789U true CN210404789U (en) | 2020-04-24 |
Family
ID=70342193
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201921601073.0U Active CN210404789U (en) | 2019-09-25 | 2019-09-25 | Power self-locking circuit and printer with same |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN210404789U (en) |
-
2019
- 2019-09-25 CN CN201921601073.0U patent/CN210404789U/en active Active
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN205787042U (en) | Battery power detection circuit and battery power detection system | |
| CN101576767B (en) | Main board power supply circuit | |
| CN107979363A (en) | Switching on and switching off circuit and electronic equipment | |
| CN103338029A (en) | Automatic reset device | |
| CN110098661B (en) | Power supply switching circuit and household appliance | |
| CN106786834B (en) | Control circuit of bluetooth equipment | |
| CN202353536U (en) | Time adjustable switching circuit | |
| CN204290714U (en) | Power control circuit and electrical equipment | |
| CN203387480U (en) | Automatic reset device | |
| CN213027985U (en) | One-key switching circuit | |
| CN210404789U (en) | Power self-locking circuit and printer with same | |
| CN210780130U (en) | Power-off control circuit | |
| CN212992000U (en) | Battery power supply control circuit | |
| CN102736524B (en) | Power switch | |
| CN210297317U (en) | Discrete component dual power supply switching circuit and electronic equipment | |
| CN222073142U (en) | Interface multiplexing circuit | |
| CN203813867U (en) | Reset circuit and TV | |
| CN210927592U (en) | Startup and shutdown circuit | |
| CN214474527U (en) | Startup and shutdown circuit with hardware forced shutdown function | |
| CN113691116B (en) | Power supply controller start control system | |
| CN213780904U (en) | Power supply switching system | |
| CN214174876U (en) | Single-key startup and shutdown circuit | |
| CN111030258B (en) | Three-way power switching circuits, devices and electronic equipment | |
| CN205071002U (en) | Light module power supply circuit and communications facilities | |
| CN220732406U (en) | Low-loss charging control circuit |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| GR01 | Patent grant | ||
| GR01 | Patent grant |