I loved playing with Legos as a kid and I recently wanted to try them out again. One of the sets that caught my eye was an image remade with Legos
I had recently seen a video where they paired NFC tags with album covers to play the album on nearby speakers. I thought it would be cool to replicate this idea for my favorite albums but use a pixelated covers made of Legos. After a little research I found an online marketplace for Legos where I could purchase the 1x1 bricks I needed. They cost less than $.01 / piece so I ordered ~5000 pieces of 20 different colors
I then entered the colors, color codes, and quantities into an excel sheet
I wanted to start with one of my favorite albums, 21 by Adele
Next, I needed to turn this image into something I could build with my Legos. This would require two steps. First I would need to convert the image into the Lego colors I had and second I needed to pixelate the image. To achieve the first step I would look at each pixel and convert it to the nearest Lego color. After implementing this using the Pillow library, I found that using all 20 colors didn't produce the results I was looking for
The background of the original album is grey but depending on the shade of grey sometimes sometimes the program found brown was the closer color. To solve this I decided to reduce the number of colors I would use. I wasn't sure how many colors would produce the best results so I had the program randomly choose either 4, 8, or 16 colors and then repeated the process several time so I would have many options to choose from
This gave me some fun results. I now had the album in the same colors as my Legos
The next step was to pixelate the photos. I found some 32x32 base plates I would attach the Legos to so I decided to go with 64x64 pixels and use four plates
I decided to choose the most accurate color option (Show Left Below) for this project but down the line I may go down a less photo realistic palette
I now had a 64x64 pixel album cover in colors I also had in Legos. The next step was to separate the image into pieces to make it easier to read. I decided to go with 16 16x16 pixel images
I could now get started recreating the album cover
Lastly to be able to tap my phone on the album cover and play the album on speakers in the room I purchased some NFC (Near Field Communication) tags. I then used Apple's App Shortcuts to link the tag to the album. More information on this can be found in the below link.