Two-color QR codes without an AMS
You don't need a multi-material system to print a sharp black-on-white QR code. A single filament swap at the right layer is enough, and every popular slicer can do it.
Why a layer change works so well for QR codes
The files from our generator are built in two parts: a flat base and the code raised on top of it. Because the raised squares start at one exact height, everything below that height can be printed in the base color and everything above it in the code color. The printer only needs to stop once, wait for you to swap the filament, and continue. There is no purge tower, no wasted filament and no risk of the two colors mixing inside the code.
Step 1: find the first layer of the code
Slice the file as usual and open the preview. Drag the vertical layer slider up from the bottom until the first layer where the squares of the code appear on their own, above the flat top of the base. That is the layer where the color must change.
You can also calculate it: with a 0.2 mm first layer and 0.2 mm layers, a base that is 3 mm thick ends at layer 15, so the code starts at layer 16. Always confirm in the preview, because some slicers use a different first-layer height.
Step 2: add the pause or color change
Bambu Studio and OrcaSlicer
- Slice the plate and go to the Preview tab.
- Move the vertical slider to the first layer of the code.
- Right-click the “+” next to the slider handle and choose Add pause (on printers without AMS) or Change filament if your printer supports it.
- Slice again and send the print.
PrusaSlicer
- Slice and open the preview.
- Move the vertical slider to the first layer of the code.
- Click the orange “+” icon next to the slider. PrusaSlicer adds a color change (M600) and shows the new color in the preview.
Prusa printers then guide you through unloading and loading on the screen.
Cura
- Open Extensions → Post Processing → Modify G-Code.
- Add the script Filament Change (or Pause at height if your firmware doesn't support M600).
- Enter the layer number of the first code layer, as shown in the preview, and slice again.
Step 3: the swap itself
- Stay close to the printer around the time of the change. The slicer preview shows the estimated time for each layer.
- When the printer pauses, unload the base color and load the code color.
- Extrude a little until the new color comes out clean, with no traces of the old one.
- Remove the strand of purged filament from the nozzle with tweezers before resuming. A blob dropped on the base is the most common way to ruin a code.
- Resume the print and watch the first code layer go down.
Choosing the two colors
Phones read QR codes by contrast, so pick a dark code on a light base: black on white, navy on cream or dark brown on beige. Avoid silk and glossy filaments for the code itself. Their shine reflects light into the camera and can hide whole squares. Matte or regular PLA gives the most reliable result.
Want the base and the code in reverse?
A light code on a dark base looks elegant, but some older scanning apps can't read inverted codes. If you go this way, test with at least two different phones before printing a whole batch.
Where to click in the common slicers
- PrusaSlicer: drag the vertical slider on the right to the first layer above the base and click the plus icon to add a colour change. The slicer inserts the pause for you.
- OrcaSlicer and Bambu Studio: right-click the slider at that layer and choose to add a pause or a colour change, depending on whether your printer swaps filament by itself.
- Cura: use Extensions, Post Processing, Modify G-Code and add either Pause at Height or Filament Change, then enter the height of the top of the base.
Purge the old colour before you resume
After you swap filaments, the nozzle still holds a little of the first colour. If you resume straight away, the first lines of the code come out in a mix of the two. Push new filament through by hand until the colour coming out of the nozzle is clean, wipe the tip with tweezers and only then press resume. Do this gently so the nozzle does not drag across the printed base.
Keep the pause short
Some printers cool the hotend or the bed when a pause lasts too long, and a cold bed can make the base lift at the corners. Have the new filament ready before the print reaches the change, and keep the swap to a minute or two. Do not touch the print while the nozzle is hot.
Use the same type of plastic for both colours
Printing PLA on PETG, or the reverse, gives a weaker bond between the layers because the two plastics need different temperatures. Choose two colours of the same material family and the code will stay attached to the base even after months of use.
Check the preview before you print
In the slicer preview, move the slider through the change: the layers below it should be the first colour and the layers above it the second. If the code starts one layer too low or too high, the squares will be half one colour and half the other. Fix the height before you start, because a failed print wastes both time and filament.