Raspberry Pi Pico Easily Connects Guests to Your Wi-Fi

The $4 Raspberry Pi Pico, and its $6 Wi-Fi enabled sibling the Raspberry Pi Pico W have proven to be an excellent foundation for great projects and this QR code display project from Predrag Mijatovic is inspired. The simple aim of the project is to display a QR code that enables a device to connect to Wi-Fi. 

YouTube YouTube
Watch On

Predrag Mijatovic's QR Wi-Fi projects

(Image credit: Predrag Mijatovic)

The returned QR code is 50 columns wide and 25 rows tall, so Mijatovic cleverly uses sed and regular expressions to duplicate the rows to make everything square. This is essential as QR codes contain error checking, and an incorrectly sized code will prevent users connecting to Wi-Fi. A little more regular expression magic and the QR code is ready for the final MicroPython script.

Dropping the QR code into the MicroPython code (lines 160 and 161) of main.py will see the code run every time the Pico is powered up.

This awesome project is a credit to Mijatovic and it would be great to see it applied to other boards. For example both Pimoroni's Badger 2040 and Tufty 2040 would be excellent devices to reproduce this project.

For more details qr_wifi visit Mijatovic's GitHub repository.

Les Pounder

Les Pounder is an associate editor at Tom's Hardware. He is a creative technologist and for seven years has created projects to educate and inspire minds both young and old. He has worked with the Raspberry Pi Foundation to write and deliver their teacher training program "Picademy".