A firearm fault detection and ammunition counting device

By designing firearm fault detection and ammunition counting devices, using photoelectric sensors to monitor the warhead and shell, and detect firearm faults in real time, solving the problem of traditional troubleshooting that cannot be detected, and improving training safety and management efficiency.

CN111854520BInactive Publication Date: 2024-11-26CHINESE PEOPLES ARMED POLICE FORCE POLICE COLLEGE
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010790039.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-08-07
Publication Date
2024-11-26
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Traditional firearm troubleshooting methods cannot detect possible faults in firearms during training, resulting in insufficient safety.

Method used

Design a firearm fault detection and ammunition counting device, including bullet condition monitoring module, key module, main control module, alarm module, indication module, display module and power module, monitor the warhead and shell through photoelectric sensors, and according to the counting value Determine whether there is a jam or continuous failure, and output the fault prompt information in real time.

Benefits of technology

Real-time detection of gun failures during training is realized, the safety of the shooting training process is enhanced, and management efficiency is improved through multiple training modes and data sharing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111854520B_ABST
    Figure CN111854520B_ABST
Patent Text Reader

Abstract

The invention discloses a firearm fault detection and ammunition counting device, which relates to the technical field of firearm safety management, solves the problem that traditional firearm fault troubleshooting cannot detect possible firearm faults during training, and the key points of the technical solution are: comprising a bullet status monitoring module, a button module, a main control module, an alarm module, an indication module, a display module and a power module; the output end of the bullet status monitoring module and the button module are connected to the input end of the main control module, and the output end of the main control module is connected to the input end of the alarm module, the indication module and the display module. Through the photoelectric sensor U6 arranged at the bullet outlet of the firearm body and the photoelectric sensor U3 arranged at the bullet ejection port of the firearm body, the cartridge case and the bullet are counted and displayed respectively after the trigger is pulled, and it is judged whether there is a jamming or continuous firing fault according to the count values ​​of the cartridge case, the bullet and the trigger, and the fault prompt information is output, so that the fault of the firearm during training can be detected in real time.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of firearm safety management, and more particularly to a firearm fault detection and ammunition counting device. Background Art

[0002] In order to effectively strengthen the management of soldiers' military training, ensure the quality of training, and prevent accidents, the troops will conduct a firearm fault check before organizing live-fire training. During the check, visual inspection or manual inspection of mechanical parts are often used to determine the quality of training firearms. However, this supervision method is not perfect and cannot detect possible firearm faults during training. Summary of the invention

[0003] In order to solve the problem that traditional firearm fault troubleshooting cannot detect possible firearm faults during training, the purpose of the present invention is to provide a firearm fault detection and ammunition counting device.

[0004] The above technical objectives of the present invention are achieved through the following technical solutions: a firearm fault detection and ammunition counting device, comprising a bullet status monitoring module, a button module, a main control module, an alarm module, an indication module, a display module and a power module; the output ends of the bullet status monitoring module and the button module are connected to the input end of the main control module, and the output end of the main control module is connected to the input end of the alarm module, the indication module and the display module;

[0005] The bullet status monitoring module is used to track and monitor the trajectory of the bullet and cartridge case;

[0006] Button module, used to control shooting simulation, single / continuous switching and reset;

[0007] The main control module is used to receive and process the input monitoring signals and control signals, and generate control commands to control the alarm module, display module, and indication module to work in a preset logical sequence according to the processing results;

[0008] An alarm module is used to output fault prompt information when a gun jams or fails to fire continuously;

[0009] An indication module, used to output single-shot indication information and continuous-shot indication information of a firearm;

[0010] The display module is used to display the number of bullets and shells flying out of the gun.

[0011] The power module is used to provide working power to each module.

[0012] Preferably, the bullet status monitoring module includes a bullet monitoring circuit, a cartridge case monitoring circuit, a voltage comparator U2B and a voltage comparator U2A;

[0013] The bullet monitoring circuit includes a photoelectric sensor U3, a resistor R6, and a resistor R7. The photoelectric sensor U3 is arranged at the ejection port of the firearm body; the positive electrode A of the infrared transmitting tube of the photoelectric sensor U3 is connected to the power supply end through the resistor R6, and the negative electrode K of the infrared transmitting tube is grounded; the positive electrode C of the infrared receiving tube of the photoelectric sensor U3 is connected to the Pin3 pin of the voltage comparator U2B and is connected to the power supply end through the resistor R7, and the negative electrode E of the infrared receiving tube is grounded;

[0014] The cartridge case monitoring circuit includes a photoelectric sensor U6, a resistor R10, and a resistor R11. The photoelectric sensor U6 is arranged at the bullet outlet of the firearm body; the positive electrode A of the infrared transmitting tube of the photoelectric sensor U6 is connected to the power supply end through the resistor R10, and the negative electrode K of the infrared transmitting tube is grounded; the positive electrode C of the infrared receiving tube of the photoelectric sensor U6 is connected to the Pin5 pin of the voltage comparator U2A and is connected to the power supply end through the resistor R11, and the negative electrode E of the infrared receiving tube is grounded;

[0015] The Pin2 pin of the voltage comparator U2A is connected to the Pin6 pin of the voltage comparator U2B and then connected to the reference voltage value point of the potentiometer R8; the Pin1 pin of the voltage comparator U2A is connected to the P3.2 pin of the main control module; the Pin7 pin of the voltage comparator U2B is connected to the P3.3 pin of the main control module.

[0016] Preferably, the button module includes a switching switch S1, a reset button S3 and a trigger button S4; one end of the reset button S3 and the trigger button S4 are respectively connected to the P3.5 pin and the P3.6 pin of the main control module, and the other ends are connected to the power ground terminal; the two contacts of the switching switch S1 are respectively connected to the power supply terminal and the ground terminal, and the other end is connected to the P3.4 pin of the main control module.

[0017] Preferably, the main control module includes a main control chip, a reset circuit and a crystal oscillator circuit;

[0018] The reset circuit includes a button S1, a capacitor C1, and a resistor R1; after the button S1 is connected in parallel with the capacitor C1, one end is connected to the 5V DC voltage terminal, and the other end is connected to the RST pin of the main control chip and grounded through the resistor R1;

[0019] The crystal oscillator circuit includes capacitor C2, capacitor C3, and crystal oscillator Y1; the two output ends of crystal oscillator Y1 are respectively connected to the XTAL1 pin and XTAL2 pin of the main control chip, capacitor C2 and capacitor C3 are connected in series and then connected in parallel with crystal oscillator Y1, and the connection point between capacitor C2 and capacitor C3 is grounded.

[0020] Preferably, the alarm module includes a buzzer B1, a transistor Q1, and a resistor R4; the base of the transistor Q1 is connected to the P3.7 pin of the main control module through the resistor R4, the emitter is connected to a 5V DC voltage, and the collector is connected to the buzzer B1.

[0021] Preferably, the indication module includes a single-shot monitoring indicator light D1, a continuous-shot monitoring indicator light D2, a resistor R2 and a resistor R3; after the single-shot monitoring indicator light D1 is connected in series with the resistor R2, one end is connected to a 5V DC voltage, and the other end is connected to the P1.6 pin of the main control module; after the continuous-shot monitoring indicator light D2 is connected in series with the resistor R3, one end is connected to a 5V DC voltage, and the other end is connected to the P1.7 pin of the main control module.

[0022] Preferably, the display module includes directly cascaded digital tubes DPY1 and DPY1, and the input ends of the digital tubes DPY1 and DPY1 are both connected to the output end of the main control module.

[0023] Preferably, the power module includes a power switch K1, a capacitor C4, a capacitor C5, an LM7805 transformer chip, an LM1117 transformer chip, a capacitor C6, and a capacitor C7, and the power switch K1 is arranged in the input line; the 12V external voltage is input to the LM7805 transformer chip after voltage stabilization and filtering by capacitors C4 and C5, and the LM7805 transformer chip steps down the 12V external voltage and converts it into a 5V DC voltage output, and the LM1117 transformer chip steps down the 5V DC voltage and converts it into a 3.3V DC voltage output.

[0024] Preferably, the device includes a training end and an instructor end, and the training end and the instructor end are connected via a communication module to achieve data sharing.

[0025] Preferably, the training end is equipped with a bullet status monitoring module, a button module, a main control module, an alarm module, an indication module, a display module, a power module and a communication module; the instructor end is equipped with a main control module, an alarm module, a power module and a communication module.

[0026] Compared with the prior art, the present invention has the following beneficial effects: the present invention counts and displays the cartridge cases and bullets after the trigger is pulled respectively through the photoelectric sensor U6 arranged at the bullet outlet of the firearm body and the photoelectric sensor U3 arranged at the bullet ejection port of the firearm body, and judges whether there is a jam or continuous firing fault according to the count values ​​of the cartridge cases, bullets and trigger, and outputs the fault prompt information, so as to detect the faults of the firearms during training in real time, thereby enhancing the safety during shooting training; by adjusting the shooting simulation, single / continuous switching and resetting through the buttons, the fault detection of various training modes can be met, thereby enhancing the applicability of the fault detection and counting device; by sharing data between the training end and the coaching end, one-to-many real-time management can be realized, thereby improving the efficiency of training management. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] The drawings described herein are used to provide a further understanding of the embodiments of the present invention, constitute a part of this application, and do not constitute a limitation of the embodiments of the present invention. In the drawings:

[0028] Figure 1 is a schematic diagram of the overall structure of an embodiment of the present invention;

[0029] Figure 2 is a functional block diagram of a training terminal in an embodiment of the present invention;

[0030] Figure 3 is a functional block diagram of the instructor end in an embodiment of the present invention;

[0031] Figure 4 is a diagram of the overall working principle in an embodiment of the present invention;

[0032] Figure 5 is a working principle diagram of a bullet status monitoring module in an embodiment of the present invention;

[0033] Figure 6 is a working principle diagram of the key module in an embodiment of the present invention;

[0034] Figure 7 is a working principle diagram of the main control module in an embodiment of the present invention;

[0035] Figure 8 is a working principle diagram of the alarm module in an embodiment of the present invention;

[0036] Fig. 9 is a working principle diagram of the indication module in an embodiment of the present invention;

[0037] Fig.10 is a working principle diagram of a display module in an embodiment of the present invention;

[0038] Fig.11 Schematic diagram of the working principle of the power module in the embodiment of the present invention. DETAILED DESCRIPTION

[0039] In order to make the purpose, technical scheme and advantages of the present invention more clearly understood, the following is a summary of the present invention with reference to the embodiments and the accompanying drawings. Figure 1-11 , the present invention is further described in detail. The exemplary embodiments of the present invention and their description are only used to explain the present invention and are not intended to limit the present invention.

[0040] Embodiment: A firearm fault detection and ammunition counting device, such as Figure 2 and Figure 4As shown, it includes a bullet status monitoring module, a button module, a main control module, an alarm module, an indication module, a display module and a power module. The output ends of the bullet status monitoring module and the button module are connected to the input end of the main control module, and the output end of the main control module is connected to the input end of the alarm module, the indication module and the display module. The bullet status monitoring module is used to track and monitor the trajectory of the bullet and the shell. The button module is used to control the shooting simulation, single / continuous switching and reset. The main control module is used to receive and process the input monitoring signal and control signal, and generate control commands to control the alarm module, display module and indication module to work in a preset logical sequence according to the processing results. The alarm module is used to output fault prompt information when the firearm has a jam or continuous firing fault. The indication module is used to output the single-shot indication information and continuous firing indication information of the firearm. The display module is used to display the number of bullets and shells flying out of the firearm. The power module is used to provide working power to each module.

[0041] like Figure 1 , 4 As shown in Figure 5, the bullet status monitoring module includes a bullet monitoring circuit, a cartridge case monitoring circuit, a voltage comparator U2B and a voltage comparator U2A.

[0042] The bullet monitoring circuit includes a photoelectric sensor U3, a resistor R6, and a resistor R7. The photoelectric sensor U3 is arranged at the ejection port of the firearm body. The positive electrode A of the infrared transmitting tube of the photoelectric sensor U3 is connected to the power supply end through the resistor R6, and the negative electrode K of the infrared transmitting tube is grounded. The positive electrode C of the infrared receiving tube of the photoelectric sensor U3 is connected to the Pin3 pin of the voltage comparator U2B and to the power supply end through the resistor R7, and the negative electrode E of the infrared receiving tube is grounded.

[0043] The shell monitoring circuit includes a photoelectric sensor U6, a resistor R10, and a resistor R11. The photoelectric sensor U6 is arranged at the ejection port of the firearm body; the positive electrode A of the infrared transmitting tube of the photoelectric sensor U6 is connected to the power supply end through the resistor R10, and the negative electrode K of the infrared transmitting tube is grounded; the positive electrode C of the infrared receiving tube of the photoelectric sensor U6 is connected to the Pin5 pin of the voltage comparator U2A and to the power supply end through the resistor R11, and the negative electrode E of the infrared receiving tube is grounded. In this embodiment, the model of the photoelectric sensor U3 and the photoelectric sensor U6 is ST188. ST188 is a photoelectric sensor module composed of an infrared photodiode and a phototransistor. The module has 4 external pins, namely the positive electrode A of the infrared transmitting tube, the negative electrode K of the infrared transmitting tube, the positive electrode C of the infrared receiving tube, and the negative electrode E of the infrared receiving tube. The working power supply of the transmitting tube and the receiving tube is DC5V, and the effective monitoring distance is 4-13mm.

[0044] The Pin2 pin of the voltage comparator U2A is connected to the Pin6 pin of the voltage comparator U2B and then connected to the reference voltage value point of the potentiometer R8; the Pin1 pin of the voltage comparator U2A is connected to the P3.2 pin of the main control module; the Pin7 pin of the voltage comparator U2B is connected to the P3.3 pin of the main control module. The P3.2 and P3.3 pins output high-level signals to notify the main control chip whether there are bullets and shells flying out. In this embodiment, the voltage comparator U2B and the voltage comparator U2A are LM393.

[0045] When the bullet monitoring is working, the emitter of the photoelectric sensor U3 will automatically emit infrared rays. If no bullet is fired from the muzzle, the transmitting tube will receive infrared rays to turn on the C and E of the receiving tube. At this time, the input voltage of the Pin2 pin of the LM393 will be 0V, and the voltage of the Pin3 pin will be 2.5V (when the positioner is in the middle position). Since the voltage of the Pin3 pin is low and the voltage of the Pin2 pin is high, the Pin1 pin of the comparator will output 0V voltage, and the P3.2 pin of the microcontroller will output a low level. If a bullet is fired from the muzzle, the transmitting tube will receive infrared rays to turn off the C and E of the receiving tube. At this time, the input voltage of the Pin2 pin of the LM393 will be 5V, and the voltage of the Pin3 pin will be 2.5V. Since the voltage of the Pin3 pin is high and the voltage of the Pin2 pin is high, the Pin1 pin of the comparator will output a 5V voltage, and the P3.2 pin of the main control chip will output a 5V voltage. Therefore, by judging whether the P3.2 pin outputs a high-level signal, it can be determined whether a bullet flies out of the muzzle.

[0046] The working principle of the cartridge case monitoring circuit is similar to that of the bullet monitoring circuit. By judging whether the P3.3 pin has a high-level voltage output, it can be determined whether a cartridge case has flown out of the ejection port.

[0047] like Figure 4 and Figure 6 As shown, the key module includes a switch S1, a reset key S3 and a trigger key S4; one end of the reset key S3 and the trigger key S4 are respectively connected to the P3.5 pin and the P3.6 pin of the main control module, and the other ends are connected to the power ground terminal; the two contacts of the switch S1 are respectively connected to the power terminal and the ground terminal, and the other end is connected to the P3.4 pin of the main control module. When the key circuit is working, the main control chip reads the input status of the P3.4-P3.6 pins regularly. If the pin voltage is 0V, it means that the operator has pressed the corresponding key. For example, if the P3.6 pin becomes 0V, it means that the operator has pulled the trigger.

[0048] like Figure 4 and Figure 7As shown, the main control module includes a main control chip, a reset circuit and a crystal oscillator circuit. The reset circuit includes a button S1, a capacitor C1 and a resistor R1; after the button S1 is connected in parallel with the capacitor C1, one end is connected to the 5V DC voltage terminal, and the other end is connected to the RST pin of the main control chip and grounded through the resistor R1. The crystal oscillator circuit includes capacitor C2, capacitor C3 and crystal oscillator Y1; the two output ends of the crystal oscillator Y1 are respectively connected to the XTAL1 pin and the XTAL2 pin of the main control chip, and the capacitors C2 and C3 are connected in series and then connected in parallel with the crystal oscillator Y1, and the connection point between the capacitors C2 and C3 is grounded.

[0049] In the reset circuit, button S1 is used to receive the reset command. When both ends of button S1 are connected, the RST pin will be connected to 5V. When the connection time lasts for more than 10us, the main control chip will automatically enter the reset state. After button S1 is lifted, the reset operation ends. Capacitor C1 and resistor R1 realize the power-on reset function. The function of capacitor C1 in the circuit is similar to that of button S1. When the voltage across capacitor C1 is between 0-2.7V, it is equivalent to button S1 being in the connected state. When the voltage across capacitor C1 is higher than 2.7V, it is equivalent to button S1 being in the lifted state. The values ​​of capacitor C1 and resistor R1 determine the reset time. Usually, the capacitance value of capacitor C1 is 10uf, and the resistance value of resistor R1 is 10K.

[0050] In the crystal oscillator circuit, the function of crystal oscillator Y1 is to output the oscillation signal. After the output oscillation signal is divided by the internal trigger of the main control chip, the working clock of each part of the main control chip can be obtained. The load capacitor C2 / C3 plays the role of stabilizing and fine-tuning the output frequency of the crystal oscillator in the circuit. Usually, the crystal oscillator Y1 is selected as 11.0592M, and the load capacitor is selected between 20 and 30pf.

[0051] In this embodiment, the model of the main control chip is STC89C52RC. STC89C52RC is a high-performance domestic single-chip computer, and its main functional characteristics are: rated working voltage 5V, current 8mA, working main frequency range 0-33Mhz; there are 4 groups of 32 general control pins, which are packaged on P0, P1, P2 and P3 ports; the chip integrates 8K bytes of program memory and 512B bytes of RAM; the chip integrates 2 timers, 1 serial data communication port, 2 external interrupt detection pins and 2 pulse signal counting pins; it has a crystal oscillator and reset expansion interface, and the expansion pins are XTAL1 / XTAL2 and RST pins.

[0052] like Figure 4 and Figure 8As shown, the alarm module includes a buzzer B1, a transistor Q1, and a resistor R4; the base of the transistor Q1 is connected to the P3.7 pin of the main control module through the resistor R4, the emitter is connected to a 5V DC voltage, and the collector is connected to the buzzer B1. In the alarm circuit, if it is necessary to output fault prompt information, the main control chip only needs to control the P3.7 pin to output a low level, so that the power supply of the buzzer B1 and 5V can be connected, so that the buzzer B1 enters the working state and outputs the fault information of the gun. If it is necessary to prohibit the output of fault prompt information, the main control chip only needs to control the P3.7 pin to output a high level, so that the power supply of the buzzer B1 and 5V can be disconnected, so that the buzzer B1 stops working and no longer outputs fault prompt information.

[0053] like Figure 4 and Fig. 9 As shown, the indication module includes a single-shot monitoring indicator light D1, a continuous-shot monitoring indicator light D2, a resistor R2 and a resistor R3; after the single-shot monitoring indicator light D1 is connected in series with the resistor R2, one end is connected to a 5V DC voltage, and the other end is connected to the P1.6 pin of the main control module; after the continuous-shot monitoring indicator light D2 is connected in series with the resistor R3, one end is connected to a 5V DC voltage, and the other end is connected to the P1.7 pin of the main control module. In the indication circuit, if it is necessary to output single-shot indication information, the main control chip only needs to control the P1.6 pin to output a low level, so as to control the single-shot monitoring indicator light D1 to light up and output the single-shot monitoring prompt information. If it is necessary to output continuous-shot indication information, the main control chip only needs to control the P1.7 pin to output a low level, so as to control the continuous-shot monitoring indicator light D2 to light up and output the continuous-shot monitoring prompt information.

[0054] like Figure 4 and Fig.10 As shown, the display module includes directly cascaded digital tubes DPY1 and DPY1, and the input ends of the digital tubes DPY1 and DPY1 are both connected to the output end of the main control module.

[0055] The display circuit is designed based on two 2-bit 8-segment common cathode digital tubes. The four digital tubes in this part of the circuit are used to display the number of bullets and shells flying out during training. In the display circuit, the segment selection pins A-DP of the two 8-digit digital tubes are connected together and sequentially connected to the pins of the P0 port of the main control chip. The control pins A1 and A2 of the digital tube DPY1 are connected to the P1.0 (DIG1) pin and P1.1 (DIG2) pin of the main control chip respectively. The control pins A1 and A2 of the digital tube DPY2 are connected to the P1.3 (DIG3) pin and P1.4 (DIG2) pin of the main control chip respectively.

[0056] In the display circuit, DPY1 is used to display the number of bullets flying out during training, and DPY2 is used to display the number of shells flying out during training. When the circuit is working, the function of the A-DP pins of the digital tube is to receive the font data input by the main control chip and light up the corresponding segments according to the data. The DIG1-DIG4 pins are used to control which digital tube performs the display operation. For example, when data 1 needs to be displayed on the digital tube of DIG1, ​​first output a low level at the P1.0 pin, so that the display of the digital tube controlled by DIG1 is turned on, and then output a high level at the P0.1 and 0.2 pins, and the other pins of the P0 port output a low level. At this time, the b and c segments of the digital tube will be lit, and the font of the number "1" can be automatically displayed on the digital tube.

[0057] like Figure 4 and Fig.11 As shown, the power module includes a power switch K1, a capacitor C4, a capacitor C5, an LM7805 transformer chip, an LM1117 transformer chip, a capacitor C6, and a capacitor C7. The power switch K1 is arranged in the input line; the 12V external voltage is input to the LM7805 transformer chip after being stabilized and filtered by the capacitors C4 and C5. The LM7805 transformer chip steps down the 12V external voltage and converts it into a 5V DC voltage output. The LM1117 transformer chip steps down the 5V DC voltage and converts it into a 3.3V DC voltage output.

[0058] like Figure 2 Figure 3 As shown, the device includes a training end and an instructor end, and the training end and the instructor end are connected through a communication module to realize data sharing. The training end is equipped with a bullet status monitoring module, a button module, a main control module, an alarm module, an indication module, a display module, a power module and a communication module; the instructor end is equipped with a main control module, an alarm module, a power module and a communication module. When the instructor end is working, the nRF24L01 wireless is used to establish communication with the gun end. When receiving the fault prompt information sent by the training end, the buzzer will output a fault prompt sound to notify the instructor that the gun currently used has a mechanical fault.

[0059] Working principle: The photoelectric sensor U6 arranged at the bullet outlet of the gun body and the photoelectric sensor U3 arranged at the ejection port of the gun body are used to count and display the cartridge cases and bullets after the trigger is pulled, and the counting values ​​of the cartridge cases, bullets and trigger are used to determine whether there is a jam or continuous firing failure, and the fault prompt information is output. It can detect the failure of the gun during training in real time, thereby enhancing the safety during shooting training.

[0060] The above specific implementation methods further illustrate the objectives, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above are only specific implementation methods of the present invention and are not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.

Claims

1. A firearm fault detection and ammunition counting device, characterized in that: It includes a bullet status monitoring module, a button module, a main control module, an alarm module, an indication module, a display module and a power module; the output end of the bullet status monitoring module and the button module is connected to the input end of the main control module, and the output end of the main control module is connected to the input end of the alarm module, the indication module and the display module; The bullet status monitoring module is used to track and monitor the trajectory of the bullet and cartridge case; Button module, used to control shooting simulation, single / continuous switching and reset; The main control module is used to receive and process the input monitoring signals and control signals, and generate control commands to control the alarm module, display module, and indication module to work in a preset logical sequence according to the processing results; An alarm module is used to output fault prompt information when a gun jams or fails to fire continuously; An indication module, used to output single-shot indication information and continuous-shot indication information of a firearm; A display module, used to display the number of bullets and shells ejected from the gun; A power module is used to provide working power to each module; The bullet status monitoring module includes a bullet monitoring circuit, a cartridge case monitoring circuit, a voltage comparator U2B and a voltage comparator U2A; The bullet monitoring circuit includes a photoelectric sensor U3, a resistor R6, and a resistor R7. The photoelectric sensor U3 is arranged at the bullet outlet of the firearm body; the positive electrode A of the infrared transmitting tube of the photoelectric sensor U3 is connected to the power supply end through the resistor R6, and the negative electrode K of the infrared transmitting tube is grounded; the positive electrode C of the infrared receiving tube of the photoelectric sensor U3 is connected to the Pin3 pin of the voltage comparator U2B and is connected to the power supply end through the resistor R7, and the negative electrode E of the infrared receiving tube is grounded; The shell monitoring circuit includes a photoelectric sensor U6, a resistor R10, and a resistor R11. The photoelectric sensor U6 is arranged at the ejection port of the firearm body; the positive electrode A of the infrared transmitting tube of the photoelectric sensor U6 is connected to the power supply end through the resistor R10, and the negative electrode K of the infrared transmitting tube is grounded; the positive electrode C of the infrared receiving tube of the photoelectric sensor U6 is connected to the Pin5 pin of the voltage comparator U2A and is connected to the power supply end through the resistor R11, and the negative electrode E of the infrared receiving tube is grounded; The Pin2 pin of the voltage comparator U2A is connected to the Pin6 pin of the voltage comparator U2B and then connected to the reference voltage value point of the potentiometer R8; the Pin1 pin of the voltage comparator U2A is connected to the P3.2 pin of the main control module; the Pin7 pin of the voltage comparator U2B is connected to the P3.3 pin of the main control module; The button module includes a switch S1, a reset button S3 and a trigger button S4; one end of the reset button S3 and the trigger button S4 are respectively connected to the P3.5 pin and the P3.6 pin of the main control module, and the other ends are connected to the power ground terminal; the two contacts of the switch S1 are respectively connected to the power terminal and the ground terminal, and the other end is connected to the P3.4 pin of the main control module; The indication module includes a single-shot monitoring indicator light D1, a continuous-shot monitoring indicator light D2, a resistor R2 and a resistor R3; after the single-shot monitoring indicator light D1 is connected in series with the resistor R2, one end is connected to a 5V DC voltage, and the other end is connected to the P1.6 pin of the main control module; after the continuous-shot monitoring indicator light D2 is connected in series with the resistor R3, one end is connected to a 5V DC voltage, and the other end is connected to the P1.7 pin of the main control module.

2. A firearm fault detection and ammunition counting device according to claim 1, characterized in that: The main control module includes a main control chip, a reset circuit and a crystal oscillator circuit; The reset circuit includes a button S1, a capacitor C1, and a resistor R1; after the button S1 is connected in parallel with the capacitor C1, one end is connected to the 5V DC voltage terminal, and the other end is connected to the RST pin of the main control chip and grounded through the resistor R1; The crystal oscillator circuit includes capacitor C2, capacitor C3, and crystal oscillator Y1; the two output ends of crystal oscillator Y1 are respectively connected to the XTAL1 pin and XTAL2 pin of the main control chip, capacitor C2 and capacitor C3 are connected in series and then connected in parallel with crystal oscillator Y1, and the connection point between capacitor C2 and capacitor C3 is grounded.

3. A firearm fault detection and ammunition counting device according to claim 1, characterized in that: The alarm module includes a buzzer B1, a transistor Q1, and a resistor R4; the base of the transistor Q1 is connected to the P3.7 pin of the main control module through the resistor R4, the emitter is connected to a 5V DC voltage, and the collector is connected to the buzzer B1.

4. A firearm fault detection and ammunition counting device according to claim 1, characterized in that: The display module includes directly cascaded digital tubes DPY1 and DPY1, and the input ends of the digital tubes DPY1 and DPY1 are both connected to the output end of the main control module.

5. The firearm fault detection and ammunition counting device according to claim 1, characterized in that: The power module includes a power switch K1, a capacitor C4, a capacitor C5, an LM7805 transformer chip, an LM1117 transformer chip, a capacitor C6, and a capacitor C7. The power switch K1 is arranged in the input line; the 12V external voltage is input to the LM7805 transformer chip after voltage stabilization and filtering by the capacitors C4 and C5. The LM7805 transformer chip steps down the 12V external voltage and converts it into a 5V DC voltage output, and the LM1117 transformer chip steps down the 5V DC voltage and converts it into a 3.3V DC voltage output.

6. A firearm fault detection and ammunition counting device according to any one of claims 1 to 5, characterized in that: The device comprises a training end and an instructor end, and the training end and the instructor end are connected via a communication module to realize data sharing.

7. A firearm fault detection and ammunition counting device according to claim 6, characterized in that: The training end is equipped with a bullet status monitoring module, a button module, a main control module, an alarm module, an indication module, a display module, a power module and a communication module; the instructor end is equipped with a main control module, an alarm module, a power module and a communication module.