CN214311769U - Two-dimensional code scanning main control unit - Google Patents

Two-dimensional code scanning main control unit Download PDF

Info

Publication number
CN214311769U
CN214311769U CN202120486690.1U CN202120486690U CN214311769U CN 214311769 U CN214311769 U CN 214311769U CN 202120486690 U CN202120486690 U CN 202120486690U CN 214311769 U CN214311769 U CN 214311769U
Authority
CN
China
Prior art keywords
pin
chip
resistor
dimensional code
code scanning
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202120486690.1U
Other languages
Chinese (zh)
Inventor
冯波
苗丽丽
刘慧香
郑红娜
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Individual
Original Assignee
Individual
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Individual filed Critical Individual
Priority to CN202120486690.1U priority Critical patent/CN214311769U/en
Application granted granted Critical
Publication of CN214311769U publication Critical patent/CN214311769U/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Power Sources (AREA)

Abstract

The utility model relates to a two-dimensional code scanning main control unit, which belongs to the field of identity recognition equipment; providing equipment for scanning, identifying and acting the two-dimensional code; the technical scheme is as follows: a two-dimensional code scanning main control unit comprises: the device comprises a shell, a main control module and a two-dimensional code scanning module; the shell is a square box body, a square hole is formed in the wall of the shell, a main control module is fixed in the shell, the two-dimensional code scanning module is embedded into the square hole of the shell, and the main control module and the two-dimensional code scanning module are connected through a serial port or a USB interface.

Description

Two-dimensional code scanning main control unit
Technical Field
The utility model relates to a two-dimensional code scanning main control unit belongs to the identification equipment field.
Background
The two-dimensional code is widely applied in China, and particularly widely applied in aspects of electronic payment, webpage link and the like. The two-dimensional code can carry about dozens of K to 2M information quantity due to the unique coding mode, and the information quantity is enough to carry out coding identification on the personal identity.
At present, the mode of the all-purpose card is basically popularized in colleges and universities in China, namely, students can finish card swiping and personal identity recognition functions through student cards in shopping, dining halls, libraries and other school life and study.
With the development of electronic technology and the popularization of mobile phones, electronic cards become the first choice of students at present. Compared with student cards, the electronic card is bound with the mobile phone WeChat or Paibao, so that the electronic card is more convenient to use and higher in safety factor.
The electronic card package is a function of APP such as WeChat or Payment treasures, and the electronic card itself is a continuation of the student card. But it is very inconvenient for school administration and student self-administration and life learning planning.
SUMMERY OF THE UTILITY MODEL
In order to solve the technical problem, the utility model provides an equipment that scans discernment and carry out the action is carried out to the two-dimensional code.
In order to achieve the technical purpose, the utility model provides a technical scheme does:
a two-dimensional code scanning main control unit comprises: the device comprises a shell, a main control module and a two-dimensional code scanning module; the shell is a square box body, a square hole is formed in the wall of the shell, a main control module is fixed in the shell, the two-dimensional code scanning module is embedded into the square hole of the shell, and the main control module and the two-dimensional code scanning module are connected through a serial port or a USB interface.
The main control module comprises a microprocessor and a wireless module, the microprocessor is electrically connected with the wireless module, and the microprocessor is connected with the two-dimensional code scanning module through a serial port or a USB interface.
Two-dimensional code scanning main control unit still includes status signal lamp circuit, and status signal lamp circuit includes: a three-color diode L and a diode control circuit, wherein the anode of the three-color diode L is connected with the anode of a power supply, the first cathode, the second cathode and the third cathode of the three-color diode L are all connected with a diode control circuit,
the triode Q6 collecting electrode of diode control circuit connects the first negative pole or the second negative pole or the third negative pole of three-colour diode L negative pole, triode Q6 base respectively with microprocessor corresponding signal end, resistance R15 and electric capacity C14 electrical connection, triode Q6 projecting pole, the other end of resistance R15 and the other end ground connection of electric capacity C14.
The two-dimensional code scanning main control unit further comprises a display module, and the display module is electrically connected with the microprocessor.
The microprocessor adopts a single chip microcomputer STM32F103,
the VDD pin of the single chip microcomputer STM32F103 is connected with a 3.3V power supply, the VSS pin of the single chip microcomputer STM32F103 is grounded, a crystal oscillator circuit is connected between the PD0 pin and the PD1 pin of the single chip microcomputer STM32F103, the VSSA pin of the single chip microcomputer STM32F103 is connected with one end of a capacitor C15 and one end of an inductor L2 in parallel, the other end of the capacitor C15 is connected with one end of an inductor L1 and the VDDA pin of the STM32F103 in parallel, the other end of the inductor L2 is connected with the anode of a battery BT1 and then grounded, the cathode of the battery BT1 is connected with the third pin of a switch diode BAV99, the first pin of the switch diode BAV99 is connected with the VBAT pin of the STM32F103, the second pin of the switch diode BAV99 is connected with the other end of the inductor L1 and the 3.3V power supply in parallel, the PC14 pin of the STM32F103 and the PC15 are connected with a second crystal oscillator circuit, and the PB2 pin of the STM32F103 is grounded in series with a resistor R5.
The wireless module adopts a WiFi wireless communication module, the WiFi wireless communication module adopts an ESP8266 chip, a RESET pin of the ESP8266 chip is connected with a PC4 pin of an STM32F103, a TXD pin of the ESP8266 chip is connected with a PA3 pin of the STM32F103, an RXD pin of the ESP8266 chip is connected with a PA2 pin of the STM32F103, a GPIO0 pin and a GPIO2 pin of the ESP8266 chip are connected in parallel and then connected with a resistor R19 in series, a resistor R19 is connected with a 3.3V power supply, a GPIO15 pin of the ESP8266 chip is connected with a resistor R20 in series and then connected with an ESP8266 chip GND pin, the ESP8266 chip CH _ PD pin is connected with a resistor R4, the other end of the ESP resistor R4 is connected with a 3.3V power supply, one end of a capacitor C5 and a chip VCC pin of the capacitor C5 are connected to the ground.
The two-dimensional code scanning module and the serial port connecting circuit of the microprocessor are as follows:
the A end of a 485 output bus of the two-dimensional code scanning module is connected with the A pin of the MAX485 chip, the B end of the 485 output bus of the two-dimensional code scanning module is connected with the B pin of the MAX485 chip,
the pin A of the MAX485 chip is also connected with a resistor R20 and a resistor R21 in parallel, the other end of the resistor R21 is connected with 5V, the pin B of the MAX485 chip is connected with the other end of the resistor R20 and the resistor R19 in parallel, and the resistor R19 is grounded; MAX485 chip VCC pin connects the 5V power, MAX485 chip GND pin ground connection, MAX485 chip DI pin and the PB9 pin and the resistance R22 one end of STM32F103, MAX485 chip DE pin and RE pin connect back connecting resistance R23 one end and triode Q9 collecting electrode respectively, resistance R23 another termination 5V power, triode Q9 projecting pole ground connection, triode Q9 base connects the resistance R22 other end, MAX485 chip RO pin and STM32F 103's PB8 pin.
The two-dimensional code scanning module and the USB interface circuit of the microprocessor are as follows:
the chip comprises a VCC pin of a CH340 chip, a 5V power supply, a GND pin of the CH340 chip, a V3 pin of the CH340 chip, a capacitor 103 and a USB connector, wherein the V3 pin of the CH340 chip is grounded after being connected in series with a capacitor, the UD-pin series resistor R27 of the CH340 chip is connected with a second pin of a USB connector, the UD + pin series resistor R25 of the CH340 chip is connected with a third pin of a USB plug, the PB9 pin of the STM32F103 is connected with a diode D12 and a TXD pin of the CH340 chip in series, the PB8 pin of the STM32F103 is connected with a diode R18 and a RXD pin of the CH340 chip in series, and a Y1 crystal oscillator circuit is arranged between the X pin and the XO pin of the CH340 chip;
the 5V power output end is connected with a resistor R26 in series and then connected with a third pin of a USB plug, and the fourth pin of the USB plug is grounded.
The two-dimensional code scanning main control unit further comprises a power supply, and the power supply comprises; the power supply comprises an AC220-DC24 power module, a voltage reduction circuit and a voltage stabilizing circuit;
after the anode of the output end of the AC220-DC24 power module is connected IN series with a diode D11 and a fuse F1, the other end of the fuse F1 is connected IN parallel with an IN pin of a diode D9, a resistor R10 and an MP2303 chip, the diode D9 is connected IN series with a resistor R11 and then connected with the cathode of the output end of the AC220-DC24 power module and grounded, the other end of the resistor R10 is connected with an EN pin of the MP2303 chip, a BS pin of the MP2303 chip is connected with a capacitor C6, the other end of the capacitor C6 is connected IN parallel with an SW pin and an inductor L1 of the MP2303 chip, the inductor L1 is connected IN series with a resistor R13 and then connected with an FB pin of the MP2303 chip, the connection points of the inductor L1 and the resistor R13 are further connected with the anode of an electrolytic capacitor C12 and the anode of the electrolytic capacitor C13 respectively, the cathode of the electrolytic capacitor C13 and the cathode of the electrolytic capacitor C13 are connected IN parallel with the resistor R13, the resistor R13 and the capacitor C13 are grounded, the other ends of the capacitor C10 and the capacitor C11 are both connected with a COMP pin of an MP2303 chip, an SS pin of the MP2303 chip is grounded after being connected with a capacitor C7 in series, and a 5V power supply output end is arranged at the connection point of the inductor L1 and the resistor R13;
the voltage stabilizing circuit comprises a voltage stabilizing chip ASM1173.3, wherein an IN pin of the voltage stabilizing chip ASM1173.3 is connected with a 5V power output end and a capacitor C35, an OUT pin of the voltage stabilizing chip ASM1173.3 is connected with capacitors C36 and C37 IN parallel, GND pins of the capacitors C35, C36, C37 and ASM1173.3 are all grounded, and the OUT pin is a 3.3V power output end.
The two-dimensional code scanning device further comprises a key module 4, the key module 4 comprises a key S1, a key S2, a key S3 and a reset key S4, the key S1 is connected with a microprocessor PA0 pin and a resistor R13 in parallel, the key S2 is connected with a microprocessor PB0 pin and a resistor R14 in parallel, the key S3 is connected with a microprocessor PB1 pin and a resistor R15 in parallel, the reset key S4 is connected with a resistor R18 and a microprocessor NRST pin in parallel, the other end of the resistor R13, the other end of the resistor R14, the other end of the resistor R15 and the other end of the resistor R18 are connected with a 3.3V power output end, the other end of the key S1, the other end of the key S2, the other end of the key S3 and the other end of the reset key S4 are grounded, the microprocessor NRST pin is further connected with the anode of an electrolytic capacitor C18, and the cathode of the electrolytic capacitor C18 is grounded.
The keys S1, S2, S3 and S4 are mounted on the surface of the housing 2.
Compared with the prior art, the utility model following beneficial effect has:
one, the utility model discloses realize the two-dimensional code scanning to connect scanning information to pass through wiFi signal upload server, the school of being convenient for masters student's position, whether get into classroom study etc. the school of being convenient for supervise.
Two, the utility model discloses carry out the two-dimensional code scanning, can correspond on the student's cell-phone and set up supporting webpage or applet or APP, the student's cell-phone generates only two-dimensional code can convenient and fast use in the campus, for example water dispenser, access control, school supermarket and dining room shopping etc. can convenient student plan work such as oneself course, please leave simultaneously.
Thirdly, the utility model discloses an action execution module and data upload module are convenient for according to certain equipment operation of student scanning information control, can pass school circle server on the information that this student operated this equipment or came in and go out certain place simultaneously, prevent that the student from escaping from things such as class and taking place.
Four, the utility model discloses a host system and two-dimensional code scanning module, the later stage of being convenient for is directly changed, and two-dimensional code scanning module is fixed to the shell in the back pass through USB with host system peg graft can.
Drawings
Fig. 1 is a schematic structural diagram of embodiment 1 of the present invention.
FIG. 2 is a schematic structural diagram of embodiment 2 of the present invention
Fig. 3 is a schematic diagram of a microprocessor circuit according to the present invention.
Fig. 4 is the utility model discloses two-dimensional code scanning module and microprocessor serial ports connection circuit diagram.
Fig. 5 is the utility model discloses two-dimensional code scanning module and microprocessor serial ports part connecting circuit diagram.
Fig. 6 is the circuit diagram of the USB connection part between the two-dimensional code scanning module and the microprocessor.
Fig. 7 is another circuit diagram of the two-dimensional code scanning module and the microprocessor USB according to the present invention.
Fig. 8 is a schematic circuit diagram of the wireless module of the present invention.
Fig. 9 is a voltage-reducing circuit diagram of the present invention.
Fig. 10 is a diagram of a voltage stabilizing circuit according to the present invention.
In the figure: the device comprises a shell 1, a main control module 2 and a two-dimensional code scanning module 3.
Detailed Description
For a further understanding of the present invention, reference will now be made in detail to the following examples and embodiments, taken in conjunction with the accompanying drawings:
example 1
As shown in fig. 1 and 3 to 10: two-dimensional code scanning main control unit, include: the device comprises a shell 1, a main control module 2 and a two-dimensional code scanning module 3; the utility model discloses a two-dimensional code scanning device, including shell 1, two-dimensional code scanning module 3, outer 1 is square box, be provided with the square hole on the shell wall of shell 1, 1 internal fixation of shell has main control module, two-dimensional code scanning module 3 inlays to the square hole of shell 1 in, main control module 2 and two-dimensional code scanning module 3 pass through serial ports or USB interface connection.
The main control module 2 comprises a microprocessor and a wireless module, the microprocessor is electrically connected with the wireless module, and the microprocessor is connected with the two-dimensional code scanning module 3 through a serial port or a USB interface.
Two-dimensional code scanning main control unit still includes status signal lamp circuit, and status signal lamp circuit includes: a three-color diode L and a diode control circuit, wherein the anode of the three-color diode L is connected with the anode of a power supply, the first cathode, the second cathode and the third cathode of the three-color diode L are all connected with a diode control circuit,
the triode Q6 collecting electrode of diode control circuit connects the first negative pole or the second negative pole or the third negative pole of three-colour diode L negative pole, triode Q6 base respectively with microprocessor corresponding signal end, resistance R15 and electric capacity C14 electrical connection, triode Q6 projecting pole, the other end of resistance R15 and the other end ground connection of electric capacity C14.
The microprocessor adopts a singlechip STM32F 103.
The VDD pin of the single chip microcomputer STM32F103 is connected with a 3.3V power supply, the VSS pin of the single chip microcomputer STM32F103 is grounded, a crystal oscillator circuit is connected between the PD0 pin and the PD1 pin of the single chip microcomputer STM32F103, the VSSA pin of the single chip microcomputer STM32F103 is connected with one end of a capacitor C15 and one end of an inductor L2 in parallel, the other end of the capacitor C15 is connected with one end of an inductor L1 and the VDDA pin of the STM32F103 in parallel, the other end of the inductor L2 is connected with the anode of a battery BT1 and then grounded, the cathode of the battery BT1 is connected with the third pin of a switch diode BAV99, the first pin of the switch diode BAV99 is connected with the VBAT pin of the STM32F103, the second pin of the switch diode BAV99 is connected with the other end of the inductor L1 and the 3.3V power supply in parallel, the PC14 pin of the STM32F103 and the PC15 are connected with a second crystal oscillator circuit, and the PB2 pin of the STM32F103 is grounded in series with a resistor R5.
The wireless module adopts a WiFi wireless communication module, the WiFi wireless communication module adopts an ESP8266 chip, a RESET pin of the ESP8266 chip is connected with a PC4 pin of an STM32F103, a TXD pin of the ESP8266 chip is connected with a PA3 pin of the STM32F103, an RXD pin of the ESP8266 chip is connected with a PA2 pin of the STM32F103, a GPIO0 pin and a GPIO2 pin of the ESP8266 chip are connected in parallel and then connected with a resistor R19 in series, a resistor R19 is connected with a 3.3V power supply, a GPIO15 pin of the ESP8266 chip is connected with a resistor R20 in series and then connected with an ESP8266 chip GND pin, the ESP8266 chip CH _ PD pin is connected with a resistor R4, the other end of the ESP resistor R4 is connected with a 3.3V power supply, one end of a capacitor C5 and a chip VCC pin of the capacitor C5 are connected to the ground.
The two-dimensional code scanning module 3 comprises an industrial camera module and a data line.
The industrial camera module is embedded to the upper portion of the shell 1, and the three-color diode L is embedded to the shell 1 below the industrial camera module.
The two-dimensional code scanning module 3 and the serial port connecting circuit of the microprocessor are as follows:
the A end of the 485 output bus of the two-dimensional code scanning module 3 is connected with the A pin of the MAX485 chip, the B end of the 485 output bus of the two-dimensional code scanning module 3 is connected with the B pin of the MAX485 chip,
the pin A of the MAX485 chip is also connected with a resistor R20 and a resistor R21 in parallel, the other end of the resistor R21 is connected with 5V, the pin B of the MAX485 chip is connected with the other end of the resistor R20 and the resistor R19 in parallel, and the resistor R19 is grounded; MAX485 chip VCC pin connects the 5V power, MAX485 chip GND pin ground connection, MAX485 chip DI pin and the PB9 pin and the resistance R22 one end of STM32F103, MAX485 chip DE pin and RE pin connect back connecting resistance R23 one end and triode Q9 collecting electrode respectively, resistance R23 another termination 5V power, triode Q9 projecting pole ground connection, triode Q9 base connects the resistance R22 other end, MAX485 chip RO pin and STM32F 103's PB8 pin.
The two-dimensional code scanning module 3 and the USB interface circuit of the microprocessor are as follows:
the chip comprises a VCC pin of a CH340 chip, a 5V power supply, a GND pin of the CH340 chip, a V3 pin of the CH340 chip, a capacitor 103 and a USB connector, wherein the V3 pin of the CH340 chip is grounded after being connected in series with a capacitor, the UD-pin series resistor R27 of the CH340 chip is connected with a second pin of a USB connector, the UD + pin series resistor R25 of the CH340 chip is connected with a third pin of a USB plug, the PB9 pin of the STM32F103 is connected with a diode D12 and a TXD pin of the CH340 chip in series, the PB8 pin of the STM32F103 is connected with a diode R18 and a RXD pin of the CH340 chip in series, and a Y1 crystal oscillator circuit is arranged between the X pin and the XO pin of the CH340 chip;
the 5V power output end is connected with a resistor R26 in series and then connected with a third pin of a USB plug, and the fourth pin of the USB plug is grounded.
The two-dimensional code scanning main control unit further comprises a power supply, and the power supply comprises; the power supply comprises an AC220-DC24 power module, a voltage reduction circuit and a voltage stabilizing circuit;
after the anode of the output end of the AC220-DC24 power module is connected IN series with a diode D11 and a fuse F1, the other end of the fuse F1 is connected IN parallel with an IN pin of a diode D9, a resistor R10 and an MP2303 chip, the diode D9 is connected IN series with a resistor R11 and then connected with the cathode of the output end of the AC220-DC24 power module and grounded, the other end of the resistor R10 is connected with an EN pin of the MP2303 chip, a BS pin of the MP2303 chip is connected with a capacitor C6, the other end of the capacitor C6 is connected IN parallel with an SW pin and an inductor L1 of the MP2303 chip, the inductor L1 is connected IN series with a resistor R13 and then connected with an FB pin of the MP2303 chip, the connection points of the inductor L1 and the resistor R13 are further connected with the anode of an electrolytic capacitor C12 and the anode of the electrolytic capacitor C13 respectively, the cathode of the electrolytic capacitor C13 and the cathode of the electrolytic capacitor C13 are connected IN parallel with the resistor R13, the resistor R13 and the capacitor C13 are grounded, the other ends of the capacitor C10 and the capacitor C11 are both connected with a COMP pin of an MP2303 chip, an SS pin of the MP2303 chip is grounded after being connected with a capacitor C7 in series, and a 5V power supply output end is arranged at the connection point of the inductor L1 and the resistor R13;
the voltage stabilizing circuit comprises a voltage stabilizing chip ASM1173.3, wherein an IN pin of the voltage stabilizing chip ASM1173.3 is connected with a 5V power output end and a capacitor C35, an OUT pin of the voltage stabilizing chip ASM1173.3 is connected with capacitors C36 and C37 IN parallel, GND pins of the capacitors C35, C36, C37 and ASM1173.3 are all grounded, and the OUT pin is a 3.3V power output end.
The two-dimensional code scanning device further comprises a key module 4, the key module 4 comprises a key S1, a key S2, a key S3 and a reset key S4, the key S1 is connected with a microprocessor PA0 pin and a resistor R13 in parallel, the key S2 is connected with a microprocessor PB0 pin and a resistor R14 in parallel, the key S3 is connected with a microprocessor PB1 pin and a resistor R15 in parallel, the reset key S4 is connected with a resistor R18 and a microprocessor NRST pin in parallel, the other end of the resistor R13, the other end of the resistor R14, the other end of the resistor R15 and the other end of the resistor R18 are connected with a 3.3V power output end, the other end of the key S1, the other end of the key S2, the other end of the key S3 and the other end of the reset key S4 are grounded, the microprocessor NRST pin is further connected with the anode of an electrolytic capacitor C18, and the cathode of the electrolytic capacitor C18 is grounded.
The keys S1, S2, S3 and S4 are mounted on the surface of the housing 2.
Example 2
As shown in fig. 2 to 10: two-dimensional code scanning main control unit, include: the device comprises a shell 1, a main control module 2 and a two-dimensional code scanning module 3; the utility model discloses a two-dimensional code scanning device, including shell 1, two-dimensional code scanning module 3, outer 1 is square box, be provided with the square hole on the shell wall of shell 1, 1 internal fixation of shell has main control module, two-dimensional code scanning module 3 inlays to the square hole of shell 1 in, main control module 2 and two-dimensional code scanning module 3 pass through serial ports or USB interface connection.
The main control module 2 comprises a microprocessor and a wireless module, the microprocessor is electrically connected with the wireless module, and the microprocessor is connected with the two-dimensional code scanning module 3 through a serial port or a USB interface.
Two-dimensional code scanning main control unit still includes status signal lamp circuit, and status signal lamp circuit includes: a three-color diode L and a diode control circuit, wherein the anode of the three-color diode L is connected with the anode of a power supply, the first cathode, the second cathode and the third cathode of the three-color diode L are all connected with a diode control circuit,
the triode Q6 collecting electrode of diode control circuit connects the first negative pole or the second negative pole or the third negative pole of three-colour diode L negative pole, triode Q6 base respectively with microprocessor corresponding signal end, resistance R15 and electric capacity C14 electrical connection, triode Q6 projecting pole, the other end of resistance R15 and the other end ground connection of electric capacity C14.
The two-dimensional code scanning main control unit further comprises a display module, and the display module is electrically connected with the microprocessor.
The display module adopts an LCD display screen.
The LCD display screen sets up in 1 upper portions of shell, inlay the industry camera module on the shell 1 of LCD display screen below, tricolor diode L inlays to the shell 1 of industry camera module one side.
The microprocessor adopts a single chip microcomputer STM32F103,
the VDD pin of the single chip microcomputer STM32F103 is connected with a 3.3V power supply, the VSS pin of the single chip microcomputer STM32F103 is grounded, a crystal oscillator circuit is connected between the PD0 pin and the PD1 pin of the single chip microcomputer STM32F103, the VSSA pin of the single chip microcomputer STM32F103 is connected with one end of a capacitor C15 and one end of an inductor L2 in parallel, the other end of the capacitor C15 is connected with one end of an inductor L1 and the VDDA pin of the STM32F103 in parallel, the other end of the inductor L2 is connected with the anode of a battery BT1 and then grounded, the cathode of the battery BT1 is connected with the third pin of a switch diode BAV99, the first pin of the switch diode BAV99 is connected with the VBAT pin of the STM32F103, the second pin of the switch diode BAV99 is connected with the other end of the inductor L1 and the 3.3V power supply in parallel, the PC14 pin of the STM32F103 and the PC15 are connected with a second crystal oscillator circuit, and the PB2 pin of the STM32F103 is grounded in series with a resistor R5.
The wireless module adopts a WiFi wireless communication module, the WiFi wireless communication module adopts an ESP8266 chip, a RESET pin of the ESP8266 chip is connected with a PC4 pin of an STM32F103, a TXD pin of the ESP8266 chip is connected with a PA3 pin of the STM32F103, an RXD pin of the ESP8266 chip is connected with a PA2 pin of the STM32F103, a GPIO0 pin and a GPIO2 pin of the ESP8266 chip are connected in parallel and then connected with a resistor R19 in series, a resistor R19 is connected with a 3.3V power supply, a GPIO15 pin of the ESP8266 chip is connected with a resistor R20 in series and then connected with an ESP8266 chip GND pin, the ESP8266 chip CH _ PD pin is connected with a resistor R4, the other end of the ESP resistor R4 is connected with a 3.3V power supply, one end of a capacitor C5 and a chip VCC pin of the capacitor C5 are connected to the ground.
The two-dimensional code scanning module 3 comprises an industrial camera module and a data line.
The two-dimensional code scanning module 3 and the serial port connecting circuit of the microprocessor are as follows:
the A end of the 485 output bus of the two-dimensional code scanning module 3 is connected with the A pin of the MAX485 chip, the B end of the 485 output bus of the two-dimensional code scanning module 3 is connected with the B pin of the MAX485 chip,
the pin A of the MAX485 chip is also connected with a resistor R20 and a resistor R21 in parallel, the other end of the resistor R21 is connected with 5V, the pin B of the MAX485 chip is connected with the other end of the resistor R20 and the resistor R19 in parallel, and the resistor R19 is grounded; MAX485 chip VCC pin connects the 5V power, MAX485 chip GND pin ground connection, MAX485 chip DI pin and the PB9 pin and the resistance R22 one end of STM32F103, MAX485 chip DE pin and RE pin connect back connecting resistance R23 one end and triode Q9 collecting electrode respectively, resistance R23 another termination 5V power, triode Q9 projecting pole ground connection, triode Q9 base connects the resistance R22 other end, MAX485 chip RO pin and STM32F 103's PB8 pin.
The two-dimensional code scanning module 3 and the USB interface circuit of the microprocessor are as follows:
the chip comprises a VCC pin of a CH340 chip, a 5V power supply, a GND pin of the CH340 chip, a V3 pin of the CH340 chip, a capacitor 103 and a USB connector, wherein the V3 pin of the CH340 chip is grounded after being connected in series with a capacitor, the UD-pin series resistor R27 of the CH340 chip is connected with a second pin of a USB connector, the UD + pin series resistor R25 of the CH340 chip is connected with a third pin of a USB plug, the PB9 pin of the STM32F103 is connected with a diode D12 and a TXD pin of the CH340 chip in series, the PB8 pin of the STM32F103 is connected with a diode R18 and a RXD pin of the CH340 chip in series, and a Y1 crystal oscillator circuit is arranged between the X pin and the XO pin of the CH340 chip;
the 5V power output end is connected with a resistor R26 in series and then connected with a third pin of a USB plug, and the fourth pin of the USB plug is grounded.
The two-dimensional code scanning main control unit further comprises a power supply, and the power supply comprises; the power supply comprises an AC220-DC24 power module, a voltage reduction circuit and a voltage stabilizing circuit;
after the anode of the output end of the AC220-DC24 power module is connected IN series with a diode D11 and a fuse F1, the other end of the fuse F1 is connected IN parallel with an IN pin of a diode D9, a resistor R10 and an MP2303 chip, the diode D9 is connected IN series with a resistor R11 and then connected with the cathode of the output end of the AC220-DC24 power module and grounded, the other end of the resistor R10 is connected with an EN pin of the MP2303 chip, a BS pin of the MP2303 chip is connected with a capacitor C6, the other end of the capacitor C6 is connected IN parallel with an SW pin and an inductor L1 of the MP2303 chip, the inductor L1 is connected IN series with a resistor R13 and then connected with an FB pin of the MP2303 chip, the connection points of the inductor L1 and the resistor R13 are further connected with the anode of an electrolytic capacitor C12 and the anode of the electrolytic capacitor C13 respectively, the cathode of the electrolytic capacitor C13 and the cathode of the electrolytic capacitor C13 are connected IN parallel with the resistor R13, the resistor R13 and the capacitor C13 are grounded, the other ends of the capacitor C10 and the capacitor C11 are both connected with a COMP pin of an MP2303 chip, an SS pin of the MP2303 chip is grounded after being connected with a capacitor C7 in series, and a 5V power supply output end is arranged at the connection point of the inductor L1 and the resistor R13;
the voltage stabilizing circuit comprises a voltage stabilizing chip ASM1173.3, wherein an IN pin of the voltage stabilizing chip ASM1173.3 is connected with a 5V power output end and a capacitor C35, an OUT pin of the voltage stabilizing chip ASM1173.3 is connected with capacitors C36 and C37 IN parallel, GND pins of the capacitors C35, C36, C37 and ASM1173.3 are all grounded, and the OUT pin is a 3.3V power output end.
The two-dimensional code scanning device further comprises a key module 4, the key module 4 comprises a key S1, a key S2, a key S3 and a reset key S4, the key S1 is connected with a microprocessor PA0 pin and a resistor R13 in parallel, the key S2 is connected with a microprocessor PB0 pin and a resistor R14 in parallel, the key S3 is connected with a microprocessor PB1 pin and a resistor R15 in parallel, the reset key S4 is connected with a resistor R18 and a microprocessor NRST pin in parallel, the other end of the resistor R13, the other end of the resistor R14, the other end of the resistor R15 and the other end of the resistor R18 are connected with a 3.3V power output end, the other end of the key S1, the other end of the key S2, the other end of the key S3 and the other end of the reset key S4 are grounded, the microprocessor NRST pin is further connected with the anode of an electrolytic capacitor C18, and the cathode of the electrolytic capacitor C18 is grounded.
The keys S1, S2, S3 and S4 are mounted on the surface of the housing 2.
Example 3
The utility model discloses microprocessor can also adopt No. one of godson series, for example: the godson 1D, corresponding two-dimensional code camera module 1, wireless signal module and signal processing module all with godson 1D electrical connection, the power provides electric power for godson 1D, two-dimensional code camera module 1, wireless signal module and signal processing module operation.
The utility model discloses specific operation as follows:
the student displays the two-dimensional code to the front of the camera, and after scanning, the microprocessor controls the action execution module to act or the data uploading module to operate after data processing.
For example the utility model discloses install on devices such as the classroom is signed in, the student shows behind the two-dimensional code, carries out microprocessor behind the two-dimensional code scanning module 3 scanning two-dimensional code and interprets student's information, passes on campus server or other servers or control mechanism with the information that the student appears in where in several times simultaneously.
In addition, each two-dimensional code scanning device can load programs or data through a USB interface.
The above embodiments are merely illustrative of the principles and effects of the present invention, and are not intended to limit the present invention. It will be apparent to those skilled in the art that modifications and improvements can be made to the above-described embodiments without departing from the spirit and scope of the invention. Accordingly, it will be appreciated that those skilled in the art, upon attaining an understanding of the foregoing may readily produce alterations to, variations of, and equivalents to these embodiments without departing from the spirit and scope of the present invention as defined by the appended claims.

Claims (9)

1. The utility model provides a two-dimensional code scanning main control unit which characterized in that includes: the device comprises a shell (1), a main control module (2) and a two-dimensional code scanning module (3); the utility model discloses a two-dimensional code scanning device, including shell (1), two-dimensional code scanning module (3), two-dimensional code scanning module (2) are embedded to shell (1), shell (1) is the square box, be provided with the square hole on the shell (1) conch wall, shell (1) internal fixation has main control module (2), two-dimensional code scanning module (3) are inlayed to the square hole of shell (1) in, main control module (2) and two-dimensional code scanning module (3) pass through serial ports or USB interface connection.
2. The two-dimensional code scanning main control unit according to claim 1, characterized in that: the main control module (2) comprises a microprocessor and a wireless module, the microprocessor is electrically connected with the wireless module, and the microprocessor is connected with the two-dimensional code scanning module (3) through a serial port or a USB interface.
3. The two-dimensional code scanning main control unit of claim 2, characterized in that: two-dimensional code scanning main control unit still includes status signal lamp circuit, and status signal lamp circuit includes: a three-color diode L and a diode control circuit, wherein the anode of the three-color diode L is connected with the anode of a power supply, the first cathode, the second cathode and the third cathode of the three-color diode L are all connected with a diode control circuit,
the triode Q6 collecting electrode of diode control circuit connects the first negative pole or the second negative pole or the third negative pole of three-colour diode L negative pole, triode Q6 base respectively with microprocessor corresponding signal end, resistance R15 and electric capacity C14 electrical connection, triode Q6 projecting pole, the other end of resistance R15 and the other end ground connection of electric capacity C14.
4. The two-dimensional code scanning main control unit of claim 3, characterized in that: the two-dimensional code scanning main control unit further comprises a display module, and the display module is electrically connected with the microprocessor.
5. The two-dimensional code scanning main control unit of claim 4, characterized in that: the microprocessor adopts a single chip microcomputer STM32F103,
the VDD pin of the single chip microcomputer STM32F103 is connected with a 3.3V power supply, the VSS pin of the single chip microcomputer STM32F103 is grounded, a crystal oscillator circuit is connected between the PD0 pin and the PD1 pin of the single chip microcomputer STM32F103, the VSSA pin of the single chip microcomputer STM32F103 is connected with one end of a capacitor C15 and one end of an inductor L2 in parallel, the other end of the capacitor C15 is connected with one end of an inductor L1 and the VDDA pin of the STM32F103 in parallel, the other end of the inductor L2 is connected with the anode of a battery BT1 and then grounded, the cathode of the battery BT1 is connected with the third pin of a switch diode BAV99, the first pin of the switch diode BAV99 is connected with the VBAT pin of the STM32F103, the second pin of the switch diode BAV99 is connected with the other end of the inductor L1 and the 3.3V power supply in parallel, the PC14 pin of the STM32F103 and the PC15 are connected with a second crystal oscillator circuit, and the PB2 pin of the STM32F103 is grounded in series with a resistor R5.
6. The two-dimensional code scanning main control unit of claim 5, characterized in that: the wireless module adopts a WiFi wireless communication module, the WiFi wireless communication module adopts an ESP8266 chip, a RESET pin of the ESP8266 chip is connected with a PC4 pin of an STM32F103, a TXD pin of the ESP8266 chip is connected with a PA3 pin of the STM32F103, an RXD pin of the ESP8266 chip is connected with a PA2 pin of the STM32F103, a GPIO0 pin and a GPIO2 pin of the ESP8266 chip are connected in parallel and then connected with a resistor R19 in series, a resistor R19 is connected with a 3.3V power supply, a GPIO15 pin of the ESP8266 chip is connected with a resistor R20 in series and then connected with an ESP8266 chip GND pin, the ESP8266 chip CH _ PD pin is connected with a resistor R4, the other end of the ESP resistor R4 is connected with a 3.3V power supply, one end of a capacitor C5 and a chip VCC pin of the capacitor C5 are connected to the ground.
7. The two-dimensional code scanning main control unit of claim 6, wherein: the two-dimensional code scanning module (3) and the serial port connecting circuit of the microprocessor are as follows:
the A end of a 485 output bus of the two-dimensional code scanning module (3) is connected with the A pin of the MAX485 chip, the B end of the 485 output bus of the two-dimensional code scanning module (3) is connected with the B pin of the MAX485 chip,
the pin A of the MAX485 chip is also connected with a resistor R20 and a resistor R21 in parallel, the other end of the resistor R21 is connected with 5V, the pin B of the MAX485 chip is connected with the other end of the resistor R20 and the resistor R19 in parallel, and the resistor R19 is grounded; MAX485 chip VCC pin connects the 5V power, MAX485 chip GND pin ground connection, MAX485 chip DI pin and the PB9 pin and the resistance R22 one end of STM32F103, MAX485 chip DE pin and RE pin connect back connecting resistance R23 one end and triode Q9 collecting electrode respectively, resistance R23 another termination 5V power, triode Q9 projecting pole ground connection, triode Q9 base connects the resistance R22 other end, MAX485 chip RO pin and STM32F 103's PB8 pin.
8. The two-dimensional code scanning main control unit of claim 7, characterized in that: the two-dimensional code scanning module (3) and a USB interface circuit of the microprocessor are as follows:
the chip comprises a VCC pin of a CH340 chip, a 5V power supply, a GND pin of the CH340 chip, a V3 pin of the CH340 chip, a capacitor 103 and a USB connector, wherein the V3 pin of the CH340 chip is grounded after being connected in series with a capacitor, the UD-pin series resistor R27 of the CH340 chip is connected with a second pin of a USB connector, the UD + pin series resistor R25 of the CH340 chip is connected with a third pin of a USB plug, the PB9 pin of the STM32F103 is connected with a diode D12 and a TXD pin of the CH340 chip in series, the PB8 pin of the STM32F103 is connected with a diode R18 and a RXD pin of the CH340 chip in series, and a Y1 crystal oscillator circuit is arranged between the X pin and the XO pin of the CH340 chip;
the 5V power output end is connected with a resistor R26 in series and then connected with a third pin of a USB plug, and the fourth pin of the USB plug is grounded.
9. The two-dimensional code scanning main control unit of claim 8, wherein: the two-dimensional code scanning main control unit further comprises a power supply, and the power supply comprises; the power supply comprises an AC220-DC24 power module, a voltage reduction circuit and a voltage stabilizing circuit;
after the anode of the output end of the AC220-DC24 power module is connected IN series with a diode D11 and a fuse F1, the other end of the fuse F1 is connected IN parallel with an IN pin of a diode D9, a resistor R10 and an MP2303 chip, the diode D9 is connected IN series with a resistor R11 and then connected with the cathode of the output end of the AC220-DC24 power module and grounded, the other end of the resistor R10 is connected with an EN pin of the MP2303 chip, a BS pin of the MP2303 chip is connected with a capacitor C6, the other end of the capacitor C6 is connected IN parallel with an SW pin and an inductor L1 of the MP2303 chip, the inductor L1 is connected IN series with a resistor R13 and then connected with an FB pin of the MP2303 chip, the connection points of the inductor L1 and the resistor R13 are further connected with the anode of an electrolytic capacitor C12 and the anode of the electrolytic capacitor C13 respectively, the cathode of the electrolytic capacitor C13 and the cathode of the electrolytic capacitor C13 are connected IN parallel with the resistor R13, the resistor R13 and the capacitor C13 are grounded, the other ends of the capacitor C10 and the capacitor C11 are both connected with a COMP pin of an MP2303 chip, an SS pin of the MP2303 chip is grounded after being connected with a capacitor C7 in series, and a 5V power supply output end is arranged at the connection point of the inductor L1 and the resistor R13;
the voltage stabilizing circuit comprises a voltage stabilizing chip ASM1173.3, wherein an IN pin of the voltage stabilizing chip ASM1173.3 is connected with a 5V power output end and a capacitor C35, an OUT pin of the voltage stabilizing chip ASM1173.3 is connected with capacitors C36 and C37 IN parallel, GND pins of the capacitors C35, C36, C37 and ASM1173.3 are all grounded, and the OUT pin is a 3.3V power output end.
CN202120486690.1U 2021-03-08 2021-03-08 Two-dimensional code scanning main control unit Active CN214311769U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202120486690.1U CN214311769U (en) 2021-03-08 2021-03-08 Two-dimensional code scanning main control unit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202120486690.1U CN214311769U (en) 2021-03-08 2021-03-08 Two-dimensional code scanning main control unit

Publications (1)

Publication Number Publication Date
CN214311769U true CN214311769U (en) 2021-09-28

Family

ID=77835846

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202120486690.1U Active CN214311769U (en) 2021-03-08 2021-03-08 Two-dimensional code scanning main control unit

Country Status (1)

Country Link
CN (1) CN214311769U (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115736868A (en) * 2022-12-26 2023-03-07 佳木斯大学 Intelligent wearable blood pressure measuring device and method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115736868A (en) * 2022-12-26 2023-03-07 佳木斯大学 Intelligent wearable blood pressure measuring device and method

Similar Documents

Publication Publication Date Title
CN103682491B (en) The charging method of electric room, charging circuit and electronic equipment
CN101753647A (en) Divide-body mobile phone
CN214311769U (en) Two-dimensional code scanning main control unit
CN103412645A (en) Scanning pen and system both capable of automatically acquiring learning material information
CN205158481U (en) Electronic key
CN202058423U (en) Electronic apparatus
CN214586924U (en) Two-dimensional code scanning device
CN102737212B (en) Handheld checker of second-generation identity card and checking method of handheld checker
CN202331424U (en) External display controller for intelligent hand-held terminal
CN104571277A (en) Portable computer peripheral extension equipment
CN213619438U (en) Multiport combined charging pile
CN113963603A (en) Novel blind person electronic book
CN201936523U (en) Electronic simulative multi-purpose electric energy meter and meter reading training device
CN210295286U (en) Precious lease equipment charges
CN201829139U (en) Portable LED display screen
CN210490502U (en) Sharing treasured cabinet of renting that charges
CN210270974U (en) Digital currency hardware wallet
CN208862583U (en) A kind of charger baby
CN112134335A (en) Portable WiFi treasured that charges
CN205230504U (en) Advertising terminal machine with function is read to ID card
CN205051759U (en) Hot plug external equipment and support hot plug external equipment's mobile terminal
CN216162712U (en) Intercommunication device
CN204408013U (en) A kind of power user intelligent terminal
CN106229767B (en) A kind of adapter, card machine communication system and method
CN209608639U (en) A kind of intelligence outdoor sports multi-function device

Legal Events

Date Code Title Description
GR01 Patent grant
GR01 Patent grant