Sackett LED

A Tetris game you can play on an LED sign from your phone

Currently unavailable on the App StoreView on GitHub
Sackett LED app icon

What is Sackett LED?

I had a few LED boards lying around from a previous project, and I thought it would be perfect to make a game on it and hang it outside my dorm window (at Sackett Hall) for people to play. The large 64 by 32 LED board I had was the perfect dimensions for Tetris, so I got to work on programming it.

Over the next month, I made a Tetris game based on the original NES Tetris, since I didn't have room on the LED display for some of the fancier things modern Tetris games have. During development, I had to keep in mind that the data from the game would have to be sent through Bluetooth to the LED display. The Bluetooth module I was using would only let me send around 20 characters at a time or it would crash, so I would break up the data into separate messages of 20 characters. This made sending data take longer, so I had to be conservative with how much data I sent during each move from the user in order to reduce lag.

Once I got the game running locally in the iOS app, I started work on the displays and getting the game to show up there. Since I needed to display the player's level, score, and next block, I connected two additional 16 by 32 displays to another Arduino board to show the extra info. I had to figure out communication between the two display driver Arduinos and the Bluetooth module, and also how to hang the displays outwards against the window (I ended up using suction cups and paperclips). Finally, before publishing, I styled the app, added music and a leaderboard, and figured out edge cases such as what happens when two players try to play at the same time (I used Firebase to create a line of players in this case).

I then published the app on the App Store for the last few weeks of school. It got quite a few downloads and many people competed to get the highest score. A month after I published though, Tetris reached out and asked me to remove the app, which is why it's no longer available.

In the end, I was very happy with how polished and bug-free the app was, as well as how low the latency was between the app and display, since I spent a lot of time optimizing these. I was also very happy I was able to complete a difficult project involving both hardware and software. I showed my computer science professor the project, and he was very impressed and happy I was able to apply some of the concepts from his class to the code.

LED matrix showing Tetris shapes during development
Working on getting shapes to display on the LED matrix.
Someone playing Tetris on the window display from their phone
The display hung up inside the building over the last few days of the school year.
View Gameplay Video

Programmed with

Swift logoSwift
C++ logoC++

Utilizing

Xcode logoXcode
Arduino IDE logoArduino IDE
Firestore logoFirestore
GitHub logoGitHub