Using the EasyFPGA030 development kit, the game circuit simulates a table tennis game and can be played by two people. A and B each hold a button as a racket. A row of 16 LEDs on the experimental board is the movement track of the table tennis ball. A bright spot represents the table tennis ball, which can move left and right on this track. The hitting position should be at the second LED position on the left and right ends. If the hitting button is pressed just when the ball reaches the hitting position, a short hitting sound will be emitted, and the ball will move in the opposite direction. If the button is pressed too early or too late, the hitting is invalid, no ball sound will be emitted, and the ball will continue to move forward to the end of the shift register and stop at this position. It can also be designed that the bright spot is extinguished. At this time, the hitter is judged to have failed, and 1 point is added to the winner on the scoreboard. After 1s, the bright spot automatically moves to the server\'s hitting position according to the table tennis game rules. The server presses the hitting button and the next game begins.
You Might Like
Recommended ContentMore
Open source project More
Popular Components
Searched by Users
Just Take a LookMore
Trending Downloads
Trending ArticlesMore