Basketball match timer and control method thereof
By forming a 8-shaped digital tube with multiple light strips and simplifying the circuit design of the basketball game timer using a wireless remote control, the problems of complex circuits and inconvenient maintenance in the prior art are solved, and the effects of circuit simplification and maintenance cost reduction are achieved.
Patent Information
- Application Number
- CN202411261150.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-10
- Publication Date
- 2025-01-03
AI Technical Summary
The circuit of the existing basketball game timer is complex and requires a large number of interfaces to control the digital tube, which leads to complex hardware design and inconvenient maintenance, and is costly.
Multiple light strips are used to form an 8-shaped digital tube, and all light strips are controlled through a data transmission line. Combined with a wireless remote control and voice broadcast module, the circuit design is simplified and the wireless remote control update display is realized.
It realizes simplification of circuit design, reduces the probability of hardware failure, improves service life, and facilitates operation through wireless remote control, reducing maintenance costs.
Smart Images

Figure CN119251922A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of timers, and in particular to a basketball game timer and a control method thereof. Background Art
[0002] As people pay more attention to their health, more and more people are actively investing in and participating in various sports and fitness activities, especially ball sports, which are very popular among sports enthusiasts. In China, a large number of sports stadiums, special stadiums or sports facilities have been newly built or renovated in cities, communities, units and colleges at all levels. With the increasing competition in stadium operations and the increasing requirements for the experience of participating in events and watching games, combined with the continuous maturity and development of electronic information technology, there is a demand for the development of new products or upgrading of existing products for various special equipment required by sports stadiums.
[0003] At present, in the existing basketball game timers, the lighting of the digital tube is controlled by a single chip microcomputer, and the digital tube is composed of seven-segment light-emitting diodes, that is, it is necessary to control these seven-segment light-emitting diodes to realize the display of a number. Since the remaining time of each quarter, the number of game quarters and the 24-second countdown are generally required to be displayed in basketball games, multiple digital tubes are required, that is, a large number of light-emitting diodes need to be controlled, resulting in a large number of interfaces and peripheral devices of the single chip microcomputer controller, complex hardware circuits, inconvenient maintenance, and the program to realize the functions of each part of the display is very complicated and costly. Summary of the invention
[0004] The technical problem to be solved by the present invention is to solve the problem that in the prior art, controlling a basketball game timer to display numbers requires a controller to have a large number of interfaces, resulting in complex circuits. In order to overcome the above defects of the prior art, the present invention provides a basketball game timer and a control method thereof.
[0005] The present invention provides a basketball game timer: comprising a display screen for displaying basketball game time, a controller for controlling the display screen to display data, a remote controller for sending basketball game and 24-second countdown start and stop, and a voice broadcast module for broadcasting the end of the game; The display screen includes a bottom plate and a plurality of light strips arranged on the bottom plate, each of the light strips is provided with a positive terminal, a negative terminal and a data transmission terminal, the positive terminal of each of the light strips is connected in series and electrically connected to the positive terminal of the power supply, the negative terminal of each of the light strips is connected in series and electrically connected to the negative terminal of the power supply, and the data transmission terminal of each of the light strips is connected in series and electrically connected to the controller through a data transmission line, and every seven of the light strips surround to form an 8-shaped digital tube; The voice broadcast module is electrically connected to the controller, and the remote controller is wirelessly connected to the controller. The controller controls the light strip to display the remaining time, the number of quarters and the 24-second countdown time of each quarter of the basketball game according to the signal received by the remote controller.
[0006] Compared with the prior art, the basketball game timer of the present application has the following advantages: the lighting and extinguishing of all light strips can be controlled by only one data transmission line to display the score of the entire basketball game, the circuit design is simple, it is convenient to write the corresponding digital display program, and it is easy to maintain; and the score of the basketball game can be updated and displayed wirelessly through the remote control, which is easy to operate.
[0007] In a possible implementation, a plurality of the light strips are composed of at least four 8-shaped digital tubes for displaying the remaining time of each quarter, one 8-shaped digital tube for displaying the number of quarters, and two 8-shaped digital tubes for displaying the countdown of 24 seconds; the one 8-shaped digital tube for displaying the quarter number, the four 8-shaped digital tubes for displaying the time of each quarter, and the two 8-shaped digital tubes for displaying the countdown are connected in series in sequence and electrically connected to the controller through a data transmission line.
[0008] Compared with the existing technology, the light strip is composed of multiple 8-shaped digital tubes, which can display the remaining time of each quarter, the number of game quarters and the 24-second countdown, making it easier to observe more information.
[0009] In a possible embodiment, the 8-shaped digital tube includes a first horizontal light strip located at the top, a second vertical light strip located at the upper left, a third vertical light strip located at the upper right, a fourth horizontal light strip located in the middle, a fifth vertical light strip located at the lower left, a sixth vertical light strip located at the lower right and a seventh horizontal light strip located at the bottom; the fourth horizontal light strip, the fifth vertical light strip, the seventh horizontal light strip, the sixth vertical light strip, the third vertical light strip, the first horizontal light strip and the second vertical light strip are connected in series in sequence; the fourth horizontal light strip of the 8-shaped digital tube is connected in series with the second vertical light strip of the adjacent previous 8-shaped digital tube, and the second vertical light strip of the 8-shaped digital tube is connected in series with the fourth horizontal light strip of the adjacent next 8-shaped digital tube.
[0010] Compared with the prior art, its working principle and control method are different. By setting all 8-shaped digital tubes to the same surround, it is convenient to write programs and control. The circuit is very simple, which reduces circuit connections and the probability of hardware problems. It is also easy to maintain and prolongs service life.
[0011] In a possible implementation, the remote control includes a processor, a keyboard module and a wireless transmission module, the keyboard module and the wireless transmission module are both electrically connected to the processor, and the controller is electrically connected to a wireless receiving module for receiving signals sent by the wireless transmission module.
[0012] Compared with the prior art, the processor is used to process the information of different keys pressed on the keyboard module, and send it to the wireless receiving module through the wireless sending module, and finally send the corresponding information to the data transmission line through the controller to control the display of the light strip. The wireless remote control is simple and easy to implement.
[0013] In a possible implementation, the chips of the wireless transmission module and the wireless reception module are NRF2401L single-chip radio frequency transceiver chip.
[0014] In a possible implementation, the light strip is a WS2812 light strip.
[0015] In a possible implementation, the voice chip of the voice broadcast module is a SYN6288 voice chip.
[0016] Another technical solution of the present invention is to provide a method for controlling a basketball game timer, comprising the following steps: S1. Build digital font arrays corresponding to different display areas of the display screen and form library functions corresponding to the fonts; the controller initializes the internal timer and starts it; S2. Determine whether a signal is received within a preset time; If the first preset signal is received within the preset time, or no signal is received within the preset time, it is a timing mode and enters step S3; if the second preset signal is received within the preset time, it is a score module and enters step S10; S3, initialize the internal timer and start it, initialize all 8-shaped digital tubes connected to the data transmission line, define the remaining time of each section as i and assign an initial value, define the number of sections as j and assign an initial value, define the 24-second countdown as k and assign an initial value; S4, the controller calls the library function corresponding to the font, and through the data transmission line, the 8-character digital tube of each section time displays the remaining time i of each section, and the 8-character digital tube of the section number displays the section number j, and when the timer reaches one second, the remaining time i of each section is automatically reduced by one; S5, determining whether a signal to start a 24-second countdown is received; If so, the controller calls the library function corresponding to the font, and through the data transmission line, the 8-character digital tube for each section time displays the remaining time i of each section, the 8-character digital tube for the section number displays the section number j, and the 8-character digital tube for the countdown displays the 24-second countdown k, and the process goes to step S6; otherwise, the controller calls the library function corresponding to the font, and through the data transmission line, the 8-character digital tube for each section time displays the remaining time i of each section, the 8-character digital tube for the section number displays the section number j, and the 8-character digital tube for the countdown displays 00, and the process goes to step S6; S6, determining whether a pause signal is received; If yes, the controller calls the library function corresponding to the font, and makes the numbers displayed by the 8-shaped digital tube for each section time, the 8-shaped digital tube for the section number and the 8-shaped digital tube for the countdown remain unchanged through the data transmission line, and enters step S7; otherwise, enters step S8; S7, judging whether the pause signal is cancelled; If so, the controller calls the library function corresponding to the font, and through the data transmission line, the numbers displayed on the 8-shaped digital tube for each section time and the 8-shaped digital tube for the section number remain unchanged, and the number k displayed on the countdown 8-shaped digital tube (63) is automatically reduced by one when the timer reaches 1 second, and when k is reduced to zero, the process goes to step S8; otherwise, the process returns to step S7; S8, judging whether the remaining time i of each section is zero; If yes, the number of sections j=j-1, the remaining time i of each section is assigned an initial value, the controller calls the library function corresponding to the font, and makes the 8-font digital tube of each section time display the remaining time i of each section through the data transmission line, and makes the 8-font digital tube of the section number display the section number j at the same time, and enters step S9; otherwise, returns to step S4; S9, judging whether the number of nodes j is zero; If yes, the game is over. Otherwise, the process returns to step S4. S10, the controller receives the game score, and calls the library function corresponding to the font, and makes the 8-font digital tube display the game score data of both sides in each quarter through the data transmission line.
[0017] Compared with the prior art, the control method of a basketball game timer in the present application has the following advantages: the lighting and extinguishing of all light strips can be controlled by only one data transmission line to display the score of the entire basketball game, the circuit design is simple, the corresponding digital display program can be easily written, and maintenance is convenient.
[0018] In a possible implementation, the controller calls the library function corresponding to the font, and drives the 8-shaped digital tube to display numbers through a data transmission line, which specifically includes the following steps: A1. The controller obtains the remaining time data of each quarter, the game score data, the number of quarters data and the corresponding numbers of the 24-second countdown data during the game; A2. The controller searches the library function corresponding to the font to obtain the corresponding display segment code according to the numbers corresponding to the remaining time of each quarter, the game score data, the number of quarters data and the 24-second countdown data; A3, get the current display mode, call the display program in the library function corresponding to the font, the controller gets the corresponding display segment code according to the query and drives the 8-shaped digital tube to display the number through the data transmission line; A4. Delay for a while.
[0019] Compared with the prior art, data is first acquired, then the library function corresponding to the font is queried, and then the display is driven by the controller, and the final delay prevents the signal from being triggered by mistake. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] Figure 1 A system block diagram of a basketball game timer according to the present invention; Figure 2 This is a schematic diagram of the display screen structure in a basketball game timer of the present invention; Figure 3 This is a schematic diagram of another display screen structure in a basketball game timer of the present invention; Figure 4 A flow chart of a method for controlling a basketball game timer according to the present invention; Figure 5 The present invention is a flow chart of a method for controlling a basketball game timer in which a controller calls a library function corresponding to a font to display numbers.
[0021] Description of reference numerals: 1-display screen; 11-bottom plate; 12-light strip; 121-first horizontal light strip; 122-second vertical light strip; 123-third vertical light strip; 124-fourth horizontal light strip; 125-fifth vertical light strip; 126-sixth vertical light strip; 127-seventh horizontal light strip; 2-controller; 21-wireless receiving module; 3-remote controller; 31-processor; 32-keyboard module; 33-wireless transmission module; 4- Voice broadcast module; 5-Data transmission line; 6-8-shaped digital tube; 61-8-shaped digital tube for each section time; 62-8-shaped digital tube for section number; 63-8-shaped digital tube for countdown. DETAILED DESCRIPTION
[0022] First, those skilled in the art should understand that these implementations are only used to explain the technical principles of the embodiments of the present application, and are not intended to limit the protection scope of the embodiments of the present application. Those skilled in the art can make adjustments to them as needed to adapt to specific application scenarios.
[0023] In the description of the embodiments of the present application, it should be noted that, unless otherwise clearly specified and limited, the terms "connected" and "connection" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be directly connected or indirectly connected through an intermediate medium. For ordinary technicians in this field, the specific meanings of the above terms in the embodiments of the present application can be understood according to specific circumstances.
[0024] In the embodiments of the present application, unless otherwise clearly specified and limited, a first feature being "above" or "below" a second feature may mean that the first and second features are in direct contact, or the first and second features are in indirect contact through an intermediate medium. Moreover, a first feature being "above", "above" or "above" a second feature may mean that the first feature is directly above or obliquely above the second feature, or simply means that the first feature is higher in level than the second feature. A first feature being "below", "below" or "below" a second feature may mean that the first feature is directly below or obliquely below the second feature, or simply means that the first feature is lower in level than the second feature.
[0025] The present application is further described in detail below with reference to the accompanying drawings and specific embodiments.
[0026] Embodiment 1 See also Figure 1-2 As shown, an embodiment of the present application discloses a basketball game timer, including a display screen 1 for displaying basketball game time, a controller 2 for controlling the display screen 1 to display data, a remote control 3 for sending basketball game and 24-second countdown start and stop, and a voice broadcast module 4 for broadcasting the end of the game.
[0027] The display screen 1 includes a base plate 11 and a plurality of light strips 12 arranged on the base plate 11, each light strip 12 is provided with a positive terminal, a negative terminal and a data transmission terminal, the positive terminal of each light strip 12 is sequentially connected in series and finally electrically connected to the positive terminal of the power supply; the negative terminal of each light strip 12 is sequentially connected in series and then electrically connected to the negative terminal of the power supply; the data transmission terminal of each light strip 12 is connected in series and then electrically connected to the controller 2 through a data transmission line 5, and every seven light strips 12 surround to form an 8-shaped digital tube 6.
[0028] The voice broadcast module 4 is electrically connected to the controller 2, and the remote controller 3 is wirelessly connected to the controller 2. The controller 2 controls the light strip 12 to display the remaining time, the number of quarters and the 24-second countdown time of each quarter of the basketball game according to the signal received by the remote controller 3.
[0029] Only one data transmission line 5 can be used to control the lighting and extinguishing of all the light strips 12, so as to realize the display of the score of the entire basketball game. The circuit design is simple, and it is convenient to write the corresponding digital display program and to maintain it. The remote controller 3 can realize wireless remote control to update and display the score of the basketball game, which is easy to operate.
[0030] In this embodiment, the light strip 12 is a WS2812 light strip, the voice chip of the voice broadcast module 4 is a SYN6288 voice chip, and the single-chip microcomputer system in the controller 3 is an Arduino Nano. Of course, in the actual design process, other chips with similar functions can also be used.
[0031] The light strip 12 adopts the WS2812 type light strip, which is the light strip 12 of the prior art, and is convenient for querying the corresponding program writing rules and writing the corresponding program for displaying numbers. Of course, in actual use, other components with similar functions can also be used.
[0032] Among them, a plurality of light strips 12 at least form four 8-shaped digital tubes 61 for displaying the remaining time of each quarter, one 8-shaped digital tube 62 for displaying the number of quarters and two 8-shaped digital tubes 63 for displaying the countdown of 24 seconds; one 8-shaped digital tube 62 for the quarter number, four 8-shaped digital tubes 61 for the time of each quarter and two 8-shaped digital tubes for the countdown 63 are connected in series in sequence and then electrically connected to the controller 2 through a data transmission line 5.
[0033] The light strip is formed into a plurality of 8-shaped digital tubes 6, which can display the scores of the two teams, the number of game quarters and the 24-second countdown, so as to facilitate the observation of more information.
[0034] In order to improve the utilization rate of the light strip 12, the 8-shaped digital tube 61 in each section can also be used to display the game score.
[0035] In actual process, the display color can also be modified according to the illumination of the indoor environment, and this modification can be achieved through the remote controller 3.
[0036] Furthermore, in actual use, in addition to surrounding the 8-shaped digital tube 6, a circle of light strip 12 can also be wrapped around the outer edge of the entire display screen 1. This circle of light strip 12 can be displayed constantly, and the recognition of the display screen 1 can be improved through this circle of light strip 12.
[0037] Specifically, the circle of light strips 12 surrounding the outer edge of the display screen 1 is to be displayed constantly, so it can be another group of light strips 12 connected in series, and then communicated with the controller 2 through another data transmission line 5 to achieve constant light control; it can also be connected in series with the 8-shaped digital tube, and finally lit up through the same data transmission line 5 for communication control.
[0038] In this embodiment, the 8-shaped digital tube 6 includes a first horizontal light strip 121 located at the top, a second vertical light strip 122 located at the upper left, a third vertical light strip 123 located at the upper right, a fourth horizontal light strip 124 located in the middle, a fifth vertical light strip 125 located at the lower left, a sixth vertical light strip 126 located at the lower right, and a seventh horizontal light strip 127 located at the bottom.
[0039] The fourth horizontal light strip 124, the fifth vertical light strip 125, the seventh horizontal light strip 127, the sixth vertical light strip 126, the third vertical light strip 123, the first horizontal light strip 121 and the second vertical light strip 122 are connected in series in sequence; The fourth horizontal light strip 124 of the 8-shaped digital tube 6 is connected in series with the second vertical light strip 122 of the adjacent previous 8-shaped digital tube 6 , and the second vertical light strip 122 of the 8-shaped digital tube 6 is connected in series with the fourth horizontal light strip 124 of the adjacent next 8-shaped digital tube 6 .
[0040] By setting all 8-shaped digital tubes 6 to the same surround, the working principle and control method are different from the prior art, which is convenient for programming and control, and the circuit is very simple, which reduces the circuit connection and the probability of hardware problems. At the same time, it is easy to maintain and increase the service life.
[0041] Of course, in the actual circuit connection, because the positions of the section number 8-shaped digital tube 62, the section time 8-shaped digital tube 61 and the countdown 8-shaped digital tube 63 are limited (generally, the section time 8-shaped digital tube 61 is arranged on the top, and then the section number 8-shaped digital tube 62 is arranged on the right, and the countdown 8-shaped digital tube 63 is arranged below the section time 8-shaped digital tube 61), this leads to the use of the same surrounding method to form 8-shaped digital tubes 6. It is inconvenient to connect the upper and lower adjacent 8-shaped digital tubes 6. Therefore, other surrounding methods can also be used, for example, see Figure 3 The surround mode shown, of course, this also requires modification of the corresponding driver display program.
[0042] In the actual design of the display screen 1, the segment number 8-shaped digital tube 62, the segment time 8-shaped digital tube 61 and the countdown 8-shaped digital tube 63 are of different sizes and can be composed of light strips 12 of different lengths.
[0043] In this embodiment, the remote control 3 includes a processor 31, a keyboard module 32 and a wireless sending module 33, the keyboard module 32 and the wireless sending module 33 are both electrically connected to the processor 31, and the controller 2 is electrically connected to a wireless receiving module 21 for receiving signals sent by the wireless sending module 33.
[0044] The processor 31 is used to process the information of different keys pressed on the keyboard module 32, and send it to the wireless receiving module 21 through the wireless sending module 33, and finally send the corresponding information to the data transmission line 5 through the controller 2 to control the display of the light strip 12. The wireless remote control is simple and easy to implement.
[0045] The chips of the wireless transmission module 33 and the wireless receiving module 21 are NRF2401L single-chip radio frequency transceiver chips, and the keyboard module 32 is a commonly used BCD keyboard. The keyboard module 32 includes a pause key, a match score adjustment key (plus, minus), a quarter adjustment key, a countdown start key, a voice broadcast key, a match end key, a power on key, and a power off key.
[0046] In actual use, the keyboard module 32 can also be changed into a voice recognition module.
[0047] Because the entire basketball game timer is divided into two parts, a power supply needs to be set up separately to power each part.
[0048] The basketball game timer involved in this embodiment has a simple circuit design, is lightweight (light weight and easy to carry), is relatively cheap, is easy to operate (wireless), has a simple program design, and is easy to install and maintain.
[0049] Working principle: The keyboard module 32 and the processor 31 are connected to the I 2 C port connection, press a game score adjustment key (plus or minus) on the keyboard module 32, the processor 31 processes it and encodes it accordingly, and then sends it out through the wireless sending module 33; after the wireless receiving module 21 receives the signal sent by the wireless sending module 33, it transmits the signal to the controller 2 for processing. After the processing is completed, the controller 2 drives the corresponding light strip 12 to display through a data transmission line 5, and the display screen 1 displays the time changes of the corresponding game.
[0050] When a sound needs to be made, a voice broadcast key is pressed on the keyboard module 32, and the corresponding instruction is sent to the wireless receiving module 21 through the wireless sending device 33. After the wireless receiving module 21 receives the signal sent by the wireless sending module 33, the signal is transmitted to the controller 2 for processing. The controller 2 is connected to the voice broadcast module 4 through serial port communication, and the voice broadcast module 4 plays the currently displayed score content once.
[0051] Embodiment 2 See also Figures 1 to 5 As shown, this embodiment relates to a method for controlling a basketball game timer, comprising the following steps: S1, construct digital font arrays corresponding to different display areas of display screen 1, and form library functions corresponding to the fonts; controller 2 initializes the internal timer and starts it.
[0052] S2. Determine whether a signal is received within a preset time; If the first preset signal is received within the preset time, or no signal is received within the preset time, it is a timing mode and enters step S3; if the second preset signal is received within the preset time, it is a score module and enters step S10.
[0053] In this step, the entire basketball game timer is started, and the two different display modes are entered by inputting two different signals. Specifically, for example, if 1 is input within one minute, or there is no input within one minute, the timing mode is entered; if 2 is input within one minute, the score mode is entered. The two different display modes are used to improve the utilization rate of the display screen 1.
[0054] Of course, during the game, if you enter the timing mode, you can force the remote control 3 to switch to the score mode; similarly, if you enter the score mode, you can also force the remote control 3 to switch to the timing mode.
[0055] After this step is finished, the controller 2 controls the internal timer to close.
[0056] S3, initialize the internal timer and start it, initialize all 8-shaped digital tubes 6 connected to the data transmission line 5, define the remaining time of each section as i and assign an initial value, define the number of sections as j and assign an initial value, define the 24-second countdown as k and assign an initial value.
[0057] In this step, the remaining time i of each section is usually assigned a value of ten minutes, which is displayed as the number 1000. In order to distinguish between minutes and seconds, a ":" is usually added in the middle, so the final display is 10:00. The number of sections j is usually assigned a value of 4, which is displayed as the number 4. The 24-second countdown is usually assigned a value of 24, which is displayed as the number 24. After the 24-second countdown is started, the display will decrease by 1 after 1 second until it reaches 0.
[0058] S4, the controller 2 calls the library function corresponding to the font, and makes the 8-character digital tube 61 of each section time display the remaining time i of each section through the data transmission line 5, and makes the 8-character digital tube 62 of the section number display the section number j at the same time, and when the timer reaches one second, the remaining time i of each section is automatically reduced by one.
[0059] In the actual display process, for the current section number, the section number 8-shaped digital tube 62 displays the section number j unchanged; the section time 8-shaped digital tube 61 displays the remaining time i of each section, and i is displayed as the timer decreases by one every second.
[0060] S5, determining whether a signal to start a 24-second countdown is received; If so, the controller 2 calls the library function corresponding to the font, and makes the 8-character digital tube 61 for each section time display the remaining time i of each section, makes the 8-character digital tube 62 for the section number display the section number j, and makes the 8-character digital tube 63 for the countdown display the 24-second countdown k through the data transmission line 5, and enters step S6; otherwise, the controller 2 calls the library function corresponding to the font, and makes the 8-character digital tube 61 for each section time display the remaining time i of each section, makes the 8-character digital tube 62 for the section number display the section number j, and makes the 8-character digital tube 63 for the countdown display 00 through the data transmission line 5, and enters step S6.
[0061] According to the actual situation of the basketball game, the referee on the sidelines can send a signal to start the 24-second countdown through the remote control 3, and the wireless receiving module 21 sends the received signal to the controller 2 for processing.
[0062] S6, determining whether a pause signal is received; If so, the controller 2 calls the library function corresponding to the font, and through the data transmission line 5, the numbers displayed on the 8-shaped digital tube 61 for each section time, the 8-shaped digital tube 62 for the section number, and the 8-shaped digital tube 63 for the countdown remain unchanged, and enters step S7; otherwise, enters step S8.
[0063] In actual situations, the referee on the sidelines can send a pause signal through the remote controller 3, and after receiving the signal, the wireless receiving module 21 sends it to the controller 2 for processing.
[0064] S7, judging whether the pause signal is cancelled; If so, the controller 2 calls the library function corresponding to the font, and through the data transmission line 5, the numbers displayed on the 8-shaped digital tube 61 for each section time and the 8-shaped digital tube 62 for the section number remain unchanged, and the number k displayed on the countdown 8-shaped digital tube 63 is automatically reduced by one when the timer reaches 1 second. When k is reduced to zero, step S8 is entered; otherwise, return to step S7.
[0065] In actual situations, the referee on the sidelines can send a cancel pause signal through the remote controller 3, and after receiving the signal, the wireless receiving module 21 sends it to the controller 2 for processing.
[0066] S8, judging whether the remaining time i of each section is zero; If so, the section number j=j-1, the remaining time of each section is given an initial value i, the controller 2 calls the library function corresponding to the font, and makes the 8-font digital tube 61 of each section time display the remaining time i of each section through the data transmission line 5, and makes the 8-font digital tube 62 of the section number display the section number j at the same time, and enters step S9; otherwise, returns to step S4.
[0067] After each quarter of the game, the quarter number displayed on the quarter number 8-shaped digital tube 62 is reduced by one, and the remaining time i of each quarter is reset to ten minutes, that is, 10:00 is displayed.
[0068] S9, judging whether the number of nodes j is zero; If yes, the game is over. Otherwise, the process returns to step S4.
[0069] S10, the controller receives the game score, and the controller 2 calls the library function corresponding to the font, and makes the 8-font digital tube 61 display the game score data of both sides in each quarter through the data transmission line 5.
[0070] During the actual game, in addition to receiving the final game broadcast, the remaining game time of the current quarter and the score of the current game can also be voice broadcasted.
[0071] The controller 2 calls the library function corresponding to the font, and drives the 8-shaped digital tube 6 to display numbers through a data transmission line 5, which specifically includes the following steps: A1, controller 2 obtains the remaining time data of each quarter, the game score data, the number of quarters data and the corresponding numbers of the 24-second countdown data during the game; A2, controller 2 searches the library function corresponding to the font to obtain the corresponding display segment code according to the numbers corresponding to the remaining time data of each quarter, the game score data, the number of quarters data and the 24-second countdown data; A3, get the current display mode, call the display program in the library function corresponding to the font, the controller 2 gets the corresponding display segment code according to the query and drives the 8-shaped digital tube 6 to display the number through the data transmission line 5; A4. Delay for a while.
[0072] In this embodiment, the display of the countdown 8-shaped digital tube 63 is also similar and is set according to specific competition rules. This is a prior art and will not be described in detail here.
[0073] In the description of the embodiments of the present application, it should be noted that in the description of the present application, terms such as "inside" and "outside" indicating directions or positional relationships are based on the directions or positional relationships shown in the drawings. This is only for the convenience of description, and does not indicate or imply that the device or component must have a specific orientation, be constructed and operated in a specific orientation. Therefore, it cannot be understood as a limitation on the present application.
[0074] In the description of the present application, the description with reference to the terms "one embodiment", "some embodiments", "in the present embodiment", "specific example", or "some examples" etc. means that the specific features, mechanisms, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, mechanisms, materials or characteristics described may be combined in a suitable manner in any one or more embodiments or examples. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.
[0075] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.
Claims
1. A basketball game timer, characterized in that: It comprises a display screen (1) for displaying the time of a basketball game, a controller (2) for controlling the display screen (1) to display data, a remote controller (3) for sending the start and stop of the basketball game and a 24-second countdown, and a voice announcement module (4) for announcing the end of the game; The display screen (1) comprises a base plate (11) and a plurality of light strips (12) arranged on the base plate (11), each of the light strips (12) being provided with a positive terminal, a negative terminal and a data transmission terminal, the positive terminal of each of the light strips (12) being connected in series and electrically connected to the positive terminal of a power source, the negative terminal of each of the light strips (12) being connected in series and electrically connected to the negative terminal of a power source, the data transmission terminal of each of the light strips (12) being connected in series and electrically connected to a controller (2) via a data transmission line (5), and every seven of the light strips (12) being surrounded to form an 8-shaped digital tube (6); The voice broadcast module (4) is electrically connected to the controller (2), and the remote controller (3) is wirelessly connected to the controller (2). The controller (2) controls the light strip (12) to display the remaining time of each quarter of the basketball game, the number of quarters, and the 24-second countdown time according to the signal received by the remote controller (3).
2. The basketball game timer according to claim 1, characterized in that: The plurality of light strips (12) are at least formed into four 8-shaped digital tubes (61) for displaying the remaining time of each quarter, one 8-shaped digital tube (62) for displaying the number of quarters, and two 8-shaped digital tubes (63) for displaying the countdown of 24 seconds; The one section number 8-shaped digital tube (62), four section time 8-shaped digital tubes (61) and two countdown 8-shaped digital tubes (63) are sequentially connected in series and then electrically connected to the controller (2) via a data transmission line (5).
3. The basketball game timer according to claim 1 or 2, characterized in that: The 8-shaped digital tube (6) comprises a first horizontal light strip (121) located at the top, a second vertical light strip (122) located at the upper left, a third vertical light strip (123) located at the upper right, a fourth horizontal light strip (124) located in the middle, a fifth vertical light strip (125) located at the lower left, a sixth vertical light strip (126) located at the lower right, and a seventh horizontal light strip (127) located at the bottom; The fourth horizontal light strip (124), the fifth vertical light strip (125), the seventh horizontal light strip (127), the sixth vertical light strip (126), the third vertical light strip (123), the first horizontal light strip (121) and the second vertical light strip (122) are sequentially connected in series; The fourth horizontal light strip (124) of the 8-shaped digital tube (6) is connected in series with the second vertical light strip (122) of the adjacent previous 8-shaped digital tube (6), and the second vertical light strip (122) of the 8-shaped digital tube (6) is connected in series with the fourth horizontal light strip (124) of the adjacent next 8-shaped digital tube (6).
4. The basketball game timer according to claim 1, characterized in that: The remote controller (3) comprises a processor (31), a keyboard module (32) and a wireless transmission module (33); the keyboard module (32) and the wireless transmission module (33) are both electrically connected to the processor (31); and the controller (2) is electrically connected to a wireless receiving module (21) for receiving signals sent by the wireless transmission module (33).
5. The basketball game timer according to claim 4, characterized in that: The chips of the wireless transmission module (33) and the wireless reception module (21) are NRF2401L single-chip radio frequency transceiver chips.
6. The basketball game timer according to claim 1, characterized in that: The light strip (12) is a WS2812 type light strip.
7. The basketball game timer according to claim 1, characterized in that: The voice chip of the voice broadcast module (4) is a SYN6288 voice chip.
8. A method for controlling a basketball game timer according to any one of claims 2 to 7, characterized in that: The steps include: S1, constructing a digital font array corresponding to different display areas of the display screen (1), and constructing a library function corresponding to the font; the controller (2) initializes an internal timer and starts it; S2. Determine whether a signal is received within a preset time; If the first preset signal is received within the preset time, or no signal is received within the preset time, it is a timing mode and enters step S3; if the second preset signal is received within the preset time, it is a score module and enters step S10; S3, initialize the internal timer and start it, initialize all 8-shaped digital tubes (6) connected to the data transmission line (5), define the remaining time of each section as i and assign an initial value, define the number of sections as j and assign an initial value, define the 24-second countdown as k and assign an initial value; S4, the controller (2) calls the library function corresponding to the font, and causes the 8-character digital tube (61) for each section time to display the remaining time i of each section through the data transmission line (5), and causes the 8-character digital tube (62) for the section number to display the section number j, and when the timer reaches one second, the remaining time i of each section is automatically reduced by one; S5, determining whether a signal to start a 24-second countdown is received; If so, the controller (2) calls the library function corresponding to the font, and through the data transmission line (5) causes the 8-character digital tube (61) for each section time to display the remaining time i of each section, causes the 8-character digital tube (62) for the section number to display the section number j, and causes the 8-character digital tube (63) for the countdown to display the 24-second countdown k, and the process proceeds to step S6; otherwise, the controller (2) calls the library function corresponding to the font, and through the data transmission line (5) causes the 8-character digital tube (61) for each section time to display the remaining time i of each section, causes the 8-character digital tube (62) for the section number to display the section number j, and causes the 8-character digital tube (63) for the countdown to display 00, and the process proceeds to step S6; S6, determining whether a pause signal is received; If so, the controller (2) calls the library function corresponding to the font, and through the data transmission line (5) makes the numbers displayed by the 8-shaped digital tube (61) for each section time, the 8-shaped digital tube for the section number (62) and the 8-shaped digital tube for the countdown (63) remain unchanged, and the process proceeds to step S7; otherwise, the process proceeds to step S8; S7, judging whether the pause signal is cancelled; If so, the controller (2) calls the library function corresponding to the font, and through the data transmission line (5) makes the numbers displayed by the 8-shaped digital tube (61) for each section time and the 8-shaped digital tube (62) for the section number remain unchanged, and makes the number k displayed by the countdown 8-shaped digital tube (63) automatically decrease by one when the timer reaches 1 second, and when k decreases to zero, the process goes to step S8; otherwise, the process returns to step S7; S8, judging whether the remaining time i of each section is zero; If the number of sections j=j-1, the remaining time i of each section is assigned an initial value, the controller (2) calls the library function corresponding to the font, and through the data transmission line (5) the 8-font digital tube (61) of each section time displays the remaining time i of each section, and the 8-font digital tube (62) of the section number displays the section number j, and the process goes to step S9; otherwise, the process returns to step S4; S9, judging whether the number of nodes j is zero; If yes, the game is over. Otherwise, the process returns to step S4. S10, the controller receives the match score, and the controller (2) calls the library function corresponding to the font, and causes the 8-font digital tube (61) to display the match score data of both teams in each quarter through the data transmission line (5).
9. The method for controlling a basketball game timer according to claim 8, characterized in that: The controller (2) calls the library function corresponding to the font, and drives the 8-shaped digital tube (6) to display numbers through the data transmission line (5), which specifically includes the following steps: A1, controller (2) obtains the remaining time data of each quarter, the game score data, the number of quarters data and the corresponding numbers of the 24-second countdown data during the game; A2, the controller (2) searches the library function corresponding to the font to obtain the corresponding display segment code according to the numbers corresponding to the remaining time data of each quarter, the game score data, the number of quarters data and the 24-second countdown data; A3, obtaining the current display mode, calling the display program in the library function corresponding to the font, the controller (2) obtains the corresponding display segment code according to the query, and drives the 8-shaped digital tube (6) to display the number through the data transmission line (5); A4. Delay for a while.
