Generate a QR Code
First generate a QRCode. Use a generator that lets you control the error correction level and the version (size) of the QR Code. Swetake.com has a generator that gives you these options. Lower error correction levels allow you to have more characters but it makes it harder for the phone to scan the code. You can also fit in more characters if you only use uppercase letters and certain punctuation. This table has details about the width and height of the different qrcode versions and the maximum number of characters you can fit. QR Code version 3 is a good size for a lego QR code because it is 29×29 blocks which will give you 1-2 block border when placed on 32×32 lego base plate. It is important to leave room for a white border because phones have a lot of trouble scanning the QR Code if it doesn’t have a border. If you use QR Code version 3 you will be able to have a maximum of 24 characters if using high error correction or 53 characters if using low error correction (more if only using upper case characters).
Fix the Margins
The qrcode generated by swetake has a 3 block white margin all around. If you have used a 29×29 qr code this will mean the qr code is currently 35×35 blocks but lego base plates are 32×32 blocks. Crop the image so the top and left has a 2 block margin and the bottom and right has a 1 block margin. This will make the image 32×32 blocks. Save the file as a gif so it can be opened by PicToBrick (it doesn’t support pngs).
Generate Mosaic using PicToBrick
PicToBrick is an awesome program that will generate lego mosaics from images.
- Load the image using the ‘Load Image’ button
- Click ‘Load Configuration’
- Select ‘Edit existing Configuration’
- Choose PicToBrick_Lego_top_view.cfg
- Delete all the colors except white and black
- Delete all the plates except 1×1, 2×1 and 1×2 (include others if you can be bothered ordering them)
- Save the configuration with a name like ‘black_and_white.cfg’
- Click ‘Mosaic Size’
- Enter 32×32 Basic elements
- Click and drag a rectangle to select the whole image
- Click Cut Out
- Choose the ‘Methods Tiling’ option: ‘Costs optimisation’
- Click Generate Mosaic
- Click Output Documents
- Check all the Boxes
- Click Generate documents
Now you have a tiled image and a list of lego bricks you need to acquire.
11_Black Plate_1×1_(3024) 101 piece(s)
11_Black Plate_2×1_(3023) 104 piece(s)
11_Black Plate_1×2_(3023) 51 piece(s)
01_White Plate_1×1_(3024) 117 piece(s)
01_White Plate_2×1_(3023) 192 piece(s)
01_White Plate_1×2_(3023) 56 piece(s)
Purchase Bricks from BrickLink
If you don’t already have the bricks and the 32×32 baseplate go to bricklink and buy them








