Printer bin cover opening and closing detection circuit
By using Hall effect sensors and magnets for non-contact sensing technology, the problem of poor contact caused by wear and environmental factors in mechanical switches has been solved, achieving higher detection accuracy and equipment stability, reducing maintenance costs, and improving user experience.
Patent Information
- Application Number
- CN202423244213.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-27
- Publication Date
- 2025-11-11
- Estimated Expiration
- 2034-12-27
AI Technical Summary
Mechanical switches in printers may experience poor contact due to wear and environmental factors, affecting the stability and reliability of the equipment.
It adopts non-contact sensing technology using Hall effect sensors and magnets to determine the open or closed state of the paper compartment cover through magnetic signals, replacing mechanical switches.
It improves the detection accuracy and stability of the equipment, extends its service life, reduces maintenance costs, and enhances the user experience.
Smart Images

Figure CN223533230U_ABST
Abstract
Description
Technical Field
[0001] This utility model relates to the field of detection circuit technology, specifically to a printer compartment cover opening and closing detection circuit. Background Technology
[0002] In printers and other electronic devices with printers, the opening and closing of the paper tray cover is usually determined by the on / off state of a mechanical switch. This mechanism works relatively simply and directly: when the paper tray cover is closed, the two contacts of the mechanical switch are in close contact, forming a circuit, and the device determines that the paper tray cover is closed; when the paper tray cover is opened, the two contacts of the mechanical switch separate, breaking the circuit, and the device determines that the paper tray cover is open.
[0003] As a key component for detecting the status of the paper tray cover, the performance of mechanical switches directly affects the stability and reliability of the equipment. However, in actual use, mechanical switches have some problems, the most prominent of which is the wear of the contact points. During long-term use, the contact points of mechanical switches will wear down due to the large amount of current flowing through them, leading to poor contact. Mechanical switches are also susceptible to environmental factors such as excessive temperature and humidity, which can cause oxidation and rust on the contact point surface, further aggravating wear. Utility Model Content
[0004] In view of this, the main objective of this utility model is to provide a printer compartment cover opening and closing detection circuit.
[0005] To achieve the above objectives, the technical solution of this utility model is implemented as follows:
[0006] This utility model embodiment provides a printer tray cover opening and closing detection circuit, including a paper tray, a tray cover, a magnet, a Hall sensor circuit, a microprocessor, a display circuit, a button circuit, an audio playback circuit, and a battery. The magnet is disposed on the tray cover, and the Hall sensor circuit is disposed on the paper tray. The Hall sensor circuit receives the magnetic induction generated by the magnet and transmits the magnetic induction signal to the microprocessor. The microprocessor sends a display signal and an audio signal to the display circuit and the audio playback circuit respectively based on the magnetic induction signal. The signal output terminal of the button circuit is connected to the signal input terminal of the microprocessor for controlling the microprocessor. The battery powers the Hall sensor circuit, the microprocessor, the display circuit, and the audio playback circuit.
[0007] In the above scheme, the Hall sensor circuit includes a Hall sensor, a 35th resistor, and a 97th capacitor. The VDD terminal of the Hall sensor is connected to the first terminal of the 97th capacitor and the first terminal of the 35th resistor and then grounded. The second terminal of the 97th capacitor is grounded. The second terminal of the 35th resistor is connected to the OUT terminal of the Hall sensor and the P0_10 terminal of the microprocessor.
[0008] In the above scheme, the display circuit includes a display, a fourteenth resistor, and a fifteenth resistor. The D7 terminal of the display is connected to the first terminal of the fifteenth resistor and the P0_27 terminal of the microprocessor. The D6 terminal of the display is connected to the first terminal of the fourteenth resistor and the P0_28 / AI N4 terminal of the microprocessor. The second terminal of the fourteenth resistor is connected to the first terminal of the fifteenth resistor and the power input terminal of the battery. The AO terminal of the display is connected to the P0_29 / AI N5 terminal of the microprocessor. The REST terminal of the display is connected to the P0_03 / AI N1 terminal of the microprocessor. The CSB terminal of the display is connected to the P0_09 terminal of the microprocessor.
[0009] In the above scheme, the audio playback circuit includes a speaker, a voice controller, a fifteenth capacitor, a sixteenth capacitor, a fourth inductor, and a fifth inductor. The first end of the speaker is connected to the first end of the fourth inductor and the first end of the sixteenth capacitor, respectively. The second end of the fourth inductor is connected to the VOP terminal of the voice controller. The second end of the speaker is connected to the first end of the fifth inductor and the first end of the fifteenth capacitor, respectively. The second end of the fifth inductor is connected to the VON terminal of the voice controller. The CTRL terminal of the voice controller is connected to the P0_07 terminal of the microprocessor. The LRCLK terminal of the voice controller is connected to the P0_30 / AI N6 terminal of the microprocessor. The BCLK terminal of the voice controller is connected to the P0_31 / AI N7 terminal of the microprocessor. The SDATA terminal of the voice controller is connected to the P0_16 terminal of the microprocessor.
[0010] In the above scheme, the button circuit includes a switch, the first end of the switch is connected to the fourth end and the third end of the switch and then grounded, and the second end of the switch is connected to the P0_11 terminal of the microprocessor.
[0011] Compared with the prior art, the beneficial effects of this utility model are as follows:
[0012] This invention utilizes a non-contact sensor technology combining a Hall sensor and a magnet. By observing the change in signal between the Hall sensor and the magnet, the open or closed state of the paper cover can be indirectly determined. This effectively avoids the problem of friction caused by mechanical opening and closing, while also improving the detection accuracy, stability, and service life of the equipment, reducing maintenance costs, and enhancing user experience and equipment reliability. Attached Figure Description
[0013] The accompanying drawings, which are included to provide a further understanding of the present invention and form part of this invention, illustrate exemplary embodiments of the present invention and, together with their description, serve to explain the present invention and do not constitute an undue limitation thereof. In the drawings:
[0014] Figure 1 This is a schematic diagram of the printer described in an embodiment of the present utility model;
[0015] Figure 2 This is a schematic diagram of the structure of a printer compartment cover opening and closing detection circuit according to an embodiment of the present utility model;
[0016] Figure 3 This is a schematic diagram of the microprocessor structure in a printer compartment cover opening and closing detection circuit according to an embodiment of the present invention;
[0017] Figure 4 This is a schematic diagram of the Hall sensor circuit in a printer compartment cover opening and closing detection circuit according to an embodiment of the present invention;
[0018] Figure 5 This is a schematic diagram of the display circuit in a printer compartment cover opening and closing detection circuit according to an embodiment of the present invention;
[0019] Figure 6 This is a schematic diagram of the audio playback circuit in a printer compartment cover opening and closing detection circuit according to an embodiment of the present invention;
[0020] Figure 7 This is a schematic diagram of the key circuit in a printer compartment cover opening / closing detection circuit according to an embodiment of the present invention. Detailed Implementation
[0021] To make the objectives, technical solutions, and advantages of this utility model clearer, the present utility model 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 merely illustrative of the present utility model and are not intended to limit the present utility model.
[0022] In the accompanying drawings of this embodiment, the same or similar reference numerals correspond to the same or similar components. In the description of this utility model, it should be understood that the terms "first", "second", "third", etc. are only for the convenience of distinguishing and describing the same components, and do not indicate or imply the number of the components referred to. They should not be construed as limitations on this patent. For those skilled in the art, the specific meaning of the above terms can be understood according to the specific circumstances.
[0023] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, article, or apparatus that includes that element.
[0024] This utility model embodiment provides a printer tray cover opening and closing detection circuit, such as... Figure 1-7 As shown, the device includes a paper tray 2, a cover 1, a magnet 4, a Hall sensor circuit, a microprocessor U1, a display circuit, a button circuit, an audio playback circuit, and a battery 3. The magnet 4 is disposed on the cover 1, and the Hall sensor circuit is disposed on the paper tray 2. The Hall sensor circuit receives the magnetic field generated by the magnet 4 and transmits the magnetic field signal to the microprocessor U1. The microprocessor U1 sends display signals and voice signals to the display circuit and the audio playback circuit respectively based on the magnetic field signal. The signal output terminal of the button circuit is connected to the signal input terminal of the microprocessor U1 and is used to control the microprocessor U1. The battery 3 is used to power the Hall sensor circuit, the microprocessor U1, the display circuit, and the audio playback circuit.
[0025] like Figure 1-4 As shown, the Hall sensor circuit includes a Hall sensor U16, a 35th resistor R35, and a 97th capacitor C97. The VDD terminal of the Hall sensor U16 is connected to the first terminal of the 97th capacitor C97 and the first terminal of the 35th resistor R35 and then grounded. The second terminal of the 97th capacitor C97 is grounded. The second terminal of the 35th resistor R35 is connected to the OUT terminal of the Hall sensor U16 and the P0_10 terminal of the microprocessor U1.
[0026] like Figure 1 , Figure 2 , Figure 3 and Figure 5As shown, the display circuit includes a display J1, a fourteenth resistor R14, and a fifteenth resistor R15. The D7 terminal of the display J1 is connected to the first terminal of the fifteenth resistor R15 and the P0_27 terminal of the microprocessor U1. The D6 terminal of the display is connected to the first terminal of the fourteenth resistor R14 and the P0_28 / AIN4 terminal of the microprocessor U1. The second terminal of the fourteenth resistor R14 is connected to the first terminal of the fifteenth resistor R15 and the power input terminal VDD of the battery 3. The AO terminal of the display is connected to the P0_29 / AIN5 terminal of the microprocessor U1. The REST terminal of the display is connected to the P0_03 / AIN1 terminal of the microprocessor U1. The CSB terminal of the display is connected to the P0_09 terminal of the microprocessor U1.
[0027] like Figure 1 , Figure 2 , Figure 3 and Figure 6 As shown, the audio playback circuit includes a speaker SP1, a voice controller U2, a fifteenth capacitor C15, a sixteenth capacitor C16, a fourth inductor L4, and a fifth inductor L5. The first terminal of the speaker SP1 is connected to the first terminal of the fourth inductor L4 and the first terminal of the sixteenth capacitor C16. The second terminal of the fourth inductor L4 is connected to the VOP terminal of the voice controller U2. The second terminal of the speaker SP1 is connected to the first terminal of the fifth inductor L5 and the first terminal of the fifteenth capacitor C15. The second terminal of the fifth inductor L5 is connected to the VON terminal of the voice controller U2. The CTRL terminal of the voice controller U2 is connected to the P0_07 terminal of the microprocessor U1. The LRCLK terminal of the voice controller U2 is connected to the P0_30 / AIN6 terminal of the microprocessor U1. The BCLK terminal of the voice controller U2 is connected to the P0_31 / AIN7 terminal of the microprocessor U1. The SDATA terminal of the voice controller U1 is connected to the P0_16 terminal of the microprocessor U1.
[0028] like Figure 1 , Figure 2 , Figure 3 and Figure 7 As shown, the button circuit includes a switch S1. The first end of the switch S1 is connected to the fourth end and the third end of the switch S1 and then grounded. The second end of the switch S1 is connected to the P0_11 terminal of the microprocessor U1.
[0029] The working principle of this utility model is as follows:
[0030] like Figure 1-7As shown, when the cover 1 is in the closed state, the magnetic field generated by the magnet 4 on the cover 1 is effectively received by the Hall sensor U16 on the paper tray of the printer. After receiving the magnetic field signal, the Hall sensor U16 changes the level of its output terminal OUT from low to high. The microprocessor U1 monitors the level change of its input terminal P0_10. When it detects that the output terminal OUT has changed from low to high, the microprocessor U1 controls the display J1 to display the message "Printer door is closed" and simultaneously triggers the speaker SP1 to emit a prompt sound: "Printer door is safely closed".
[0031] Conversely, when the printer compartment door 1 is opened, the magnetic field generated by the magnet 4 on the door is no longer received by the Hall sensor U16 on the printer device. At this time, the output terminal OUT of the Hall sensor U16 changes from high to low. When the microprocessor U1 detects that the level of its input terminal P0_10 has changed from high to low, it immediately controls the display J1 to display the corresponding information (such as "Printer compartment door is open") and triggers the speaker SP1 to emit a prompt sound to remind the user to pay attention to the status of the printer compartment door.
[0032] Through the above mechanism, the printer can accurately and in real time detect the status of the paper tray cover and provide intuitive feedback to the user through the display J1 and speaker SP1, ensuring the safety and smooth progress of printing operations.
[0033] The above description is merely a preferred embodiment of the present utility model and is not intended to limit the scope of protection of the present utility model.
Claims
1. A printer compartment cover opening / closing detection circuit, characterized in that, The device includes a paper tray, a cover, a magnet, a Hall sensor circuit, a microprocessor, a display circuit, a button circuit, an audio playback circuit, and a battery. The magnet is mounted on the cover, and the Hall sensor circuit is mounted on the paper tray. The Hall sensor circuit receives the magnetic field generated by the magnet and transmits the magnetic field signal to the microprocessor. The microprocessor sends display signals and audio signals to the display circuit and the audio playback circuit, respectively, based on the magnetic field signal. The signal output terminal of the button circuit is connected to the signal input terminal of the microprocessor for controlling the microprocessor. The battery powers the Hall sensor circuit, the microprocessor, the display circuit, and the audio playback circuit.
2. The printer compartment cover opening and closing detection circuit according to claim 1, characterized in that, The Hall sensor circuit includes a Hall sensor, a 35th resistor, and a 97th capacitor. The VDD terminal of the Hall sensor is connected to the first terminal of the 97th capacitor and the first terminal of the 35th resistor, respectively, and then grounded. The second terminal of the 97th capacitor is grounded. The second terminal of the 35th resistor is connected to the OUT terminal of the Hall sensor and the P0_10 terminal of the microprocessor, respectively.
3. The printer compartment cover opening and closing detection circuit according to claim 2, characterized in that, The display circuit includes a display, a fourteenth resistor, and a fifteenth resistor. The D7 terminal of the display is connected to the first terminal of the fifteenth resistor and the P0_27 terminal of the microprocessor. The D6 terminal of the display is connected to the first terminal of the fourteenth resistor and the P0_28 / AIN4 terminal of the microprocessor. The second terminal of the fourteenth resistor is connected to the first terminal of the fifteenth resistor and the power input terminal of the battery. The AO terminal of the display is connected to the P0_29 / AIN5 terminal of the microprocessor. The REST terminal of the display is connected to the P0_03 / AIN1 terminal of the microprocessor. The CSB terminal of the display is connected to the P0_09 terminal of the microprocessor.
4. The printer compartment cover opening and closing detection circuit according to claim 3, characterized in that, The audio playback circuit includes a speaker, a voice controller, a fifteenth capacitor, a sixteenth capacitor, a fourth inductor, and a fifth inductor. The first end of the speaker is connected to the first end of the fourth inductor and the first end of the sixteenth capacitor. The second end of the fourth inductor is connected to the VOP terminal of the voice controller. The second end of the speaker is connected to the first end of the fifth inductor and the first end of the fifteenth capacitor. The second end of the fifth inductor is connected to the VON terminal of the voice controller. The CTRL terminal of the voice controller is connected to the P0_07 terminal of the microprocessor. The LRCLK terminal of the voice controller is connected to the P0_30 / AIN6 terminal of the microprocessor. The BCLK terminal of the voice controller is connected to the P0_31 / AIN7 terminal of the microprocessor. The SDATA terminal of the voice controller is connected to the P0_16 terminal of the microprocessor.
5. A printer compartment cover opening / closing detection circuit according to claim 4, characterized in that, The button circuit includes a switch. The first end of the switch is connected to the fourth end and the third end of the switch and then grounded. The second end of the switch is connected to the P0_11 terminal of the microprocessor.