CN103971494A - Interactive game gun circuit - Google Patents

Interactive game gun circuit Download PDF

Info

Publication number
CN103971494A
CN103971494A CN201310663481.XA CN201310663481A CN103971494A CN 103971494 A CN103971494 A CN 103971494A CN 201310663481 A CN201310663481 A CN 201310663481A CN 103971494 A CN103971494 A CN 103971494A
Authority
CN
China
Prior art keywords
circuit
switch
chip
rifle
ethernet
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.)
Pending
Application number
CN201310663481.XA
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.)
Chongqing Huan Man Science And Technology Ltd
Original Assignee
Chongqing Huan Man Science And Technology Ltd
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 Chongqing Huan Man Science And Technology Ltd filed Critical Chongqing Huan Man Science And Technology Ltd
Priority to CN201310663481.XA priority Critical patent/CN103971494A/en
Publication of CN103971494A publication Critical patent/CN103971494A/en
Pending legal-status Critical Current

Links

Abstract

The invention relates to an interactivegame gun circuit. The circuit comprises an Ethernet communication unit, a gyroscope detection unit, a control unit and a power circuit, wherein data transmission is performed on the Ethernet communication unit and the control unit in an SPI (serial peripheral interface) data communication mode; data transmission is performed on the gyroscope detection unit and the control unit in an I2C (inter-integrated circuit) communication mode; the power circuit provides stable working voltages for all the units; theEthernet communication unitcomprises an Ethernet chip and a communication interface, and the communication interface is connected with the Ethernet chip through an impedance matching circuit; the gyroscope detection unit is connected with a magnetometer sensor; the control unit comprises a main control chip, an IP (internet protocol) dial switchand a gun triggering state detection switch, and both the IP dial switch and the gun triggering state detection switch are connected with the main control chip. With the adoption of the technical scheme, the interactive game gun circuit has the characteristics of high positioning precision, good data processing accuracy and high data transmission speed.

Description

Game interactive rifle circuit
Technical field
The present invention relates to a kind of game interactive rifle circuit.
Background technology
In recent years, interactive game rifle enjoys masses to like, but its ultimate principle of current plinker is according to an infrared transmitter is housed in rifle, sends and closes by the corresponding button control is ultrared.This just requires to be equipped with infrared receiver in corresponding scope, and not only operating process is numerous and diverse, and application is very dumb, is very easily subject to the interference of each side.
In today of Market competition, convenient to use, dirigibility is strong etc. has become the problem that game interactive rifle field user is more and more focused on.The weak point that traditional infrared ray locator meams exists is: the impact that is subject to environment for use due to infrared ray in transmitting procedure causes its setting accuracy low, poor to the accuracy of data processing, in addition, also has the slow problem of data rate.To sum up, comfortableness and the recreational demand that all can not meet existing market of traditional its use of interactive game rifle that only relies on infrared ray location technology.
Summary of the invention
The object of the present invention is to provide a kind of positioning precision high, the game interactive rifle circuit that data processing accuracy is good and data rate is fast, can meet the comfort of existing market to plinker and recreational requirement.
To achieve these goals, the invention provides a kind of game interactive rifle circuit, comprise ethernet communication unit, gyroscope detecting unit, control module and power circuit, wherein, described ethernet communication unit carries out data transmission by SPI data communication mode and described control module, described gyroscope detecting unit carries out data transmission by I2C communication mode and described control module, described power circuit provides stable operating voltage for each unit, described ethernet communication unit comprises Ethernet chip and communication interface, communication interface is connected with Ethernet chip by impedance matching circuit, described gyroscope detecting unit is connected with magnetometer sensor, described control module comprises main control chip, IP toggle switch and button rifle state-detection switch, IP toggle switch is all connected with main control chip with button rifle state-detection switch.
Adopt the game interactive rifle circuit of technique scheme to have following advantage: to produce deviation in various degree because the interference in the various magnetic fields of the easy examined environment of gyroscope detecting unit detection position coordinate time makes corresponding data, as earth magnetism, electronic equipment, ferromagnetic equipment etc., the present invention has adopted gyroscope detecting unit and this gyroscope detecting unit to carry out data transmission by I2C communication mode and described control module, be connected with magnetometer sensor in conjunction with gyroscope detecting unit, first magnetometer sensor detects the magnetic field situation of environment for use, then according to this as reference, the value that gyroscope detecting unit is detected is worth therewith does infinitesimal analysis computing, thereby more approached the True Data of environment for use, therefore, not only promote the accuracy detecting, precision, and promote its conformability to environment for use, owing to adopting ethernet communication unit and this ethernet communication unit to carry out data transmission by SPI data communication mode and control module, the efficiency that has promoted to a great extent data transmission has also ensured the accuracy of data transmission simultaneously, because ethernet communication unit comprises communication interface, communication interface is connected with Ethernet chip by impedance matching circuit, control module comprises main control chip, IP toggle switch and button rifle state-detection switch, IP toggle switch is all connected with main control chip with button rifle state-detection switch, by can be according to the concrete condition of use occasion to the control of IP toggle switch, the address information of flexible configuration game interactive rifle in network layer, user is in the time accessing environment for use first, need utilize IP toggle switch is that each game interactive rifle is set its communication IP address in whole network according to the concrete condition of environment for use, ensure in its use procedure transceiving data normally, detain rifle state-detection switch simultaneously and can realize by main control chip the detection of make-up rifle action, the two is in conjunction with the reliability that has strengthened data information transfer.
As preferred version, consider the promptness of detection and localization data storage, described control module outside is also connected with memory module; In order to configure different startup bootmodes, described control module outside is also connected with startup configuration circuit; Consider the accuracy that accesses first environment for use location, described control module outside is also connected with laser positioning circuit; Consider production debugging and the maintenance of later stage product and the convenience of upgrade job, described control module outside is also connected with on-line debugging, off line program is downloaded mouth; In order to ensure that System on Chip/SoC normally works, described control module outside is also connected with clock circuit, and clock circuit coordinates internal oscillator circuit to produce the pulse signal of certain frequency, for the normal work of System on Chip/SoC provides system clock beat; Consider the reset to control module, described control module outside is also connected with reset circuit, and in power supply electrifying moment, power supply to capacitor charging, rises the voltage at electric capacity two ends by resistance gradually, resets thereby realize.
As preferred version, when accessing environment for use first, four corner points need picking up screen are as a reference point, in order further to promote the accuracy of location, described laser positioning circuit comprises gauge tap group, laser tube, current-limiting resistance, described gauge tap group comprises laser controlling switch and system state detector switch, the minus earth of described laser tube, positive pole is connected with one end of current-limiting resistance, and the other end of current-limiting resistance is connected with one end of described laser controlling switch, and the other end of laser controlling switch is connected with positive source.
As preferred version, in order to realize the detection to working state of system, one end ground connection of described system state detector switch, the other end is connected with described main control chip, and system state detector switch can be realized the switching between location and routine work mode automatically by the internal processes of the main control chip that is attached thereto.
Brief description of the drawings
Fig. 1 is the theory diagram of game interactive rifle circuit embodiments of the present invention;
Fig. 2 is that the circuit of game interactive rifle circuit embodiments of the present invention connects block diagram;
Fig. 3 is the structural representation of game interactive rifle circuit embodiments of the present invention.
Wherein: ethernet communication unit 1; Ethernet chip U3; Communication interface 12; Impedance matching circuit 13; Gyroscope detecting unit 2; Gyroscope sensing detection chip 21; Control module 3; Main control chip U2; Power circuit 4; Magnetometer sensor 5; Memory module 6; Start configuration circuit 7; Switch S 1; Laser positioning circuit 8; Gauge tap group S2; Laser tube 81; Current-limiting resistance R18; On-line debugging mouth, off line program are downloaded mouth 9; Clock circuit 10; Reset circuit 11; IP toggle switch S4; Button rifle state-detection switch S 3.
embodiment
Below in conjunction with drawings and Examples, technical solution of the present invention is further illustrated:
As shown in Figure 1 to Figure 3, the invention provides a kind of game interactive rifle circuit, comprise ethernet communication unit 1, gyroscope detecting unit 2, control module 3 and power circuit 4, wherein, ethernet communication unit 1 carries out data transmission by SPI data communication mode and control module 3, gyroscope detecting unit 2 carries out data transmission by I2C communication mode and control module 3, power circuit 4 provides stable operating voltage for each unit, ethernet communication unit 1 comprises Ethernet chip U3 and communication interface 12, communication interface 12 is connected with Ethernet chip U3 by impedance matching circuit 13, gyroscope detecting unit 2 is connected with magnetometer sensor 5, control module 3 comprises main control chip U2, IP toggle switch S4 and button rifle state-detection switch S 3, IP toggle switch S4 is connected with main control chip U2, button rifle state-detection switch S 3 is connected with the PD2 end of main control chip U2.
Ethernet communication unit:
Communication interface 12 is RJ45 type, impedance matching circuit 13 comprises that network data sends impedance matching circuit, network data receives impedance matching circuit, communication interface 12 internal transformers are connected with input power, network state indication light diode is connected with current-limiting resistance, this current-limiting resistance can guarantee that network state indication light diode always works under safe electric current and voltage, thereby extends its serviceable life, improves reliability.
The sheet choosing of Ethernet chip U3 is connected with the PB12 port of main control chip U2, the work clock SCLK pin of this Ethernet chip U3 is connected to the PB13 port of main control chip U2, MISO pin is connected to the PB14 port of main control chip U2, and MOSI pin is connected to the PB15 port of main control chip U2; Interrupt INT pin is connected to the PA4 port of main control chip U2, and reset pin REST is connected to the PB10 port of main control chip U2, and mode of operation selects pin SEN to be connected to the PB11 port of main control chip U2.
The communication mode of Ethernet chip U3 and extraneous controller has two kinds of parallel data mode and SPI modes, for handled easily, improve the dirigibility arranging, mode of operation selects pin SEN to be connected with resistance R 28, by resistance R 28 is set, this leg signal is drawn high, or from main control chip U2 directly a high level of input can to select the transmission mode of its data be SPI, therefore, mode of operation selects pin SEN by selecting the state of R28 can realize the setting of its mode of operation.
Ethernet chip U3 is W5100, for the power supply of better quality is provided to W5100, thereby suitably improves its performance, makes its work more reliable and more stable, and W5100 is externally connected to one-level LC filtering circuit.
In order to ensure the normal work of W5100, timeticks signal is provided, this W5100 outside is also connected with clock circuit.
W5100 outside also connects RC hardware reset circuit, and this RC hardware reset circuit comprises resistance R 15, capacitor C 23, and power supply charges to capacitor C 23 by resistance R 15, resets thereby realize low level.In this application, can select as the case may be software reset or RC reset mode.
The each power port of W5100 is equipped with filter element, is intended to the corresponding interference of filtering, guarantees the stable of corresponding power supply.
Control module:
Control module 3 comprises main control chip U2, reset circuit 11, and clock circuit 10, main control chip U2 of the present invention is the high-performance based on ARM Cortex-M3 kernel, low cost, the low-power chip STM32F103RET6 that ST company produces.
The pin of IP toggle switch S4 is connected with main control chip U2 respectively, and IP toggle switch S4 is for arranging the communication IP address of single circuit board at network.It can arrange scope is between 0-255.User is in the time that first connection enters environment for use, need utilize IP toggle switch S4 is that each rifle is set its communication IP location in whole network according to the concrete condition of environment for use, it is every behind rifle setting communication IP address only having correct conflict free, the normal transceiving data of guarantee.
The analog power feeder ear of main control chip U2 is connected with after LC filtering simulates power supply, thereby for the ADC of main control chip U2 provides ADC power supply more accurately, thereby improve the precision that ADC gathers.
One end of resistance R 27 is connected to PA15, and the other end is connected to the base stage of PNP triode, triode emitter be connected to power supply by an interface, its current collection is examined direct ground connection.
Consider the promptness of detection and localization data storage, control module 3 outsides are also connected with storage module 6, storage module 6 is eeprom memory, in order to configure different startup bootmodes, control module 3 outsides are also connected with and start configuration circuit 7, consider the accuracy that accesses first environment for use location, control module 3 outsides are also connected with laser positioning circuit 8, consider production debugging and the maintenance of later stage product and the convenience of upgrade job, control module 3 outsides are also connected with on-line debugging, off line program is downloaded mouth 9, normally work in order to ensure System on Chip/SoC, control module 3 outsides are also connected with clock circuit 10, clock circuit 10 coordinates internal oscillator circuit to produce the pulse signal of certain frequency, for the normal work of System on Chip/SoC provides system clock beat, consider the reset to control module 3, control module 3 outsides are also connected with reset circuit 11, in power supply electrifying moment, power supply by resistance to capacitor charging, make the voltage at electric capacity two ends increase gradually, thereby realize, STM32F103RET6 is resetted.
Eeprom memory is connected with power filtering capacitor C24, for eeprom memory provides more level and smooth power supply, more stable to guarantee its serviceability, improves data storage and the accuracy of reading.R16, R17 are as the pull-up resistor of I2C interface, one end is pulled to power supply, and the other end is connected to respectively SCL and the SDA pin of eeprom memory, in addition, SCL end is also connected to the PB0 port of STM32F103RET6, and SDA end is also connected to the PB1 port of STM32F103RET6.
When accessing environment for use first, four corner points need picking up screen are as a reference point, in order further to promote the accuracy of location, laser positioning circuit 8 comprises gauge tap group S2, laser tube 81, current-limiting resistance R18, gauge tap group S2 comprises laser controlling switch and system state detector switch, the minus earth of laser tube 81, positive pole is connected with one end of current-limiting resistance R18, the other end of current-limiting resistance R18 is connected with one end of described laser controlling switch, and the other end of laser controlling switch is connected with positive source.
In order to realize the detection to system state, one end ground connection of system state detector switch, the PC6 end of the other end and main control chip U2 is connected, and system state detector switch can be realized the switching of locating between routine work mode automatically by the internal processes of the main control chip U2 that is attached thereto.Most time, all circuit is all operated in routine work mode, circuit is in the time accessing environment for use first, need press laser controlling switch, four corner points of picking up corresponding screen by laser beam location are reference point, main control chip U2 also arrives the state of laser controlling switch by the PC6 Port detecting being connected with laser controlling switch, thereby automatically realizes the switching of relevant work mode by internal processes.
Start configuration circuit 7 and comprise resistance R 7, resistance R 8, resistance R 9 and switch S 1, one end ground connection of resistance R 7, the other end is connected to the PB2 port of main control chip U2; One end ground connection of resistance R 9, the other end is connected to respectively the BOOT0 pin of main control chip U2 and one end of resistance R 8, and the other end of resistance R 8 is connected to one end of switch S 1, and the other end of switch S 1 is connected to positive source.
In addition, control module 3 also comprises the filter capacitor of core power, and the filter capacitor of this core power is connected with STM32F103RET6, more stablizes level and smooth power supply so that it obtains, thereby improves serviceability.
Gyroscope detecting unit:
Gyroscope detecting unit 2 comprises gyroscope sensing detection chip 21, and gyroscope sensing detection chip is MPU6050, and MPU6050 carries out data transmission by I2C and main control chip STM32F103RET6.MPU6050 respective electrical source port is also provided with filter capacitor, disturb for the spike that absorbs power supply, for gyrostabilization work provides good power supply guarantee, R19, R20 are I2C pull-up resistor, their one end is connected to power supply, and the other end is connected to respectively SDA and the SCL pin of MPU6050, simultaneously, its SDA pin is also connected directly to the PC4 port of STM32F103RET6 by interface, SCL pin is connected directly to PC5 port by port.
Consider the interference in the various magnetic fields of the gyroscope detecting unit easy examined environment of 2 detection position coordinate time and make corresponding data produce deviation in various degree, as earth magnetism, electronic equipment, ferromagnetic equipment etc.Therefore, gyroscope detecting unit 2 is connected with magnetometer sensor 5, first magnetometer sensor 5 detects the magnetic field situation of environment for use in the present invention, then according to this as reference, the value that gyroscope detecting unit 2 is detected is worth therewith does infinitesimal analysis computing, thereby is more approached the True Data of environment for use.The setting of gyroscope detecting unit 2 is not only for the sensing of muzzle, also for the squatting down of identification user, dodge, advance, retreat, the exercises such as jump, gyroscope detecting unit 2 can be realized exercise data is converted into volume coordinate and attitude with the combination of magnetometer sensor 5.
Magnetometer sensor 5 respective electrical source ports are also provided with filter capacitor, disturb for the spike that absorbs power supply.
When first access environment for use or change environment for use, first correctly access power lead and netting twine.Secondly, stir IP toggle switch S4 and set the singly IP mailing address in network rifle, and then press station-keeping mode switch, under laser beam auxiliary, pick up successively four reference point of screen according to order from left to right, from top to bottom and press respectively the coordinate of shooting switch location each point, then close positioning switch, finally restarting power switch can do shooting action according to cursor in screen again.Meanwhile, when later each use, only need power-on to get final product normal running, do not need to relocate reference position.
Above-described is only the preferred embodiment of the present invention; should be understood that; for a person skilled in the art; do not departing under the prerequisite of structure of the present invention; can also make some distortion and improvement; these also should be considered as protection scope of the present invention, and these can not affect effect of the invention process and practical applicability.

Claims (4)

1. a game interactive rifle circuit, comprise ethernet communication unit, gyroscope detecting unit, control module and power circuit, it is characterized in that: described ethernet communication unit carries out data transmission by SPI data communication mode and described control module, described gyroscope detecting unit carries out data transmission by I2C communication mode and described control module, described power circuit provides stable operating voltage for each unit, described ethernet communication unit comprises Ethernet chip and communication interface, communication interface is connected with Ethernet chip by impedance matching circuit, described gyroscope detecting unit is connected with magnetometer sensor, described control module comprises main control chip, IP toggle switch and button rifle state-detection switch, IP toggle switch is all connected with main control chip with button rifle state-detection switch.
2. game interactive rifle circuit according to claim 1, is characterized in that: described control module outside is also connected with storage module, starts configuration circuit, laser positioning circuit, and on-line debugging, off line program are downloaded mouth, clock circuit and reset circuit.
3. according to the game interactive rifle circuit described in any one in claim 1 or 2, it is characterized in that: described laser positioning circuit comprises gauge tap group, laser tube, current-limiting resistance, described gauge tap group comprises laser controlling switch and system state detector switch, the minus earth of described laser tube, and positive pole is connected with one end of current-limiting resistance, the other end of current-limiting resistance is connected with one end of described laser controlling switch, and the other end of laser controlling switch is connected with positive source.
4. game interactive rifle circuit according to claim 3, is characterized in that: one end ground connection of described system state detector switch, the other end is connected with described main control chip.
CN201310663481.XA 2013-12-10 2013-12-10 Interactive game gun circuit Pending CN103971494A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310663481.XA CN103971494A (en) 2013-12-10 2013-12-10 Interactive game gun circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310663481.XA CN103971494A (en) 2013-12-10 2013-12-10 Interactive game gun circuit

Publications (1)

Publication Number Publication Date
CN103971494A true CN103971494A (en) 2014-08-06

Family

ID=51240928

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310663481.XA Pending CN103971494A (en) 2013-12-10 2013-12-10 Interactive game gun circuit

Country Status (1)

Country Link
CN (1) CN103971494A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101829428A (en) * 2010-04-14 2010-09-15 深圳市腾阳机电设备有限公司 Computer game magnetic gun
US20120086630A1 (en) * 2010-10-12 2012-04-12 Sony Computer Entertainment Inc. Using a portable gaming device to record or modify a game or application in real-time running on a home gaming system
CN102580312A (en) * 2012-03-13 2012-07-18 刘阳 Shooting game simulation system
CN202724664U (en) * 2012-05-30 2013-02-13 深圳市宇恒互动科技开发有限公司 Game gun capable of breaking away from game and being used independently and target system
US20130265225A1 (en) * 2007-01-05 2013-10-10 Invensense, Inc. Controlling and accessing content using motion processing on mobile devices

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130265225A1 (en) * 2007-01-05 2013-10-10 Invensense, Inc. Controlling and accessing content using motion processing on mobile devices
CN101829428A (en) * 2010-04-14 2010-09-15 深圳市腾阳机电设备有限公司 Computer game magnetic gun
US20120086630A1 (en) * 2010-10-12 2012-04-12 Sony Computer Entertainment Inc. Using a portable gaming device to record or modify a game or application in real-time running on a home gaming system
CN102580312A (en) * 2012-03-13 2012-07-18 刘阳 Shooting game simulation system
CN202724664U (en) * 2012-05-30 2013-02-13 深圳市宇恒互动科技开发有限公司 Game gun capable of breaking away from game and being used independently and target system

Similar Documents

Publication Publication Date Title
KR102595142B1 (en) Active pen and touch display
KR102036401B1 (en) Device for aiding the location in real time of a self-powered mobile element
CN107921311B (en) Motion sensor in sports equipment
CN104750303B (en) Touch system, touch panel and display device
CN105045414B (en) A kind of stylus, implementation method and a kind of touch-control system
CN110998705B (en) Electronic device and display for reducing leakage current
WO2022078495A1 (en) Stylus and control method therefor, and electronic device
CN103226406B (en) Touch-screen input-output apparatus technology
CN106527830B (en) Control method of electromagnetic-capacitor dual-mode touch system
CN106980393A (en) Intelligent position follows the trail of manipulation pen and posture original data processing method
CN103971494A (en) Interactive game gun circuit
CN103399641B (en) A kind of method of terminal control, sensing module and terminal
CN108873759A (en) A kind of circuit, circuit protection method and electronic equipment
CN105022484B (en) A kind of terminal operation method and user terminal
CN103034394A (en) Multimedia device having detachable controller
CN103163395A (en) Power on-off testing device
CN109060070A (en) A kind of detection system and method that the automatic liquid delivery based on probe-type is used up
US9030380B1 (en) Method, a device and a system for interacting with the touch-sensitive electronic display of a computer
CN218728045U (en) Multi-source sensor combined navigation positioning recording system
CN106781351A (en) Intelligent standing long jump test system
CN108460858B (en) Intelligent match timing system
CN209514567U (en) A kind of virtual reality interaction handle and virtual reality interactive system
CN105843119A (en) Multinode angle detection system for autonomous underwater vehicle
CN203550965U (en) Course position indicator
CN209204617U (en) Throwing cup ball game cup and system based on RFID

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20140806

WD01 Invention patent application deemed withdrawn after publication