Nothing Special   »   [go: up one dir, main page]

CN100375643C - Electronic judging device for military chess - Google Patents

Electronic judging device for military chess Download PDF

Info

Publication number
CN100375643C
CN100375643C CNB2004100540307A CN200410054030A CN100375643C CN 100375643 C CN100375643 C CN 100375643C CN B2004100540307 A CNB2004100540307 A CN B2004100540307A CN 200410054030 A CN200410054030 A CN 200410054030A CN 100375643 C CN100375643 C CN 100375643C
Authority
CN
China
Prior art keywords
circuit
chess piece
chess
resistance
voltage
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.)
Expired - Fee Related
Application number
CNB2004100540307A
Other languages
Chinese (zh)
Other versions
CN1586687A (en
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.)
Fudan University
Original Assignee
Fudan University
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 Fudan University filed Critical Fudan University
Priority to CNB2004100540307A priority Critical patent/CN100375643C/en
Publication of CN1586687A publication Critical patent/CN1586687A/en
Application granted granted Critical
Publication of CN100375643C publication Critical patent/CN100375643C/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Power Sources (AREA)

Abstract

The present invention relates to an electronic judgment device for military chess, which uses a lithium batter (3V) for supplying power. Each piece is provided with different resistors. When the piece is arranged in a specified position of the judgment device, the device is switched on, and the voltage division input circuits of the resistors of the pieces generate two ways of voltage division signals, wherein the signals are different according to the difference of the pieces. An upper limit voltage circuit and a lower limit voltage circuit are arranged in the judgment device to eliminate the adverse effects due to the voltage variation of the battery and the errors of the elements in the circuits. An eight-bit MCU single chip computer is used for generating ramp signals, wherein the ramp signals are compared with the four input signals through four comparators of an LM339 chip to output four pulse signals. The single chip computer measures the width of the pulse signals to obtain four numerical values, wherein the numerical values are compared to obtain the relative size relationship of the pieces, and the single chip computer displays the relative size of the pieces through a light emitting diode. The device can replace an original military chess judger.

Description

A kind of military chess electronic judgement device
Technical field
The invention belongs to chess contest technical field, be specially a kind of military chess electronic judgement device.
Background technology
Investigation on the net shows, Chinese chess, and military chess, the go player is very many.Chinese chess, go all can be played chess, and the military chess laxative remedy is based on dark chess, and exquisite march is structured the formation, and when two people or four-player are played chess, need other people to take on the referee.The referee is dry as dust, has influenced the enjoyment that military chess brings to people.
The present invention is as a kind of military chess electronic judgement device, and two chess pieces of the both sides that will play chess during use are placed on this device and go up assigned address, a little firmly presses two chess pieces toward desktop one, and the LED lamp of chess piece both sides is indicated two chess piece victorys or defeats on the device.Having three kinds of situations takes place: simultaneously luminous, two chess piece doulbe-sides' victorys are described, bomb-teacher for example, regimental commander-regimental commander; Have only luminously on one side, luminous chess piece win be described, engineer-land mine for example, land mine-army commander; By not luminous, illustrate and dig army flag that victory or defeat is determined in any case.
Summary of the invention
The objective of the invention is to propose a kind of military chess electronic judgement device, to remove referee's work dry as dust from.
The military chess electronic judgement device of the present invention's design, resistance and a resistance value size judging circuit of being varied in size by the one group of resistance that is arranged in the army chess piece constitute.Wherein, the resistance of the resistance in the army chess piece is pressed the ascending or descending setting of following order: bomb, land mine, commandant, army commander, teacher, brigade commander, regimental commander, battalion commander, company commander, platoon leader, engineer, army flag, the resistance of the resistance in the chess piece of the same race is identical, and the two ends metal leg of resistance is drawn front two side positions that are placed on chess piece; Judging circuit is formed by connecting through circuit by interface circuit, the bound voltage generation circuit of power interface circuit, single chip machine controlling circuit, oscillating circuit, display circuit, voltage comparator circuit, two chess pieces (wherein resistance).With control to circuit supply whether wherein, power interface circuit is connected with battery by switch or disconnects; The interface circuit of two chess pieces can be respectively contacts with resistance pin in both sides' chess piece, so that with the resistance value input circuit in this chess piece; The potential-divider network that the bound voltage generation circuit is made up of one group of resistance produces the bound input voltage; Voltage comparator circuit has four groups, produces voltage signal, the bound voltage signal of both sides' chess piece respectively; Single chip machine controlling circuit provides power supply and pulse signal to voltage comparator circuit, make comparator work, receive both sides' chess piece voltage signal, bound voltage signal that voltage comparator circuit produces simultaneously, will judge mutually between them, thereby differentiate both sides' chess piece size; Oscillating circuit drives single-chip microcomputer work; Display circuit shows the size of chess piece.The structured flowchart of judging circuit is seen shown in Figure 6.
Among the present invention, can adopt lithium battery, switch connection when finger is pressed judge device, circuit working as power supply; Device is provided with 4 metal pads, can be respectively contacts with resistance leading foot in two chess pieces (each one of both sides); Potential-divider network in the device produces bound voltage, with the adverse effect that error was produced of components and parts in the variation of eliminating cell voltage and the circuit; Produce oblique wave by Single-chip Controlling; Constitute four comparator circuits by a LM339 chip, signal voltage, the bound voltage of the oblique wave that single-chip microcomputer is produced and both sides' chess piece (2) generation compare respectively, produce four tunnel pulses output; Single-chip microcomputer detects four tunnel pulse widths simultaneously, obtains 4 value: XM1, XM2, YN1, YN2, judges the relative size of two chess pieces in view of the above.
The alternative military chess referee's of apparatus of the present invention work accurately, conveniently, and can increase contest enjoyment.
Description of drawings
Fig. 1 is a power interface circuit.
Fig. 2 is two chess piece interface circuits.
Fig. 3 is display circuit and oscillating circuit.
Fig. 4 is interface control circuit and bound voltage generation circuit.
Fig. 5 is a voltage comparator circuit.
Fig. 6 is the circuit structure block diagram of this device.
Fig. 7 moves the engineering block diagram for the judge of this device.
Number in the figure: 1 is power interface circuit, and 2 is single chip machine controlling circuit, and 3 is display circuit, and 4 is oscillating circuit, and 5 is the chess piece interface circuit, and 6 is voltage comparator circuit, and 7 is the bound voltage generation circuit.
The specific embodiment
Further describe the present invention below by embodiment and accompanying drawing.
Judge's electronic circuit involved in the present invention is made of 7 parts:
With control to circuit supply whether Fig. 1 is a power interface, be connected with battery or disconnect by switch.The positive pole of 3V lithium battery is connected with the VCC signal of circuit by pad J2, J22, J222, the J2222 of socket, negative pole is connected on the J5 pad, S1 is a press button, one end is connected with the J5 pad, the other end is connected with the earth signal of circuit, and the VCC of the both positive and negative polarity of lithium battery and circuit and ground were connected respectively when button was pressed, to circuit supply, disconnect when not pressing, reduce power supply power consumption with this;
Fig. 2 is the interface circuit of two chess pieces, can be respectively contacts with resistance pin in both sides' chess piece, so that with the resistance value input circuit in this chess piece.Wherein, J6, J4, R17 constitute one group, and J7, J3, R18 constitute another group.With one group is that example illustrates its effect.There is a resistance chess piece inside, and the two ends metal leg of resistance is drawn front two side positions that are placed on chess piece.On the PCB figure that J6, J4 is gold-plated with permanent maintenance good conductive state, its size is at will put just with chess piece with the position can connect J6 respectively with the resistance two ends in the chess piece, J4 is as the criterion.During work, the resistance one end ground connection in the chess piece, the other end is connected with resistance R 17 1 ends, and the R17 other end is connected on the VCC signal.The intermediate voltage signal INPUTI of output changes and changes along with the resistance sizes in the chess piece.
The first half of Fig. 3 is two groups of display circuits, shows the size of chess piece.By light emitting diode D1, resistance R 9, light emitting diode D2, resistance R 20 constitute respectively.Now with a group profile.One of diode D1 terminates on the VCC signal, and the other end is connected with the end of R9.The other end of R9 is connected with control signal JWIN.When JWIN is low, have electric current to flow through D2, D2 is luminous.The effect of R9 is the brightness of regulating D2, and the little then D9 of R9 is too bright, and power consumption is also big, otherwise then dark, power consumption is little.The Lower Half of Fig. 3 is an oscillating circuit, drives the work of EM78P156ELP single-chip microcomputer.Be made of R16, C2, C1, the effect of C1 is a stabilized power source, the middle outputting oscillation signal OSC1 that R16, C2 connect, and the frequency of R16, the more little OSC1 of C2 is just high more, represents during C2=0 and can cancel.The frequency of OSC1 is high more, and the power consumption of EM78P156ELP is also just big more.The design adopts the high-frequency strategy, and the time that judges is short as far as possible, enters low power consumpting state during demonstration, thereby reaches the purpose that reduces power consumption.
The first half of Fig. 4 is the interface control section of EM78P156ELP, be responsible for providing power supply to voltage comparator circuit, and pulse enable signal comparator work, receive both sides' chess piece voltage signal, bound voltage signal that voltage comparator circuit produces simultaneously, to judge mutually between them, thereby differentiate both sides' chess piece size.Chip 1,2 pin is vacant need not; Since adopt the RC mode of oscillation, need not so 15 pin are vacant; Without the input function of RTCC, so move VCC to on it; Utilize the internal reset circuit of chip, so MCLR meets VCC; 5 pin ground connection, 14 pin meet VCC, to chip power supply; 6, the common in case of necessity circuit supply in Fig. 5 of 10 bipods, the voltage of the voltage of 6 pin 〉=10 pin; 13 pin output pulse signal SWV, purpose is to produce oblique wave; 7, the comparative result of 8,11,12 input Fig. 5 is in order to judge the chess piece size.The Lower Half of Fig. 4 is the bound voltage generation circuit, and the potential-divider network by one group of resistance is formed produces the bound input voltage.Constitute branch resistance network by R4, R7, R12, internal node output LV, HV bound signal.The existence of bound signal has been offset the voltage of 3V lithium battery because long-time the use causes the adverse effect that descends and produce, has also offset the adverse effect that the deviation of components and parts produces in the circuit simultaneously.
Fig. 5 is a voltage comparator circuit, has four groups, produces voltage signal, the bound voltage signal of both sides' chess piece respectively.By the power supply of the pressure reduction on 6,10 bipods of EM78P156ELP, if pressure reduction is 0, comparison circuit will not worked during work, thereby reach the purpose that reduces power consumption.One of R13 termination VLD voltage, the other end is connected with C3, and the C3 other end is connected on the pulse SWV signal, intermediate node output ramp signal RAMP.When SWV=VLD, RAMP=VLD; When the SWV flip-flop became 0, RAMP also became 0 immediately, rose to VLD gradually in a period of time T subsequently; R13 is more little, C3 is more little, and T is short more.4 groups of voltage comparator circuits of Fig. 5 are called 1,2,3,4 group from top to bottom.The RAMP signal is connected on the positive input terminal of 4 groups of comparators by R2, R5, R8, R11 respectively.When the voltage of RAMP during less than the voltage on the comparator negative terminal, the output result is 0, otherwise is VLD.1,2 groups negative input end introduce voltage signal INPUTI, the INPUTJ of two chess pieces respectively by R1, R3, with the RAMP signal relatively after, produce ADVI, ADVJ output signal; 3,4 groups negative input end is introduced LV, HV bound signal by R6, R10 respectively, with the RAMP signal relatively after, produce TESTI, TESTJ output signal, 4 output signals are delivered to EM78P156ELP respectively after drawing on resistance R 14, R15, R19, the R21.
Electronic judgement operation block diagram is seen shown in Figure 7, and concrete steps are as follows:
(1) single-chip microcomputer is powered to comparison circuit, sends pulse signal and produces ramp signal;
(2) record comparison circuit output pulse signal width adopts method slowly but surely, increases progressively numeration before the arrival threshold values, and the value of measuring 4 voltage ADVI, ADVJ, TESTI, TESTJ correspondence synchronously is respectively XM1, XM2, YN1, YN2;
(3) detect at bomb: XM1 (XM2)=0 o'clock, chess piece must be bomb, and two chess pieces are size equally, doulbe-sides' victory;
(4) detect land mine: remaining situation, during XM1 (XM2)<YN1, chess piece is a land mine, if this moment is XM2 (XM1)〉YN2, and another chess piece be the engineer, the engineer wins land mine and fails; Otherwise land mine is won all the other and is failed;
(5) 9 rank resistance ratios are: when commandant, army commander, teacher, brigade commander, regimental commander, battalion commander, company commander, platoon leader, engineer, XM1<=XM2, and the same size of two chess pieces during XM2<=XM1+1, doulbe-sides' victory, otherwise little win is defeated greatly;
(6) stop to show the result to the comparison circuit power supply.
Among the present invention, the setting of the resistance value of each chess piece size can be exemplified below: army flag: 10M, engineer: 15K, platoon leader: 8.2K, company commander: 7.5K, battalion commander: 6.2K, regimental commander: 5.1K, brigade commander: 4.3K, teacher: 3K, army commander: 2.4K, commandant: 2K, land mine: 1.3K, bomb: OK.
Implement in the process of the present invention, the principle of Electronics Engineer in according to the present invention adopts single-chip microcomputer MDT2005 as controller, download the SDK of MDT2005 from the Internet, the software flow that provides according to the present invention is designed control software, generates the binary system programming file of MDT2005.Shine the schematic diagram that draws shown in the accompanying drawing with PROTEL circuit diagram design software.The placement schemes that Electronics Engineer and art work personnel consult to plan jointly components and parts adopts the paster components and parts, the PCB figure that draws beautiful.From PCB figure generator device list.Chess piece resistance pin pad on the PCB figure should be made suitable size and conveniently puts chess piece to make things convenient for the chess player, and wants gold-plated anti-oxidation.

Claims (3)

1. military chess electronic judgement device, it is characterized in that resistance and a resistance value size judging circuit of being varied in size by the one group of resistance that is arranged in the army chess piece constitute, the resistance of the resistance in the army chess piece is pressed the ascending or descending setting of following order: bomb, land mine, commandant, army commander, teacher, brigade commander, regimental commander, battalion commander, company commander, platoon leader, engineer, army flag, the resistance of the resistance in the chess piece of the same race is identical, and the two ends metal leg of resistance is drawn front two side positions that are placed on chess piece; Judging circuit is formed by connecting through circuit by interface circuit, the bound voltage generation circuit of power interface circuit, single chip machine controlling circuit, oscillating circuit, display circuit, voltage comparator circuit, two chess pieces, wherein, with control to circuit supply whether power interface circuit is connected with power supply by switch or disconnects; The interface circuit of two chess pieces can be respectively contacts with resistance pin in both sides' chess piece, so that with the resistance value input circuit in this chess piece; The potential-divider network that the bound voltage generation circuit is made up of one group of resistance produces the bound input voltage; Voltage comparator circuit has four groups, produces voltage signal, the bound voltage signal of both sides' chess piece respectively; Single chip machine controlling circuit provides power supply and pulse signal to voltage comparator circuit, makes comparator work, receives both sides' chess piece voltage signal, bound voltage signal that voltage comparator circuit produces simultaneously, and differentiates both sides' chess piece size; Oscillating circuit drives single-chip microcomputer work; Display circuit shows the size of chess piece.
2. military chess electronic judgement device according to claim 1 is characterized in that:
(1) utilize lithium battery as power supply, switch connection when finger is pressed judge device, circuit working;
(2) there are 4 metal pads to contact with resistance leading foot in two chess pieces respectively;
(3) inner resistor network produces bound voltage;
(4) there is a Single-chip Controlling to produce oblique wave; The signal voltage that has four comparator circuits that LM339 chip constitutes respectively this oblique wave and both sides' chess piece to be produced, upper and lower limit voltage is compared, and produces four tunnel pulses and exports;
(5) single-chip microcomputer detects the width of four tunnel pulses simultaneously, obtains width value XM1, XM2, YN1, the YN2 of 4 tunnel pulses, judges the relative size of two chess pieces in view of the above.
3. method of differentiating the chess piece size according to claim 1 in the military chess electronic judgement device is characterized in that concrete steps are as follows:
(1) single-chip microcomputer is powered to comparison circuit, sends pulse signal and produces ramp signal;
(2) record comparison circuit output pulse signal width adopts method slowly but surely, increases progressively numeration before the arrival threshold values, measures the value of 4 voltage ADVI, ADVJ, TESTI, TESTJ correspondence synchronously, is designated as XM1 respectively, XM2, YN1, YN2;
When (3) detecting bomb: XM1 or XM2=0, chess piece must be bomb, and two chess pieces are size equally, doulbe-sides' victory;
(4) detect land mine: remaining situation, during XM1<YN1, chess piece is a land mine, and this moment, if another chess piece be the engineer XM2>YN2, and the engineer wins land mine and fails; Otherwise land mine is won all the other and is failed; Perhaps during XM2<YN1, chess piece is a land mine, and this moment, if another chess piece be the engineer XM1>YN2, and the engineer wins land mine and fails; Otherwise land mine is won all the other and is failed;
(5) 9 rank resistance ratios are: when commandant, army commander, teacher, brigade commander, regimental commander, battalion commander, company commander, platoon leader, engineer, XM1<=XM2, during and XM2<=XM1+1, two chess pieces are size equally, doulbe-sides' victory; Otherwise little win is defeated greatly;
(6) stop to show the result to the comparison circuit power supply;
Here ADVI, ADVJ are the voltage signal of both sides' chess piece, and XM1, XM2 are corresponding signal pulse width, and TEST1, TESTJ are the bound voltage signal of both sides' chess piece, and YN1, YN2 are corresponding signal pulse width.
CNB2004100540307A 2004-08-26 2004-08-26 Electronic judging device for military chess Expired - Fee Related CN100375643C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2004100540307A CN100375643C (en) 2004-08-26 2004-08-26 Electronic judging device for military chess

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2004100540307A CN100375643C (en) 2004-08-26 2004-08-26 Electronic judging device for military chess

Publications (2)

Publication Number Publication Date
CN1586687A CN1586687A (en) 2005-03-02
CN100375643C true CN100375643C (en) 2008-03-19

Family

ID=34603036

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2004100540307A Expired - Fee Related CN100375643C (en) 2004-08-26 2004-08-26 Electronic judging device for military chess

Country Status (1)

Country Link
CN (1) CN100375643C (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103585750A (en) * 2013-11-13 2014-02-19 覃有志 Military chess with function of automatic judgment of electronic chess pieces
CN108970099A (en) * 2018-09-25 2018-12-11 吉林大学 A kind of Intelligent electronic chess board based on voltage divider principle

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN86203979U (en) * 1986-07-31 1987-09-12 王鲁云 Automatic umpire set for chess games
CN2195405Y (en) * 1994-08-23 1995-04-26 北京汇佳物产技术公司 Full-automatic charger circuit for light welding machine power supply
CN2444660Y (en) * 2000-10-24 2001-08-29 杨永年 Intelligent notary millitary chess
CN2574741Y (en) * 2002-09-20 2003-09-24 吴逢时 Rotating jig-saw puzzles
CN1453758A (en) * 2002-04-25 2003-11-05 夏普株式会社 Display driving apparatus and display with the same apparatus

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN86203979U (en) * 1986-07-31 1987-09-12 王鲁云 Automatic umpire set for chess games
CN2195405Y (en) * 1994-08-23 1995-04-26 北京汇佳物产技术公司 Full-automatic charger circuit for light welding machine power supply
CN2444660Y (en) * 2000-10-24 2001-08-29 杨永年 Intelligent notary millitary chess
CN1453758A (en) * 2002-04-25 2003-11-05 夏普株式会社 Display driving apparatus and display with the same apparatus
CN2574741Y (en) * 2002-09-20 2003-09-24 吴逢时 Rotating jig-saw puzzles

Also Published As

Publication number Publication date
CN1586687A (en) 2005-03-02

Similar Documents

Publication Publication Date Title
CN100375643C (en) Electronic judging device for military chess
CN201262639Y (en) Frontend panel test device
CN209895534U (en) Be applied to multi-functional fault setting ware of whole car teaching examination
CN201063214Y (en) Electronic building block for electricity demonstration
CN201155947Y (en) Animation firework control device
CN213810551U (en) LED music module capable of being randomly combined
CN211375971U (en) Electronic remote control doorbell teaching aid for children intelligence development
CN202961899U (en) Pattern signal emitting device and luminous toy
CN107728607A (en) A kind of kitchen range IGNITION CONTROL board test device and method of testing
CN211555269U (en) Electronic welcome device intelligence-developing teaching aid for children
CN201359628Y (en) Circuit for judging whether plugging element is plugged in place or not
CN220543072U (en) Railway signal relay resistance test board
CN203417453U (en) Automatic timing chessboard
CN206041083U (en) Combination socket
CN202453871U (en) Reset circuit simulation functional board for desktop computer
CN207196434U (en) A kind of any interpolation is bright building blocks square lamp
CN202949098U (en) Universal alternating current/direct current plug with lamp within wide voltage range
CN202332026U (en) Simulative function board for desktop computer interface circuit
CN205827124U (en) A kind of electronic clock of punctual timing
CN105157059A (en) Locking and self-extinguishing type electronic cigarette lighter
CN211435049U (en) Infrared battle game machine
CN201163355Y (en) Minimum system module of 89S51 single-chip
CN214586487U (en) System with multifunctional chip development and test
CN211828117U (en) Anti-interference voice playing device of remote control
CN202008767U (en) Automatic control demonstrating instrument with diode

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
C17 Cessation of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20080319

Termination date: 20100826