Raspberry Pi Pico Easily Connects Guests to Your Wi-Fi
The $4 Raspberry Pi Pico, and the $6 Wi-Fi enabled sibling the Raspberry Pi Pico W proved a fantastic foundation for great projects. This QR Code display project was inspired by predrag Mijatovic. The project has a simple aim to display an QR code allowing a device to connect to Wi-Fi.
Mijatovic’s “qr_wifi” project displays a QR code that enables guests to connect to a guest WiFi network. In the QR code, the SSID, security (WEP/WPA) and password is stored for the network connection. The user must look over his device’s camera and connect to it.
The Display
What interests us most is the approach to that method where a Raspberry Pi Pico accessory is displayed on a 1.3 inch screen, which is usually displayed on Waveshare’s Pico OLED screen. All of the codes for the project were in Micropython. Also, in the video, we can see that Mijatovic generated the QR code using a qrencode, an automated terminal command that was useful to generate QR codes from data. This QR code is in the standard text file.
The returned QR code is 50 columns wide and 25 rows tall. Thus, Mijatovic uses regular expressions as a way to get the columns to square. This is essential because the QR codes have been inserted and the user cannot connect to Wi-Fi. A little more regular expression magic is required 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 be used when a Pico is powered up.
This great project was recognized by Mijatovic and it would be great to see it applied to other boards.
For more details, please use Mijatovic’s GitHub repository.
Read More: Raspberry Pi Pico Easily Connects Guests to Your Wi-Fi – Game News 24