Games timing method based on pressure sensor

Games timing method based on pressure sensor

  • CN 107,170,071 B
  • Filed: 05/10/2017
  • Issued: 09/15/2020
  • Est. Priority Date: 05/10/2017
  • Status: Active Grant
First Claim
Patent Images

1. A chess falling judgment method based on a pressure sensor comprises the following steps:

  • step 101;

    initializing a system;

    setting a sampling time interval to be t1, wherein the sampling time interval is smaller than the minimum time length required by a normal falling process;

    setting the pressure stabilization time period to be t 2;

    setting t3 as the time for player identity conversion, wherein the time for player identity conversion refers to the normal interval time generated between two players completing one-time doffing action respectively;

    the t1, t2 and t3 satisfy the following conditions;

    t1 <

    t2 <

    t 3;

    and setting a minimum change value delta 1 of the pressure of the falling object, wherein the delta 1 is a preset threshold, and the value of the minimum change value delta 1 is larger than the sampling error caused by normal interference to the system and smaller than the minimum sampling value influence caused by the normal falling object to the system.Setting a minimum change value delta 2 of correction pressure, wherein the delta 2 is a preset threshold, and the numerical value of the minimum change value delta 2 is larger than a sampling error caused by normal interference to a system and smaller than the minimum sampling numerical value influence caused by subsequent actions to the system;

    the follow-up actions include;

    grapes, eating and shifting;

    setting the time of use of both parties of the match to be 0;

    sampling pressure data of the chessboard on the pressure sensor before the match, converting the pressure data into a digital signal G through an analog-to-digital conversion circuit, transmitting the digital signal G to a single chip microcomputer chip and storing the digital signal G as G;

    determining the start of the match through pressing a key;

    step 102;

    waiting for the state of playing the chessThe system enters a state of waiting for the chess playing of the local, and the time spent on calculating the local is started;

    the said one side is the one side in the current chess in the match;

    the other party is called the other party;

    step 103;

    capturing chess playing actions;

    the method comprises the steps that a single chip microcomputer chip controls a pressure sensor to sample current pressure data of a chessboard-to-pressure sensor at a time interval t1, the current pressure data are converted into digital signals G through an analog-to-digital conversion circuit, the digital signals G are transmitted to the single chip microcomputer chip to be compared with G, the absolute value of difference value (delta G = | -G-G |) is calculated, when delta G <

    (delta)

         1) is detected, it is considered that no falling occurs, when sampling is repeated until delta G ≧

    delta 1, the method is considered to be moving chess, the pressure data G sampled at the moment are stored and covered with G, and the time consumed in the step 103 is counted into the method;

    entering step 104;

    step 104;

    buffer status of playing chessThe singlechip chip controls the pressure sensor to continuously sample pressure data of the pressure sensor by the chessboard according to a sampling time interval t1, the pressure data is converted into a digital signal G through the analog-to-digital conversion circuit, the digital signal G is transmitted to the singlechip chip to be compared with G, and the absolute value (delta G) = | G-G | of the difference between the digital signal G and the G is calculated;

    this step sets up two timers;

    a total consumed time timer t4 in a chess playing buffer state, and a time timer t5 in a current pressure value stable state maintaining state;

    the initial values of t4 and t5 are 0;

    after the chess moving action is captured, entering a chess moving buffer state, and starting to continuously time by a total time length timer t4 consumed by the chess moving buffer state;

    step 104-0;

    after the chess moving action is captured, entering a chess moving buffer state, and starting to continuously time by a total time length timer t4 consumed by the chess moving buffer state;

    the current pressure value steady state maintaining time length timer t5 starts timing;

    step 104-1;

    repeatedly sampling pressure data, and if the delta G (delta) 2 is met, keeping the time by a time keeping timer t5 in the stable state of the current pressure value;

    step 104-2;

    returning to step 104-1 if Δ

    G <

    Δ

    2 and t5<

    t 2;

    step 104-3;

    if Δ

    G is greater than or equal to Δ

    2, then it is considered that a follow-up action has taken place, t5 is zeroed, returning to step 104-1;

    step 104-4;

    if Δ

    G <

    Δ

    2 and t5= t2, the line-chess buffering state is considered to be over, and the process proceeds to step 105;

    step 105;

    calculating the time consumption of the two parties according to the t4 recorded in the step 104 and the t2 set initially;

    the added value of the prescription is t4-t2, and the added value of the prescription is t 2;

    the party and the other party are switched, the process returns to the step 102, and the competition is continued.

View all claims
    ×
    ×

    Thank you for your feedback

    ×
    ×