The projects of ProfB

©2017-2019 by Bertrand Gros

A description of some of my electronics and software projects. Still in beta, more contents will be added.

QR Code generator for Altium Designer

The current version of Altium Designer doesn't support the generation of a QR Code for inclusion on a PCB. Only standard barcodes are supported. So I have developped a little online tool that allows to do it. It relies on a little known feature of Altium Designer, i.e. the "Smart Grid Insert" that allows to insert features on the PCB using CSV-like data.

Generation of the QR Code

Enter the text in the field below. It can be a multi-line text. Choose the options, then click on the generate button. This will display a preview of the QR Code. If you are happy with the result, press the copy button, this will put the needed CSV data needed for Altium Designer in the clipboard. Else press the new button and change the options.

The ECC define the level of redundancy and so the tolerance to read errors (even the lowest one is usually ok on PCBs). The quiet zone is the margin around the QR Code, needed for a correct reading (2 dots is usually a good choice). You can also choose the polarity of the QR Code (I prefer black dots as overlay, but some scanners are unable to read them as it looks like a negative QR Code).




Inclusion on the PCB

In Altium Designer, first open the "PCB List" window (Shift+F12):

Check on top left of the window that it is in edit mode. If it is in view mode, click on the "view" text to change it. Then right click and select "Smart Grid Insert" or type Ctrl-Ins. This will open the following dialog:

Click on "Automatic Determine Paste", this shall copy the clipboard data (upper table) to the attribute table:

Click on the "OK" button. You shall now see the QR Code on your PCB. It is composed of a lot of fills. I recommend that you select all these elements and create an union so you can move the QR Code without problem.


(Most recent first)
Add a comment
From Frank on 08.04.2019 06:47:21 UTC
Anyway. It wold be nice to have the possibility to invert the QR-Code. I find your solution pretty cool. Maybe a can donate you with 50 Dollar, if you implement an "inverted" solution. I think, the easiest way is a second script. And i think you have to change only one line of code from "1" to "0". What do you think?
From lapinoo on 03.04.2019 12:31:25 UTC
@Frank: on my Android phone I'm able to read white QR-Code on green PCBs using both reader applications I have installed, i.e. "PDF417" and "Barcode to PC: Wi-Fi scanner". It is important to have the flash light of the phone off, else light reflection on the PCB prevents a correct reading.
From Frank on 03.04.2019 12:10:19 UTC
Hello Lapinoo. Hmm. I had less luck than you. I tried to read the QR-code with a mobile app and with a usb handheld reader. Both are not able read the QR code...
From lapinoo on 31.10.2018 15:04:34 UTC
@Frank : Well, most QR-code readers are able to read inverted QR-codes (clear code on dark background). At least I never had problems to read white QR-Codes on green PCBs.
From Frank on 31.10.2018 14:54:07 UTC
It would be very helpful, if it is possible to "invert" the QR-code. Because top overlay is usually white...