Inspiration

Fun!

What it does

It is an Air Hockey table that uses infrared sensors for goal detection and a buzzer and LEDs for fanfare

How we built it

We used an incomplete air hockey table that only had the fan under it and attached a goal scoring mechanism, an LCD with the score display, a 7 segment display for the time and 3D printed the paddles and pucks to use in the air hockey table. We also added a touch sensor to both ends of the table to add a ready up mechanism that only starts the game when both players have activated the touch sensor. Lastly we added a PWM buzzer and WS2812 LED strips to make noise and light up when a goal has been scored.

We used Assembly to initialize the LCD and the words "Player 1" and "Player 2" followed by question marks if the players are not ready to begin the game and check marks if they are. Then we used it to display the score when the game starts and turn on the fan to make the pucks float. Afterwards we used Assembly to set up goal detection with the infrared sensors, making sure that a player's score increments when the puck trips the sensors. Finally we set up the actions that happen after the goal, which was the buzzer and LED lights to light up at the same time.

Challenges we ran into

One of them was just testing out all the different mechanisms for the game with the Arduino IDE and then transferring that into Assembly. It was especially difficult for the IR sensor since it was finicky at first to get it working properly.

Another was getting the buzzer and LED lights to activate at the same time and then transferring that to Assembly.

Accomplishments that we're proud of

Getting a stable result out of the infrared sensors

Getting the buzzer and LED strip to activate at the same time in the Arduino IDE

What we learned

Two of our Computer Science majors learned how to interface different devices with an Arduino, such as infrared sensors, buzzer and LCD displays.

All us learned about setting expectations and time management, as well as camaraderie.

Built With

Share this project:

Updates