Play Tetris on an IKEA Wall Lamp

Time for a fast quiz — if you happen to had been to purchase a wall lamp that’s composed of an LED matrix, what’s the very first thing it is best to do with it? That’s right! You need to hack it so that you could play Tetris on it. And that’s precisely what Max Goldberg has executed with an IKEA OBEGRÄNSAD wall lamp.

The lamp in query — which hides a 16×16 LED matrix inside — is generally used as a minimalist lighting fixture and ornamental show. However due to Goldberg’s challenge, the lamp turned a really distinctive gaming gadget. By pairing the show with an ESP32 microcontroller, he reworked the 16×16 LED matrix right into a playable model of all people’s favourite puzzle recreation: Tetris.

As a result of the lamp’s decision is smaller than the normal Tetris playfield, Goldberg tailored the gameplay to suit a ten×16 grid slightly than the usual 10×20. Regardless of this compromise, the sport retains most of the mechanics trendy gamers anticipate. The implementation consists of the Tremendous Rotation System with purposeful wall kicks, ghost items that present the place the present block will land, and the acquainted “7-bag” randomization system to make sure a good distribution of tetrominoes.

Gameplay additionally incorporates Delayed Auto Shift and Auto Repeat Price for easy sideways motion, together with a lock-delay system that stops gamers from endlessly sliding items alongside the ground. The sport progresses by way of ranges one by way of fifteen, with rising velocity as extra traces are cleared. Whereas this model doesn’t preserve rating, the emphasis is on survival and development slightly than leaderboard chasing.

The sport is managed by way of a Bluetooth gamepad, such because the PlayStation 4 DualShock Controller or the PlayStation 5 DualSense Controller. Gamers can transfer items with the D-pad, rotate them with the face buttons, and use shoulder buttons to carry items. The unique aspect button on the lamp has additionally been repurposed: a brief press toggles sleep or reboot, whereas a five-second maintain enters Bluetooth pairing mode.

If no controller is linked, the lamp switches into an “autoplay artwork mode,” the place the system makes an attempt to play Tetris by itself throughout the total 16×16 show. It isn’t superb on the recreation, however it does make for a really attention-grabbing and dynamic animation.

Do you’ve got an IKEA OBEGRÄNSAD wall lamp? In that case, what are you ready for? Take a look at the GitHub repository and get hacking!

Muhib
Muhib
Muhib is a technology journalist and the driving force behind Express Pakistan. Specializing in Telecom and Robotics. Bridges the gap between complex global innovations and local Pakistani perspectives.

Related Articles

Stay Connected

1,857,394FansLike
121,245FollowersFollow
7FollowersFollow
1FollowersFollow
- Advertisement -spot_img

Latest Articles