Shooting counter based on acceleration detection
By using a miniaturized firing counter with an accelerometer and a microprocessor, the applicability of existing firing counters in low-light environments and with lightweight firearms has been solved, achieving accurate and interference-resistant firing counts and expanding the scope of application.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-11
- Publication Date
- 2026-04-10
AI Technical Summary
Existing shooting counters are difficult to use in low-light environments and are not suitable for light firearms. The sensor installation location is also highly demanding, which limits their applicability.
Employing an accelerometer and microprocessor, it achieves shot counting through acceleration detection, integrated on a miniaturized PCB circuit board, supports the I2C communication protocol, and includes a display screen and button circuitry, making it suitable for various firearms.
It achieves accurate firing counts in various environments, resists non-firing vibration interference, and is small in size, light in weight, and low in power consumption, thus expanding its application range to include light firearms, artillery, and missile launching devices.
Smart Images

Figure CN224109862U_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the field of shooting counting, and particularly relates to a shooting counter based on acceleration detection. BACKGROUND
[0002] In fierce battles, how many bullets are left in the magazine has always been a problem for shooters, especially in close-range indoor combat environments.
[0003] Some manufacturers such as Magpul have designed transparent magazines that can directly see the number of remaining ammunition in the magazine, but such transparent magazines are not suitable for use in dark environments. Glock designed a magazine with small holes for the shooter to see the number of remaining ammunition in the magazine after pulling out the magazine, but pulling out the magazine to check the ammunition will affect the shooting opportunity of the shooter.
[0004] In 2006, Tang Gongmin researched an intelligent shooting recorder for high-altitude machine guns, and in 2008, Ma Chunxin researched an intelligent shooting recorder for naval guns. The input signal acquisition of such an intelligent shooting recorder is achieved by two electromagnetic induction type proximity switch sensors. Sensor 1 detects the change in the relative position of the automatic mechanism and the receiver frame during shooting, and converts the displacement change characteristics into the required switch electrical signal of the recorder, which is used as the counting signal required by the shooting recorder. Sensor 2 detects whether the position of the high-altitude machine gun foot pedal firing mechanism is in the firing state, and converts the dynamic position signal of the foot pedal mechanism into an electrical signal as an end-of-counting interruption control signal for the shooting recorder.
[0005] Such a shooting recorder uses an AT89C51 single-chip microcomputer and various DIP packaged chips, and the physical size is large. In addition, the installation position of the two sensors has requirements, and it is not suitable for shooting counting of guns without automatic mechanisms and foot pedal mechanisms, and it is even less suitable for shooting counting on light weapons. SUMMARY
[0006] The purpose of the present application is to provide a shooting counter based on acceleration detection to expand the application range of the shooting counter.
[0007] To achieve the above purpose, the present application provides the following solutions.
[0008] In a first aspect, the present application provides a shooting counter based on acceleration detection, comprising: an acceleration sensor and a microprocessor.
[0009] The acceleration sensor is connected to the microprocessor.
[0010] The acceleration sensor is arranged on a gun, and the acceleration sensor is connected to the microprocessor, and the microprocessor is used for shooting counting according to the acceleration collected by the acceleration sensor.
[0011] Optionally, the shooting counter based on acceleration detection further comprises a display screen and a key circuit;
[0012] The display screen and the key circuit are connected with the microprocessor.
[0013] Optionally, the shooting counter based on acceleration detection further comprises a button cell, a power interface circuit, a linear voltage stabilizing circuit and a voltage detection circuit;
[0014] The button cell is arranged on the power interface circuit and connected with the input end of the linear voltage stabilizing circuit through the power interface circuit, and the output end of the linear voltage stabilizing circuit is connected with the power supply end of the microprocessor, the power supply end of the display screen and the power supply end of the key circuit;
[0015] The button cell is also connected with the voltage detection circuit through the power interface circuit, and the voltage detection circuit is connected with the microprocessor.
[0016] Optionally, the shooting counter based on acceleration detection further comprises a crystal oscillator circuit and a debugging interface circuit, and the crystal oscillator circuit and the debugging interface circuit are connected with the microprocessor.
[0017] Optionally, the shooting counter based on acceleration detection further comprises a PCB circuit board;
[0018] The acceleration sensor, the button cell, the power interface circuit, the linear voltage stabilizing circuit and the display screen are arranged on the top layer of the PCB circuit board;
[0019] The microprocessor, the key circuit, the interface debugging circuit and the voltage detection circuit are arranged on the bottom layer of the PCB circuit board.
[0020] Optionally, the linear voltage stabilizing circuit adopts an SP6641A boost type DC-DC power supply chip.
[0021] Optionally, the voltage detection circuit comprises a first resistor and a second resistor;
[0022] One end of the first resistor is connected with the positive pole of the button cell, the other end of the first resistor is connected with one end of the second resistor and the microprocessor respectively, and the other end of the second resistor is connected with the negative pole of the button cell.
[0023] Optionally, the key circuit comprises three keys, and the three keys are respectively a left key, a middle key and a right key;
[0024] The middle key is used for switching between a counting mode and a configuration mode;
[0025] In counting mode, the middle key is also used to set the count value of the magazine ammunition to the preset value of the ammunition;
[0026] In counting mode, the left button is used to decrease the count value of the magazine ammunition, and the right button is used to increase the count value of the magazine ammunition;
[0027] In configuration mode, the left button is used to decrease the preset value of the ammunition, and the right button is used to increase the preset value of the ammunition.
[0028] According to the specific embodiments provided in this application, this application has the following technical effects.
[0029] This application provides a fire counter based on acceleration detection, comprising: an acceleration sensor and a microprocessor; the acceleration sensor is connected to the microprocessor; the acceleration sensor is mounted on a firearm, and the microprocessor is used to count shots based on the acceleration collected by the acceleration sensor. This application counts shots using sensor signals collected by the acceleration sensor, which can be achieved simply by mounting the acceleration sensor on the firearm. Furthermore, due to the small size of the acceleration sensor and the microprocessor, the fire counter is miniaturized, thus expanding the applicability of the fire counter. Attached Figure Description
[0030] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0031] Figure 1 This is a structural diagram of a shooting counter based on acceleration detection, provided as an embodiment of this application.
[0032] Figure 2 A schematic diagram of a linear voltage regulator circuit provided in an embodiment of this application.
[0033] Figure 3 A schematic diagram of a display screen provided in an embodiment of this application.
[0034] Figure 4 This is a schematic diagram of an accelerometer sensor provided in one embodiment of this application.
[0035] Figure 5 This is a schematic diagram of a voltage detection circuit provided in one embodiment of this application.
[0036] Figure 6 A schematic diagram of a processor provided in one embodiment of this application.
[0037] Figure 7 A curve of the change of the jump in the shooting case is provided for an embodiment of the present application.
[0038] Figure 8 A curve of the change of the jump caused by the interference vibration in the non-shooting case is provided for an embodiment of the present application. DETAILED DESCRIPTION
[0039] The technical solutions in the embodiments of the present application will be apparently and completely described below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all the other embodiments obtained by a person of ordinary skill in the art without any creative work fall within the protection scope of the present application.
[0040] The above purposes, features and advantages of the present application can be more apparent and easy to understand. The present application will be further described in detail below with reference to the drawings and specific embodiments.
[0041] In an exemplary embodiment, as shown in Figure 1 An acceleration detection-based shooting counter is provided, comprising: an acceleration sensor and a microprocessor; the acceleration sensor is connected with the microprocessor; the acceleration sensor is arranged on a gun, and the acceleration sensor is connected with the microprocessor, and the microprocessor is used for counting shooting according to the acceleration collected by the acceleration sensor.
[0042] The above shooting counter meets the requirement of miniaturization, reduces the requirement of installation position, and expands the application range of the shooting counter.
[0043] In another exemplary embodiment, as shown in Figure 2 The acceleration detection-based shooting counter further comprises: a display screen, a key circuit, a button cell, a power interface circuit, a linear voltage stabilizing circuit, a voltage detection circuit, a crystal oscillator circuit and a debugging interface circuit; the display screen and the key circuit are both connected with the microprocessor. The button cell is arranged on the power interface circuit, and is connected with the input end of the linear voltage stabilizing circuit through the power interface circuit. The output end of the linear voltage stabilizing circuit is connected with the power supply end of the microprocessor, the power supply end of the display screen and the power supply end of the key circuit. The button cell is also connected with the voltage detection circuit through the power interface circuit, and the voltage detection circuit is connected with the microprocessor. The crystal oscillator circuit and the debugging interface circuit are both connected with the microprocessor.
[0044] The communication mode between the two modules of the acceleration sensor and the display screen and the microprocessor is I 2C. Voltage detection utilizes a pin of the microprocessor. The microprocessor, display screen, voltage detection module, and power supply module are connected. The power supply module here consists of the aforementioned button battery, power interface circuit, and linear regulator circuit.
[0045] In another exemplary embodiment, such as Figure 2 As shown, the linear voltage regulator circuit uses the SP6641A boost DC-DC power chip. This power chip can boost the voltage of the coin cell battery from below 3.3V to the 3.3V required by various modules when the voltage is below 3.3V, and maintain the coin cell battery voltage at the 3.3V required by various modules when the voltage is not below 3.3V.
[0046] In another exemplary embodiment, the display screen's driving circuit is designed as follows: Figure 3 As shown, the display screen in this embodiment of the application uses a 0.96-inch OLED that supports I... 2 C, SPI3 and SPI4 communication protocols. To save space and facilitate routing on the PCB, the communication protocol used in this embodiment is I. 2 C, Figure 3 PB8_I2C2_SCL and PB9_I2C2_SDA are used to connect to the microprocessor for I / O. 2 C communication.
[0047] In another exemplary embodiment, the accelerometer selected in this application is model MPU6050, and its circuit structure is as follows: Figure 4 As shown, the MPU6050 uses an internal clock and also uses I... 2 C communication protocol, i.e. Figure 4 PB10_I2C2_SCL and PB10_I2C2_SDA are used to connect to the microprocessor for I / O. 2 C communication.
[0048] In another exemplary embodiment, the circuit structure of the voltage detection circuit is as follows: Figure 5 As shown, in this embodiment, the PA0 pin of the microprocessor is selected as the voltage measurement pin, and a voltage divider is used to ensure that the input voltage is within 3.3V. For example, Figure 5 As shown, the voltage detection circuit includes: a first resistor R1 and a second resistor R2; one end of the first resistor R1 is connected to the positive terminal of the button battery. Figure 5 The first resistor R1 is connected to a 5V terminal of the coin cell battery. The other end of the first resistor R1 is connected to one end of the second resistor R2 and the microprocessor. The other end of the second resistor R2 is connected to the negative terminal of the coin cell battery. Figure 5 (GND) connection in the middle.
[0049] In another exemplary embodiment, according to the functional requirements, the I 2 The C function communicates with the display screen and the acceleration sensor, the debugging function of the microprocessor is required to write program and read the value of the relative jump, an external crystal oscillator is required to be connected, and the film key potential is required to be read, so the use of the pin Figure 6 As shown, Figure 6 PB10_I2C2_SCL and PB10_I2C2_SDA in the table are used for I 2 C communication with the acceleration sensor, Figure 6 PB8_I2C2_SCL and PB9_I2C2_SDA in the table are used for I 2 C communication with the display screen, Figure 6 SWCLK and SWDIO in the table are used for debugging, Figure 6 PD0_OSCIN and PD0_OSCOUT in the table are used for connecting the crystal oscillator, and PA0_ADC_IN0 is used for reading the film key potential
[0050] In another exemplary embodiment, the microprocessor in the embodiment of the application selects an stm32f103c8t6 chip, which has a built-in 2KB flash memory, so that no external flash memory is used, and no flash memory driving circuit is used.
[0051] The shooting counter based on acceleration detection of the application can calculate the jump and display it on the display screen. After the shooting counter is started, the maximum positive direction jump and the maximum negative direction jump are calculated when shooting. Through testing, the three keys can modify the number of ammunition and realize power-off saving, and the voltage detection circuit can measure and display the voltage.
[0052] In another exemplary embodiment, the above-mentioned various circuits are integrated on a 26mm*22mm double-layer PCB circuit board. The acceleration sensor, the button cell, the power interface circuit, the linear voltage stabilizing circuit and the display screen are arranged on the top layer of the PCB circuit board, and the microprocessor, the key circuit, the interface debugging circuit and the voltage detection circuit are arranged on the bottom layer of the PCB circuit board. The entire counter has low power consumption, is powered by a CR2032 button cell during normal use, and the 0.96-inch OLED screen is folded to the back during installation.
[0053] After the space of the top copper foil layer and the bottom copper foil layer is planned, the shooting counter of the application has small size, and its size is slightly larger than a 1-angle coin, so that the shooting counter is miniaturized.
[0054] In the embodiments of the present application, the acceleration itself can represent the state of shooting, and therefore the characteristics (e.g., amplitude-frequency characteristics) of the acceleration signal can be analyzed to implement the counting process, which can be set by those skilled in the art as needed. As a preferred manner, but not limited to this manner, the present application provides a manner of counting shooting based on the jump degree of the acceleration signal, which is as follows.
[0055] The parts that need to be initialized in the main program include the single-chip microcomputer configuration file, the timer TIM3, the I2C1 and I2C2, the corresponding GPIOA1, 2, 3 of the button, the GPIOA0 for ADC voltage measurement, and the flash memory of the single-chip microcomputer.
[0056] The TIM2 and TIM3 timers are set to a counting interval of 0.1 milliseconds and an up-counting mode, which are used to determine the time of pressing the button, and the PA1, PA2, and PA3 are set to an up-pull input mode.
[0057] The MPU6050 is set to standby by configuring the register, which is an XYZ axis angular velocity meter, the clock of the X axis accelerometer is used, the sampling rate frequency division is set to 10, and the range of the acceleration is configured to the maximum value.
[0058] The font library required by the 0.96-inch OLED is made according to the running mode of the display function and the modulo software.
[0059] In another exemplary embodiment, according to the selected acceleration range ±16g of the MPU6050 and the configuration of the TIM2 counter, the unit of the jump calculation result of the STM32 single-chip microcomputer is approximately equal to 47.9 m·s-2 / LSB. The jump is detected according to the set negative maximum value and the positive maximum value of the jump. If the positive maximum value of the set range can be detected within 6 cycles after the negative maximum value of the set range is detected, a number of times will be recorded.
[0060] In another exemplary embodiment, the present application sets two working modes, which are the counting mode and the configuration mode.
[0061] The counting mode and the configuration mode are switched by long-pressing the middle button. In the counting mode, the counting value of the ammunition in the magazine can be reduced by pressing the left button, increased by pressing the right button, and reset to the preset ammunition value by pressing the middle button. The preset ammunition value is preferably the number of ammunition in the full magazine of the gun.
[0062] In the configuration mode, the preset ammunition value can be adjusted by pressing the left button or the right button, and the total number of shots recorded by the shooting counter can also be seen.
[0063] After exiting the configuration mode, the shooting counter enters the counting mode and saves the ammunition preset value to the flash memory.
[0064] In another exemplary embodiment, the application also provides a specific way of implementing the counting function by a microprocessor, which specifically includes the following steps.
[0065] Step 1: Memory and flash memory initialization. If the program does not detect the flash memory initialization flag, it will initialize the flash memory; if the flash memory initialization flag is detected, the microprocessor exchanges data with the flash memory to obtain the current ammunition capacity of the magazine at the start of the counter, writes the current ammunition capacity of the magazine as the current ammunition number (i.e., the counting value of the magazine ammunition) into the memory, and displays the current ammunition number on the display screen.
[0066] Step 2: The microprocessor continuously accesses the acceleration sensor to obtain the acceleration.
[0067] Step 3: The microprocessor subtracts the acceleration value at the current sampling time from the acceleration value at the previous sampling time, and finally divides the result by the time interval to obtain the value of the jerk. The calculation method is as follows:
[0068]
[0069] wherein, is the jerk at the sampling time t, a t and a t-1 are the accelerations at the sampling times t and t-1, respectively, and Δt is the time interval between the two adjacent sampling times.
[0070] Step 4: Determine whether the firearm is fired according to the comparison between the current jerk change and the set jerk change curve.
[0071] When the firearm is normally fired, the calculated jerk will first pass through the most negative value of the jerk and then pass through the maximum positive value of the jerk, as shown in Figure 7 , wherein the horizontal axis represents the number of acceleration sampling times, and the vertical axis represents the jerk, Figure 7 The two broken line positions in the jerk
[0072] The jerk change of random shaking and hand impact on the firearm, which is not a shooting vibration, is shown in Figure 8 , wherein there are more points between the two jerk peak values of each vibration, and therefore the time interval between the two jerk peak values is longer than that in the normal shooting.
[0073] The embodiment of the application detects the jump according to the set maximum value range of negative jump (i.e. the range for judging the validity of negative jump) and the maximum value range of positive jump (i.e. the threshold for judging the threshold of positive jump). If the detection cycle can detect the maximum value of positive jump in the set range within 6 cycles after detecting the maximum value of negative jump in the set range, the number of times will be recorded.
[0074] Step 5: When the counter starts, the microprocessor exchanges data with the flash memory to obtain the current ammunition capacity of the magazine. After detecting the firing, the program will reduce the current ammunition in the current memory (i.e. the count value of the ammunition in the magazine) by 1, and display the current ammunition number on the display screen.
[0075] Step 6: The microprocessor updates the total number of shots in the flash memory every time a magazine is emptied.
[0076] In another exemplary embodiment, in order to illustrate the performance of the shot counter of the application, the following experiments are also carried out by the embodiment of the application.
[0077] The experimental gun is Kublai N1 cold power soft gun, using TTI G34 metal slide and metal outer tube, and the magazine uses Kublai N1 original magazine plus STA expansion. The refrigerant used is R22.
[0078] The shot counter is bound on the N1 model gun with insulating tape, and the shooting counting accuracy test and anti-interference test are carried out.
[0079] 1) Counting accuracy test
[0080] After adjusting the counting related parameters, the shot counting experiment is carried out for 5 groups, each group is tested for 10 shots, and after each 10 shots, the refrigerant in the magazine is emptied and refilled.
[0081] Table 1: Shot counting test results based on jump detection
[0082] Group 1 Group 2 Group 3 Group 4 Group 5 1st shot √ √ √ √ √ 2nd shot √ √ √ √ √ 3rd shot √ √ √ √ √ 4th shot √ ■ √ √ √ 5th shot √ √ √ √ √ 6th shot √ √ √ √ √ 7th shot √ √ √ √ √ 8th shot √ √ √ √ √ 9th shot √ √ √ √ √ 10th shot √ √ √ √ √
[0083] As shown in Table 1, the counter does not count only at the 4th shot of the 2nd group, and the rest are counted accurately. During the 3rd group shooting test, some screen flickering appears, but the current remaining ammunition number can still be seen.
[0084] The reason why the 4th shot of the 2nd group fails to count is that the power supply line contact is poor. After improvement, there is no non-counting situation. In addition, after replacing the 0.96-inch OLED screen with better quality, there is no screen flickering. It is speculated that the original 0.96-inch OLED screen may have a virtual welding problem.
[0085] 2) Anti-non-shooting vibration interference test
[0086] The gun with the counter is placed in the IPSC GR quick-draw holster, and running, jumping, squatting, and pulling out and aiming the gun and returning the gun to the holster do not trigger false counting, verifying that the shooting counter has strong anti-non-shooting vibration interference capability.
[0087] According to the specific embodiments provided in the application, the application has the following technical effects.
[0088] The shooting counter based on acceleration detection has high counting accuracy, strong anti-non-shooting vibration interference capability, small size, light weight, and low power consumption. 2 The human-computer interaction interface is friendly, total shooting counting is performed, the life cycle management of the firearm is facilitated, the counter can save data after power-off, and the I
[0089] The technical features of the above embodiments can be combined arbitrarily, and to make the description concise, all possible combinations of the technical features in the above embodiments are not described, however, as long as the combinations of the technical features do not exist contradictions, they should be considered as the scope of the present application.
[0090] The principles and implementation modes of the application are described by applying specific examples herein, and the above embodiment descriptions are only used to help understand the method of the application and its core idea; meanwhile, for those skilled in the art, according to the idea of the application, the specific implementation modes and application ranges will have changes. In conclusion, the content of the specification should not be understood as a limitation of the application.
Claims
1. A shot counter based on acceleration detection, characterized in that The application relates to an acceleration detection-based shooting counter. The shooting counter comprises an acceleration sensor and a microprocessor. The acceleration sensor is connected with the microprocessor. The acceleration sensor is arranged at a slide cover of a gun, and the acceleration sensor is connected with the microprocessor. The microprocessor is selected from an stm32f103c8t6 chip. The shooting counter further comprises a display screen and a key circuit. The display screen and the key circuit are connected with the microprocessor. The shooting counter further comprises a button cell, a power interface circuit, a linear voltage stabilizing circuit and a voltage detection circuit. The button cell is arranged on the power interface circuit and is connected with an input end of the linear voltage stabilizing circuit through the power interface circuit. The output end of the linear voltage stabilizing circuit is connected with a power supply end of the microprocessor, a power supply end of the display screen and a power supply end of the key circuit.
2. The acceleration detection-based shooting counter according to claim 1, wherein, The button cell is further connected with the voltage detection circuit through the power interface circuit.
3. The acceleration detection based shooting counter according to claim 2, wherein, The shooting counter further comprises a crystal oscillator circuit and a debugging interface circuit. The crystal oscillator circuit and the debugging interface circuit are connected with the microprocessor. The shooting counter further comprises a PCB circuit board.
4. The acceleration detection-based shooting counter according to claim 1, wherein, The acceleration sensor, the button cell, the power interface circuit, the linear voltage stabilizing circuit and the display screen are arranged on a top layer of the PCB circuit board.
5. The acceleration detection based shooting counter of claim 1, wherein, The microprocessor, the key circuit, the debugging interface circuit and the voltage detection circuit are arranged on a bottom layer of the PCB circuit board. The linear voltage stabilizing circuit adopts an SP6641A boost DC-DC power supply chip.
6. The acceleration detection based shooting counter of claim 1, wherein, The voltage detection circuit comprises a first resistor and a second resistor. One end of the first resistor is connected with a positive pole of the button cell. The other end of the first resistor is connected with one end of the second resistor and the microprocessor respectively. The other end of the second resistor is connected with a negative pole of the button cell. The key circuit comprises three keys, which are a left key, a middle key and a right key. The middle key is used for switching between a counting mode and a configuration mode. In the counting mode, the middle key is further used for setting a counting value of a magazine to a preset value of ammunition. In the counting mode, the left key is used for reducing the counting value of the magazine, and the right key is used for increasing the counting value of the magazine. In the configuration mode, the left key is used for reducing the preset value of the ammunition, and the right key is used for increasing the preset value of the ammunition.