CN218866522U - Automatic timing device for chess games - Google Patents

Automatic timing device for chess games Download PDF

Info

Publication number
CN218866522U
CN218866522U CN202221872939.3U CN202221872939U CN218866522U CN 218866522 U CN218866522 U CN 218866522U CN 202221872939 U CN202221872939 U CN 202221872939U CN 218866522 U CN218866522 U CN 218866522U
Authority
CN
China
Prior art keywords
switch
microcontroller
chess
timer
timing device
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
CN202221872939.3U
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.)
Shanghai Gezhi High School
Original Assignee
Shanghai Gezhi High School
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 Shanghai Gezhi High School filed Critical Shanghai Gezhi High School
Priority to CN202221872939.3U priority Critical patent/CN218866522U/en
Application granted granted Critical
Publication of CN218866522U publication Critical patent/CN218866522U/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02BCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
    • Y02B20/00Energy efficient lighting technologies, e.g. halogen lamps or gas discharge lamps
    • Y02B20/40Control techniques providing energy savings, e.g. smart controller or presence detection

Landscapes

  • Electronic Switches (AREA)

Abstract

The utility model relates to the technical field of electronics, in particular to an automatic timing device for chess games, which comprises a matrix switch, wherein the matrix switch comprises a plurality of switch units corresponding to the checkerboard arrangement, and each switch unit comprises a first switch and a second switch connected with the first switch; a microcontroller connected to the matrix switch; the first timer is connected with the microcontroller through a first relay, and the second timer is connected with the microcontroller through a second relay; the utility model has reliable triggering, accurate and fair timing when the child falls, simple structure and high reliability; the expansibility is strong, and the chess manual can be automatically recorded.

Description

Automatic timing device for chess match
Technical Field
The utility model relates to the field of electronic technology, concretely relates to automatic timer's device in chess match.
Background
In the chess competition, strict competition time is specified, a traditional chess competition usually uses a chess clock for timing, specified times are required to be counted within specified time limits in the competition process, and a chess player needs to press the chess clock in each step in the mode. Not only wastes time, but also disperses the attention of players.
SUMMERY OF THE UTILITY MODEL
The utility model aims at providing an automatic timing device for chess games, which solves the technical problems;
an automatic timing device for chess games comprises a timing device,
the matrix switch comprises a plurality of switch units arranged corresponding to the checkerboard, and each switch unit comprises a first switch and a second switch connected with the first switch;
a microcontroller connected to the matrix switch;
the first timer is connected with the microcontroller through a first relay, and the second timer is connected with the microcontroller through a second relay.
Preferably, the switching unit includes a switching unit,
one end of the first switch is connected with a first signal input end of the microcontroller, and the other end of the first switch is connected with the second switch;
one end of the second switch, which is connected with the first switch, is provided with a first node, and the other end of the second switch is connected with a third signal input end of the microcontroller after being connected with a second diode in series;
and the anode of the first diode is connected with the first node, and the cathode of the first diode is connected with the second signal input end of the microcontroller.
Preferably, the anode of the second diode is connected to the second switch, and the cathode of the diode is connected to the third signal input terminal of the microcontroller.
Preferably, the first switch is a push switch.
Preferably, the checkerboard is provided with through holes, and the pressing parts of the press switches extend out of the through holes.
Preferably, the second switch is a magnetic switch.
Preferably, the chess further comprises a magnetic piece, and the magnetic piece is arranged at the bottom of the first square chess piece or the second square chess piece.
Preferably, the chess piece further comprises a weight piece, and the weight piece is arranged on the chess piece.
Preferably, the method further comprises the following steps,
the power supply is connected with the power supply interface of the microcontroller through a voltage boosting plate;
and the voltage converter is connected with a power supply interface of the microcontroller and is connected with the first timer and the second timer.
Preferably, the electronic chessboard further comprises a wiring bar arranged on the back surface of the chessboard, and the matrix switch is connected with the microcontroller through the wiring bar.
The utility model has the advantages that: by adopting the technical scheme, the utility model has the advantages of reliable triggering, accurate and fair timing when the person falls, simple structure and high reliability; the expansibility is strong, and the chess manual can be automatically recorded.
Drawings
Fig. 1 is a diagram illustrating an automatic timer according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of a matrix switch according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a switch unit in an embodiment of the present invention.
In the drawings: 1. a microcontroller; 2. a matrix switch; 21. a switch unit; s1, a first switch; s1, a second switch; d1, a first diode; d2, a second diode; 3. a first relay; 4. a second relay; 5. a first timer; 6. a second timer; 7. a voltage converter; 8. a power supply; p0, a first signal input end; p1, a second signal input end; p2, a third signal input end; p3.6, a first signal output port; p3.7, second signal output port.
Detailed Description
The technical solutions in the embodiments of the present invention will be described clearly and completely with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by a person of ordinary skill in the art without creative efforts belong to the protection scope of the present invention.
It should be noted that, in the present invention, the embodiments and features of the embodiments may be combined with each other without conflict.
The present invention will be further described with reference to the accompanying drawings and specific embodiments, but the present invention is not limited thereto.
An automatic timer for chess games, as shown in fig. 1, 2 and 3, comprises,
the matrix switch 2 comprises a plurality of switch units 21 arranged corresponding to the checkerboard, and each switch unit 21 comprises a first switch S1 and a second switch S2 connected with the first switch S1;
the signal input end of the microcontroller 1 is connected with the matrix switch 2;
the timer comprises a first timer 5 and a second timer 6, wherein the first timer 5 is connected with the microcontroller 1 through a first relay 3, and the second timer 6 is connected with the microcontroller 1 through a second relay 4.
In a preferred embodiment, the first switch S1 is a push switch.
In a preferred embodiment, the checkerboard is provided with through holes, the pressing part of the press switch extends out through the through holes, the press switch is triggered to be conducted when the chessmen fall down, in other embodiments, the press switch of a pressure-sensitive mode can be adopted for the press mode, further, the pressure-sensitive sensing part of the pressure-sensitive switch for sensing the pressure of the chessmen extends out through the through holes, and the pressure-sensitive switch is triggered to be conducted when the chessmen fall down.
In a preferred embodiment, the second switch S2 is a magnetic switch.
In a preferred embodiment, the playing piece further comprises a magnetic member disposed at a bottom of the first or second player piece.
In a preferred embodiment, still include the counterweight, locate on each piece, preferably, the utility model discloses a light switch to suitably adopt materials such as lead to increase piece ground weight, thereby guarantee the accuracy that push switch triggered.
Specifically, the utility model is suitable for a chess match, first party's piece are white chess, and the second party's piece is black chess, specifically uses every black chess below to set up magnetic part, and white chess does not set up to the example, sets up press switch and magnetic switch under each check of chess board, and preferred magnetic switch is the tongue tube in this embodiment. When the white chess is put down, the push switch is triggered, and the black chess can simultaneously trigger the push switch and the reed switch, so that the black chess and the white chess can be distinguished.
Furthermore, because the switch is switched off to on when the chess piece is lifted up, and the switch is switched off to on when the chess piece falls down, the chess piece can be judged to be put down or taken up, and the chess piece can be judged to be eaten and a special law of walking can be judged through a program.
Further, the microcontroller 1 reads the state of each switch unit 21 on the chessboard through line-by-line scanning, and continuously compares the change of the matrix switch 2 during the secondary scanning period; the different conditions of the black and white chess, the falling chess pieces, the lifting chess pieces and the like are judged through a program, and a timer is driven to time.
In a preferred embodiment, the switching unit 21 comprises,
one end of the first switch S1 is connected with a first signal input end P0 of the microcontroller 1, and the other end of the first switch S1 is connected with a second switch S2;
a second switch S2, wherein a first node is arranged at one end of the second switch S2 connected with the first switch S1, and the other end of the second switch S2 is connected with a second diode D2 in series and then is connected with a third signal input end P2 of the microcontroller 1;
and the anode of the first diode D1 is connected with the first node, and the cathode of the first diode D1 is connected with the second signal input end P1 of the microcontroller 1.
In a preferred embodiment, the anode of the second diode D2 is connected to the second switch S2, and the cathode of the diode is connected to the third signal input P2 of the microcontroller 1; preferably, the first diode D1 and the second diode D2 are used to control the flowing direction of the current, and prevent the current of the other switching unit 21 from flowing in.
Specifically, the first switch S1 and the second switch S2 have 7 states: the first switch S1 and the second switch S2 are simultaneously switched off, and no chess is represented; the first switch S1 is turned on, the second switch S2 is turned off, and the situation that a white chess exists is represented; the first switch S1 and the second switch S2 are simultaneously conducted, and the fact that a black chess exists is represented; the first switch S1 is switched from off to on and represents the falling of the white chess; the first switch S1 and the second switch S2 are switched from off to on at the same time to represent that the black chess is played; the first switch S1 is switched from on to off and represents a white chess dipper; the first switch S1 and the second switch S2 are simultaneously turned from on to off to represent the black chess dipper.
In this embodiment, the checkerboard has 64 checks, 128 switches, and the states of the 128 switches can represent the position and state information of all the chessmen on the checkerboard, and the microcontroller 1 reads the states of the switches, so that the lifting and falling conditions can be judged by a program, and finally, a timer is driven to time.
Specifically, the common matrix keyboard in the prior art cannot output a large number of keyboard signals at the same time, and therefore is not suitable for the automatic timing device for chess games in the present embodiment, and the matrix switch 2 provided in the present embodiment analyzes the state of the chess pieces by connecting the signal input terminal of the microcontroller 1 and based on the signal level change of the signal input terminal.
In a preferred embodiment, the method further comprises,
and the power supply 8 is connected with a power supply interface of the microcontroller 1 through a voltage boosting plate, and specifically, the power supply 8 adopts a lithium battery.
And a voltage converter 7 connected with the power supply interface of the microcontroller 1 and connected with the first timer 5 and the second timer 6.
Specifically, the first relay 3 and the second relay 4 can convert high and low level signals into switch on-off signals, and the switch on-off can trigger timing;
the first output port P3.6 of microcontroller 1 connects the input port of first relay 3, the second output port P3.7 of microcontroller connects the input port of second relay 4, turn into the switch switching with high low level signal by the relay, then be connected to first timer 5 and second timer 6 respectively, drive first timer 5 and the timing of second timer 6, then microcontroller 1 power supply mouth connects a voltage converter 7 again, convert power 5 v's voltage into 1.5v, supply power for the timer.
Further, the relay has three output interfaces, and only two interfaces are required to be used in this embodiment. The input port of relay has a switch, and the trigger condition of switch can be adjusted, is low power frequency during signal variation in this embodiment, and is high power frequency in other times, consequently transfers the switch to low power frequency and triggers.
Specifically, in the present embodiment, the microcontroller 1, the first relay 3, and the second relay 4 have an operating voltage of 5v, and the first timer 5 and the second timer 6 have an operating voltage of 1.5v, so that the voltage converter 7 needs to be provided.
In a preferred embodiment, the electronic chessboard is characterized by further comprising a wiring bar arranged on the back of the chessboard, the matrix switch 2 is connected with the signal input end of the microcontroller 1 through the wiring bar, and the back of the chessboard is further provided with a groove body used for accommodating the second switch S2.
In the embodiment, the chessboard is made of a square electrical wood board, a rectangular (2 x 6 mm) small hole is formed in the middle of each chessboard, a press switch is arranged in the small hole, a groove is formed in the back surface of the chessboard, a reed switch is installed, the whole circuit forms a matrix switch 2 similar to 8 x 16, and 3 flat cables with 8 strands are led out.
Specifically, the control method of the microcontroller 1 in this embodiment is to first determine the change, and set all pins of the signal input terminal to a high level. (0 represents low, 1 represents high);
reading the state of the 8 pins of the first signal input end P0 for 16 times, putting the first signal input end into the array a, then reading the second signal input end into the array b again after a period of time and the same principle, in order to prevent the sensor from being operated by jitter, the first signal input end needs to read again after a short time after each reading, if the first signal input end is the same as the previous one (without jitter), the first signal input end counts to be read, and if the first signal input end is different from the previous one (with jitter), the second signal input end needs to read again.
Changes can be detected by comparing the numbers in the two arrays one by one. To distinguish a fall from a pick, it is determined whether the number in the b array is less than the number in the a array (0 becomes 1 when the piece is picked, 1 becomes 0 when the piece is dropped, and the binary number decreases). If there is a drop, the following procedure is continued. If not, the method jumps out and directly gives the number in the b array to a, and then continues to read the number of the p0 port, and the loop is continued.
In the chess, because there is a special way to move two steps of chess in one go (Wang Che ectopy), it is necessary to determine which one is timing when the timer is not directly started after the chess is dropped.
If the first 8 numbers are changed (representing 8 ports of a second signal input end P1), it is indicated that only the press switch is closed, the chess is played, then, if the current condition is that the chess is counting (flag = 0), two output ports are changed into low level at the same time, the output ports are changed back to high level after a short time (simulating to press a timer by hand), and then, the flag is changed into 1. If flag =9 (representing that neither timer is counting, i.e. the first step of the chess), the second signal output terminal P3.7 becomes low, the black chess starts counting, and flag becomes 1. If the black chess is timing (flag = 1), not changing (in this case, a one-turn and two-step approach); if the last eight interfaces (representing 8 interfaces of the third signal input end P2) are changed, the push switch and the reed switch are simultaneously closed, namely the black chess is dropped, similarly, if the flag =1, the output change is triggered, the flag is changed into 0, and if the flag =0, the output change is not changed.
The procedure specifically adopted in this example is as follows:
1. reference and definition
#include<reg51.h>
#include<stdio.h>
#define port0 P0
#define port1 P1
#define port2 P2
#define outport3 P3
2. Delay function: for the delay, the idle loop runs 114 times for about 1 millisecond, "delay short" for a short time, less than 1 millisecond.
void delay(unsigned int t)
{
unsigned int i,j;
for(i=t;i>0;i--)
for(j=114;j>0;j--);
}
void delay_short(unsigned int t)
{
unsigned int i,j;
for(i=t;i>0;i--)
for(j=12;j>0;j--);
}
3. Taking read (b) as an example) po as horizontal and P1.P2 as vertical, all pins are adjusted to high level, then 8 pins of P1 port and eight pins of P2 port are sequentially changed to low level, (16 pins of P1 and P2 are represented by 16-bit binary numbers, 8 bits are given to P1, eight bits are given to P2.0 to represent low level, 1 represents high electrical frequency, 1111111111111110 is the first time, after inversion, 00000001 is changed, then left shift every 50 milliseconds, change to 000000000000010, then invert again, change to 111111111111111101) and so on, the pins can be changed to low level one by one (if not inverted, directly by 1111111111111110, after left shift, end zero padding, i.e. 1111111111111100) each change to scan P0 port, also 8-bit binary numbers represent P0 state, and cycle through sixteen times, and put the binary numbers into 16 i = 8 bits (i) array, i = 16 i, i 15. The microcontroller 1 may have a delay in reading, which results in that each digit cannot be accurately read out between two level changes, so after changing P1 or P2, before reading, a delay short is added, then the main function interval is entered for 50 milliseconds, then each pin of the P1P2 port is sequentially changed, the state of the P0 port is read in the same way, and the read state is put into the array b (i), and the array a and the array b are compared.
4. The anti-jitter program and the automatic timing device may have jitter in operation, so that the state of the port p0 needs to be read twice continuously, and the state can be determined only by reading twice the state, thereby ensuring that the read data is accurate.
Figure BDA0003751945310000101
/>
Figure BDA0003751945310000111
/>
Figure BDA0003751945310000121
5. Principal function
And sequentially comparing 16 numbers in the two arrays of a and b by using a for loop, and judging that the number is pressed but not lifted when the number is changed and the number is reduced (changed from 1 to 0). If the number of the first eight is eight, the push switch is closed to trigger the white chess timing, and if the number of the second eight is eight, the push switch and the reed pipe are simultaneously closed to trigger the black chess timing. The loop is skipped if there is a change, finally the numbers in the array of b are given to a, and the operation is repeated at intervals of 50 ms (while loop)
When the arrays are compared, the back is required to be moved forward, and if the arrays are moved backward from the front, the black chess can be mistaken for the white chess because the white chess can trigger the press switch
Figure BDA0003751945310000122
/>
Figure BDA0003751945310000131
/>
Figure BDA0003751945310000141
/>
Figure BDA0003751945310000151
To sum up, the utility model discloses the chess match automatic timing device of rejecting has following beneficial effect:
1. the trigger is reliable, the falling is timing, and the timing is accurate and fair.
2. The chessboard does not need a power supply, and the chessboard has simple structure and high reliability.
3. Special ambulation methods such as royal jelly translocation and the like can be supported through programming; different match timing rules can be adapted.
4. The expansibility is strong, and the chess manual can be automatically recorded because the output signal of the matrix switch 2 comprises the starting and stopping positions of each step of chess moving.
The above description is only an example of the preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and those skilled in the art should be able to realize the equivalent alternatives and obvious variations of the present invention.

Claims (10)

1. An automatic timing device for chess games is characterized by comprising,
the matrix switch comprises a plurality of switch units arranged corresponding to the checkerboard, and each switch unit comprises a first switch and a second switch connected with the first switch;
a microcontroller connected to the matrix switch;
the first timer is connected with the microcontroller through a first relay, and the second timer is connected with the microcontroller through a second relay.
2. A board game automatic timing device according to claim 1, wherein the switch unit includes,
one end of the first switch is connected with a first signal input end of the microcontroller, and the other end of the first switch is connected with the second switch;
one end of the second switch, which is connected with the first switch, is provided with a first node, and the other end of the second switch is connected with a third signal input end of the microcontroller after being connected with a second diode in series;
and the anode of the first diode is connected with the first node, and the cathode of the first diode is connected with the second signal input end of the microcontroller.
3. A board game automatic timing device according to claim 2, wherein the anode of the second diode is connected to the second switch and the cathode of the diode is connected to the third signal input of the microcontroller.
4. A board game automatic timing device as claimed in claim 1, wherein the first switch is a push switch.
5. An automatic timer for chess games according to claim 4, wherein said checkerboard has through holes through which the pressing portions of said push switches extend.
6. A board game automatic timing device as claimed in claim 1, wherein the second switch is a magnetic switch.
7. A board game automated timing apparatus as in claim 1, further comprising magnetic elements disposed on the bottom of the first or second player pieces.
8. An automated timing apparatus for a board game as claimed in claim 1, further comprising a weight member, said weight member being provided on the playing piece.
9. The automated timing device of a board game of claim 1, further comprising,
the power supply is connected with the power supply interface of the microcontroller through a voltage boosting plate;
and the voltage converter is connected with a power supply interface of the microcontroller and the first timer and the second timer.
10. A board game automatic timing device according to claim 1, further comprising a wiring block provided on the back of the board, said matrix switch being connected to said microcontroller via said wiring block.
CN202221872939.3U 2022-07-18 2022-07-18 Automatic timing device for chess games Active CN218866522U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202221872939.3U CN218866522U (en) 2022-07-18 2022-07-18 Automatic timing device for chess games

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202221872939.3U CN218866522U (en) 2022-07-18 2022-07-18 Automatic timing device for chess games

Publications (1)

Publication Number Publication Date
CN218866522U true CN218866522U (en) 2023-04-14

Family

ID=87372130

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202221872939.3U Active CN218866522U (en) 2022-07-18 2022-07-18 Automatic timing device for chess games

Country Status (1)

Country Link
CN (1) CN218866522U (en)

Similar Documents

Publication Publication Date Title
CN101332357A (en) Electric go chessboard
CN218866522U (en) Automatic timing device for chess games
JPH07100079B2 (en) Gaming machine with automatic judgment function
US4119838A (en) Electronic score-keeper for table tennis
US7699693B2 (en) Electronic card system and method
CN201244346Y (en) Military chess electronic judging device
US4355806A (en) Electronic jacks game
EP0109778A1 (en) Puzzle/game
CN204815631U (en) Magnetic induction chess system
CN110960848A (en) Entity electronic chess
EP0042956A2 (en) Electronic maze game apparatus
CN215136773U (en) Interactive entity game disc
JPH0654947A (en) Game machine and game information collecting device
GB2051589A (en) Electronic game board
CN113476818A (en) Intelligent chessboard and chessman identification method
CN115068925A (en) Chess piece detection device, game equipment and detection method
CN2612005Y (en) Electronic amusement and knowledge learning machine
WO1991003292A1 (en) Game controller
JPH06233861A (en) Game machine
CN219185801U (en) Intelligent jaywalking game machine
CN211699273U (en) Photoelectric sensor discernment sound generating mechanism
JP4408098B2 (en) Game information display device
CN113082685A (en) Interactive game board, chess piece identification method and interaction method
CN210155787U (en) Intelligent answering machine, electronic equipment and answering table
JP4074048B2 (en) Game machine

Legal Events

Date Code Title Description
GR01 Patent grant
GR01 Patent grant