Efficient scanning gun with double light source switching function
By employing a dual-light source switching design and intelligent control algorithms, the adaptability and stability issues of traditional barcode scanners in complex environments have been resolved, achieving efficient and reliable scanning and recognition, and improving recognition accuracy and energy efficiency in high-reflectivity and low-light scenarios.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- 刘兆琼
- Filing Date
- 2025-05-29
- Publication Date
- 2026-05-19
AI Technical Summary
Traditional barcode scanners are poorly adaptable to complex environments. Their single light source mode cannot adapt to varying ambient light intensities, leading to overexposure of highly reflective surfaces and failure to identify dark areas. Furthermore, there are delays and power supply fluctuations when switching light sources, affecting recognition accuracy and continuity.
The system employs a dual-light source switching design, combining an LM393 light intensity detection module and an STM32F103 main control module. Dynamic adjustment and power supply isolation of the light source are achieved through a CD4051 multiplexer and an IRF540N MOSFET driver circuit. With the help of a PWM dimming circuit and an LTC4412 power path controller, the system ensures the speed and stability of light source switching. The main control module is configured with a dynamic adjustment algorithm to adapt to barcodes with different reflectivities.
It improves recognition accuracy and scanning efficiency in complex environments, reduces energy consumption, enhances recognition accuracy in high reflectivity and low illumination scenarios, achieves multi-environmental adaptability and energy efficiency optimization, and solves the adaptability and stability problems of traditional barcode scanners.
Smart Images

Figure CN224263633U_ABST
Abstract
Description
Technical Field
[0001] This invention provides a high-efficiency scanner, and particularly relates to a high-efficiency scanner with dual light source switching. Background Technology
[0002] Traditional barcode scanners, used for barcode recognition, generally employ a single-light source illumination structure. Their basic configuration includes a housing, an embedded light source component, an image acquisition module, and control circuitry. Barcode decoding is achieved by projecting a fixed-illuminance light source onto the target surface. While these devices can perform basic functions under standard lighting conditions, they exhibit significant drawbacks in complex application scenarios: First, the single-light source mode cannot adapt to varying ambient light intensities, leading to overexposure on highly reflective surfaces and recognition failure in dark areas. Second, the static drive design lacks a dynamic response mechanism to target reflectivity, resulting in a sharp drop in recognition accuracy when dealing with low-contrast barcodes. Third, light source switching relies on mechanical relays or simple electronic switches, leading to switching delays and power supply fluctuations, affecting scanning continuity. These shortcomings severely limit the practicality of traditional equipment in scenarios such as warehousing and logistics, and outdoor operations.
[0003] While existing improved barcode scanners attempt to incorporate multi-light source designs, their basic structure still has limitations: a typical solution uses a main / auxiliary dual-light source layout, employing a simple light intensity detection circuit composed of a photoresistor and a general comparator, with relay groups for light source switching, and a linear regulator for unified power supply. Compared to this application, its shortcomings are specifically manifested in: ① Low detection accuracy: traditional photosensitive circuits cannot accurately distinguish the 1000Lux threshold, leading to false triggering of light source switching; ② Poor switching efficiency: delays in relay mechanical action cause scanning interruptions, and contact aging leads to decreased reliability; ③ Power supply coupling issues: the shared power circuit generates voltage spikes during switching, affecting the stability of the scanning module; ④ Coarse light source control: lacking PWM dynamic dimming for array light sources and constant current drive for external light sources, making it difficult to adapt to low-contrast barcodes with reflectivity <30%; ⑤ Lack of a scan-illumination coordination mechanism, resulting in insufficient illumination continuity during high-speed scanning. This application systematically solves the above technical bottlenecks through a modular control architecture and the injection of intelligent algorithms. Utility Model Content
[0004] To address the aforementioned problems, this application provides a high-efficiency scanner with dual-light source switching, thus solving the problem.
[0005] To solve the above-mentioned technical problems, this utility model provides the following technical solution: a high-efficiency scanner with dual light source switching, including a housing, an external light source is embedded on one side of the housing, an array of light sources embedded in the housing is provided between the external light sources, the array of light sources is circumferentially distributed, and a scanning structure body is provided inside the array of light sources;
[0006] The other side of the outer shell is integrated with a handle structure, and the inside of the outer shell is equipped with a control center that is electrically connected to the external light source and the array light source. The scanning structure body is connected to the control center via data connection.
[0007] Preferably, the control center includes:
[0008] The light intensity detection module has its input terminals connected to the photosensitive sensors of the external light source and the array light source, and includes an LM393 comparator circuit.
[0009] The light source switching module is built using a CD4051 multiplexer, and its control terminal is connected to the GPIO port of the main control module.
[0010] The main control module uses an STM32F103 microcontroller and is connected to the light intensity detection module and the scanning structure body via an I2C bus.
[0011] The drive module contains two independent IRF540N MOSFET drive circuits, which control the power supply circuits of the external light source and the array light source respectively;
[0012] The power management module is built using the LM2596 voltage regulator chip and uses a PMOS switching circuit to achieve physical isolation between the dual-source power supply circuits.
[0013] Preferably, the light source switching module includes:
[0014] The first switching unit is configured to turn on 12 LED beads of the array light source when the ambient light intensity is <1000Lux;
[0015] The second switching unit is configured to switch to a 3W high-brightness LED from an external light source when the ambient light intensity is ≥1000Lux.
[0016] The first and second switching units are interlocked via relay K1.
[0017] Preferably, the drive module includes:
[0018] The PWM dimming circuit is connected to the LED matrix of the array light source, and the duty cycle adjustment range is 10%-100%.
[0019] The constant current drive circuit is connected to an external light source, and the output current is stabilized at 350mA±5%.
[0020] Preferably, the power management module includes:
[0021] Dual independent voltage regulator units provide isolated 5V / 2A power supply for both the external light source and the array light source;
[0022] The automatic switching unit uses an LTC4412 power path controller to maintain continuous power supply to the scanning structure body during dual-light source switching.
[0023] Preferably, the main control module is equipped with a dynamic adjustment algorithm, which automatically increases the driving current of the corresponding LED group in the array light source when the barcode reflectivity is less than 30% when the scanning structure body reads it.
[0024] Preferably, the circumferential distribution of the array light source includes 12 groups of LED lights, and the illumination angle of each group of lights is arranged at an arithmetic interval of 15° to form a superimposed and covered 120° wide-angle lighting area.
[0025] Preferably, the control center is equipped with a scanning frequency synchronization unit. When the acquisition frequency of the scanning structure body is >60Hz, the external light source is automatically switched to pulse working mode, and the pulse width and scanning frame rate are kept synchronized at 1:1.
[0026] One or more technical solutions provided in the embodiments of this application have at least the following technical effects or advantages:
[0027] This device addresses the shortcomings of existing barcode scanners, such as poor adaptability to complex environments, high energy consumption, and low dynamic recognition rate. By integrating dual-light source collaborative control and intelligent compensation mechanisms, it overcomes the limitation of traditional devices that cannot dynamically adjust the light source mode according to ambient light intensity and the reflectivity of the scanned target. It innovatively employs an LM393 light intensity detection module to monitor ambient illuminance in real time, combined with the dynamic adjustment algorithm of the STM32F103 main control module. When the ambient light intensity is <1000Lux, a CD4051 multiplexer activates 12 circumferentially distributed array light sources, and a PWM dimming circuit is used to achieve fine adjustment of the duty cycle from 10% to 100% to handle low-reflectivity barcodes. In strong light environments, the IRF540N... The MOSFET drive circuit quickly switches to a 3W high-brightness external light source, and works with the LTC4412 power path controller to achieve seamless power supply switching, solving the power interruption problem during switching in traditional equipment. Furthermore, the scanning frequency synchronization unit matches the light source pulse with the scanning frame rate 1:1. Combined with the dual-path physically isolated LM2596 voltage regulator system, it reduces energy consumption by 30% while improving the recognition accuracy by 45% in high reflectivity / low illumination scenarios, achieving intelligent scanning with multi-environment adaptability and energy efficiency optimization.
[0028] Other advantages, objectives and features of this invention will be set forth in part in the description which follows, and in part will be apparent to those skilled in the art from the following examination or study, or may be taught from the practice of this invention. Attached Figure Description
[0029] Figure 1This is a three-dimensional schematic diagram of a high-efficiency scanner with dual light source switching according to the present invention.
[0030] Figure 2 This is a front view of a high-efficiency scanner with dual light source switching according to the present invention.
[0031] Figure 3 This is a timing diagram of the light source switching of a high-efficiency scanner with dual light source switching according to the present invention;
[0032] Figure 4 This is a system control flowchart for a high-efficiency scanner with dual light source switching according to the present invention.
[0033] Figure 5 This is a power management state diagram of a high-efficiency scanner with dual light source switching according to the present invention.
[0034] As shown in the figure:
[0035] 1. Outer shell; 2. External light source; 3. Array light source; 4. Scanning structure body; 5. Handle structure. Detailed Implementation
[0036] The technical solutions of the present utility model will be clearly and completely described below with reference to the accompanying drawings of the embodiments. Obviously, the described embodiments are only some embodiments of the present utility model, and not all embodiments. Based on the embodiments of the present utility model, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the protection scope of the present utility model.
[0037] It should be noted that the terms "vertical," "horizontal," "up," "down," "left," "right," and similar expressions used in this article are for illustrative purposes only and do not represent the only possible implementation.
[0038] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention pertains; the terminology used herein in the description of this invention is for the purpose of describing particular embodiments only and is not intended to limit the invention; the term "and / or" as used herein includes any and all combinations of one or more of the associated listed items.
[0039] like Figure 1 and Figure 2As shown, a high-efficiency barcode scanner with dual light source switching includes a housing. The housing is characterized by: an external light source and a circularly distributed array of light sources embedded on one side, the array comprising 12 groups of LEDs arranged at 15° intervals to form a superimposed, wide-angle illumination area of 120°, with a scanning structure body inside; and a handle structure integrated on the other side of the housing, housing a control center including a light intensity detection module, a light source switching module, a main control module, a drive module, and a power management module. The light intensity detection module is connected to a dual-light source photosensitive sensor via an LM393 comparator circuit. The main control module uses an STM32F103 microcontroller to interact with the scanning structure body via an I2C bus. The drive module uses two IRF540N... The MOSFET independently controls the dual-source power supply circuit. The power management module uses the LM2596 voltage regulator chip and PMOS switch to achieve dual-channel isolated power supply. The source switching module establishes a connection with the GPIO port of the main control module through the CD4051 multiplexer, and the relay K1 implements the interlock logic of enabling the array source when the ambient light intensity is <1000Lux and switching to the external source when the ambient light intensity is ≥1000Lux.
[0040] In this implementation scheme, regarding component connections, the LM393 comparator circuit of the light intensity detection module is connected to the dual-source light sensor to sense ambient light intensity information. The STM32F103 microcontroller of the main control module interacts with the scanning structure via the I2C bus, receiving and processing the scanning information fed back by the scanning structure, and simultaneously sending control commands to the scanning structure to coordinate the scanning operation. The two IRF540N MOSFETs of the drive module independently control the dual-source power supply circuits, which allows for precise power supply control of different light sources, avoids mutual interference, and ensures that the light sources can be turned on or off as needed. The LM2596 voltage regulator chip and PMOS switch of the power management module work together to achieve dual-path isolated power supply, ensuring that each module receives stable power support and preventing power supply issues from affecting the normal operation of the equipment. The light source switching module is connected to the GPIO port of the main control module through a CD4051 multiplexer. It receives signals from the main control module to control the light source switching. The relay K1 implements an interlocking logic based on the ambient light intensity: when the ambient light intensity is <1000Lux, it enables the array light source and switches to the external light source when the ambient light intensity is ≥1000Lux, ensuring the accuracy and reliability of the light source switching.
[0041] In terms of position, the external light source and array light source on one side of the casing are specifically distributed. The array light source contains 12 groups of LED lights arranged at 15° intervals to form a 120° wide-angle illumination area. This layout ensures uniform and effective illumination of the scanned target from different directions and angles, reducing blind spots and improving scanning range and effect. The handle structure is located on the other side of the casing and is integrated into the design, making it convenient for operators to hold and operate the scanner. The integrated control center modules are rationally arranged to ensure efficient and stable signal transmission, and also facilitate heat dissipation and maintenance.
[0042] From the perspectives of implementation key points and innovation, the combined effects of these components are significant. Firstly, the ambient light intensity is accurately sensed by the light intensity detection module, and combined with the intelligent control algorithm of the main control module, automatic switching of the light source is achieved. When the ambient light intensity is <1000 Lux, the array light source is activated. Its 12 groups of LEDs arranged at specific angles form a wide-angle illumination area that can fully illuminate barcodes in low-light environments. Combined with the fine adjustment of the duty cycle by the PWM dimming circuit, suitable illumination can be provided even for low-reflectivity barcodes, effectively solving the problem of low recognition rates in low-light environments for traditional scanners. In strong light environments, it quickly switches to an external light source, ensuring clear scanned images even under high ambient light intensity, guaranteeing accurate recognition.
[0043] Secondly, the drive module uses two IRF540N MOSFETs to independently control the dual-light source power supply circuit, and with the interlocking logic of relay K1, it ensures the speed and accuracy of light source switching, avoids the power interruption problem that may occur when traditional equipment switches light sources, and improves the stability and reliability of the equipment.
[0044] Furthermore, the power management module utilizes the LM2596 voltage regulator chip and PMOS switches to achieve dual-channel isolated power supply. On the one hand, it provides stable power support for each module, and on the other hand, the dual-channel isolation effectively reduces energy consumption. It is estimated that energy consumption can be reduced by 30%, which meets the requirements of energy conservation and consumption reduction, and also extends the service life of the equipment.
[0045] Furthermore, the data interaction between the scanning structure and the main control module, as well as the coordinated operation of the light source switching module, drive module, and other components with the main control module, enable the light source pulse to match the scanning frame rate 1:1, further improving scanning efficiency and recognition accuracy. In high reflectivity / low illumination scenarios, the recognition accuracy can be improved by 45%, achieving intelligent scanning with multi-environment adaptability and energy efficiency optimization. Compared with traditional barcode scanners, it has achieved significant improvements in complex environment adaptability, energy consumption control, and dynamic recognition rate, effectively solving the defects of existing barcode scanners and providing an efficient and reliable solution for various scenarios requiring scanning and recognition. It has high practical value and innovative significance.
[0046] like Figure 3 , 4 As shown in Figure 5, the scanner is further characterized by: the main control module is equipped with a dynamic adjustment algorithm, which automatically increases the driving current of the corresponding LED group when the reflectivity of the barcode detected by the scanning structure body is <30%; the drive module integrates a PWM dimming circuit and a constant current drive circuit, which respectively implement 10%-100% duty cycle adjustment for the LED matrix of the array light source and maintain a constant current output of 350mA±5% for the 3W high-brightness LED of the external light source; the power management module has a built-in LTC4412 power path controller, which ensures continuous power supply to the scanning structure body during the dual light source switching; at the same time, the control center is equipped with a scanning frequency synchronization unit, which triggers the external light source to enter the pulse mode synchronized with the scanning frame rate at 1:1 when the acquisition frequency is >60Hz; through the coordinated control of the physically isolated power supply circuit and dynamic light compensation, the dual light source adaptive switching and energy efficiency optimization in complex environments are realized.
[0047] In this embodiment, the device needs to be combined with existing technologies such as optical lens groups, image sensors, wireless communication modules, and mechanical trigger switches. The outer shell is made of impact-resistant modified polycarbonate injection molding. The LED beads of the array light source are selected from Osram Duris E5 series high color rendering devices and equipped with 6063 aluminum-based heat sinks. The dustproof structure is achieved with IP54-level silicone sealing rings. The barcode positioning algorithm involved is based on OpenCV's Hough transform to achieve contour detection. The image binarization processing adopts Sauvola's local adaptive thresholding algorithm. The data verification uses the CRC-16-CCITT standard protocol. The above-mentioned mature technologies are not specifically labeled in the claims of this document, but are necessary support for the complete operation of the system.
[0048] Although the present invention has been disclosed above with reference to preferred embodiments, it is not intended to limit the present invention. Any person skilled in the art can make various modifications and alterations without departing from the spirit and scope of the present invention. Therefore, the scope of protection of the present invention should be determined by the claims.
Claims
1. A high efficiency scanning gun with dual light source switching comprising an outer housing (1) characterized by: An external light source (2) is embedded on one side of the outer shell (1), and an array of light sources (3) embedded on the outer shell (1) is provided between the external light sources (2). The array of light sources (3) is distributed in a circular pattern, and a scanning structure body (4) is provided inside the array of light sources (3). The outer shell (1) is integrated with a handle structure (5) on the other side. The inner side of the outer shell (1) is equipped with a control center that is electrically connected to the external light source (2) and the array light source (3). The scanning structure body (4) is connected to the control center via data connection.
2. A high efficiency scanning gun with dual light source switching as claimed in claim 1 characterized in that: The control center includes: The light intensity detection module has its input terminals connected to the photosensitive sensors of the external light source (2) and the array light source (3) respectively, and includes an LM393 comparator circuit. The light source switching module is built using a CD4051 multiplexer, and its control terminal is connected to the GPIO port of the main control module. The main control module uses an STM32F103 microcontroller and is connected to the light intensity detection module and the scanning structure body (4) via an I2C bus. The driving module includes two independent IRF540N MOSFET driving circuits, which control the power supply circuits of the external light source (2) and the array light source (3) respectively; The power management module is built using the LM2596 voltage regulator chip and uses a PMOS switching circuit to achieve physical isolation between the dual-source power supply circuits.
3. A high efficiency scanning gun with dual light source switching as claimed in claim 2, wherein: The light source switching module includes: The first switching unit is configured to turn on the 12 LED beads of the array light source (3) when the ambient light intensity is <1000Lux; The second switching unit is configured to switch to the 3W high-brightness LED of the external light source (2) when the ambient light intensity is ≥1000Lux; The first and second switching units are interlocked via relay K1.
4. A high efficiency scanning gun with dual light source switching as claimed in claim 2, wherein: The driver module includes: The PWM dimming circuit is connected to the LED matrix of the array light source (3), and the duty cycle adjustment range is 10%-100%. The constant current drive circuit is connected to the external light source (2), and the output current is stabilized at 350mA±5%.
5. A high efficiency scanning gun with dual light source switching as claimed in claim 2, wherein: The power management module includes: Dual independent voltage regulator units provide isolated 5V / 2A power supply to the external light source (2) and the array light source (3); The automatic switching unit uses an LTC4412 power path controller to maintain continuous power supply to the scanning structure body (4) during dual light source switching.
6. A high efficiency scanning gun with dual light source switching as claimed in claim 2, wherein: The main control module is equipped with a dynamic adjustment algorithm. When the scanning structure body (4) reads that the barcode reflectivity is <30%, it automatically enhances the driving current of the corresponding LED group in the array light source (3).
7. A high efficiency scanning gun with dual light source switching as claimed in claim 1, wherein: The array light source (3) has 12 groups of LED lights distributed in a circular pattern. The illumination angle of each group of lights is arranged in an arithmetic sequence of 15°, forming a superimposed and covered 120° wide-angle lighting area.
8. A high efficiency scanning gun with dual light source switching as claimed in claim 2, wherein: The control center is equipped with a scanning frequency synchronization unit. When the acquisition frequency of the scanning structure body (4) is >60Hz, the external light source (2) is automatically switched to pulse working mode, and the pulse width and scanning frame rate are kept synchronized at 1:1.