Projects · Pico Wi-Fi Demo

Micropython-Pimoroni-Wi-Fi Demo

Testing out basic Wi-Fi on the RP Pico 2 W using Pimoroni MicroPython - a small web server on the board drives the onboard LED and the Display Pack.

RP Pico 2 W stack with Pimoroni Display Pack 2.0 and Waveshare UPS module
Full write-up (hardware, setup, web UI)

Hardware

This project uses the following items:

Item Qty Source
RP Pico 2 W 1 pishop.us
Waveshare UPS Module for Raspberry Pi Pico 1 AliExpress.us
Expansion Board Pi Pico Dual GPIO Expander 1 AliExpress.us
Pimoroni Pico Display Pack 2.0 1 Pimoroni.com
14500 battery 1 Amazon.com

Other products may work as well; other suppliers too (YMMV).

Setup

Put your SSID and password in secrets.py.

Load the following onto the Pico local directory using Thonny (or any other program that works):

  • secrets.py
  • main.py
  • pico_off.jpg
  • pico_on.jpg

Run main.py.

The display and Thonny console should show you the local IP of the Pico's web server. Paste this address in a web browser address bar and hit enter.

NOTE: If running on battery power, it may take some time to connect and for the LCD screen to come up.

Web UI

A web page should come up.

Browser page with Turn ON and Turn OFF buttons for the Pico LED

Use the Turn ON / Turn OFF buttons to control the onboard LED.

Pimoroni Display Pack showing LED on and off states

And the LCD display should change as well.