Robotics & Engineering Python
60 mins
+155 XP
What you need:
Chromebook/Laptop/PC
USB Cable
Raspberry Pi PICO W
iPad/iPhone USB adapter

Wifi Signal Strength Scanner

In this lesson, you will create a Wifi Signal Strength Scanner using your Raspberry Pico. You will build a web page that displays the signal strength of nearby Wi-Fi networks, and learn how to connect your Pico to the internet.
Learning Goals Learning Outcomes Teacher Notes

Live Class Feed

This is a live feed of the latest activity by your students on this lesson. It will update in real-time as they work on the lesson.
Load previous activity

    1 - Introduction

    In this lesson, we will create a project to turn your PICO W into a Wifi Signal Strength Scanner. To begin, connect your Raspberry Pi Pico to either:

    • your computer using a micro USB cable.
    • your iPad using a micro USB cable and a iPhone/iPad to USB adapter.

    2 - Choose Your Editor

    Depending on the device you are using, you will need to use a different editor:

    • If you are using a PC or laptop, open your web browser and go to code.circuitpython.org.
    • If you are using an iPad, download and install the Koder app from the App Store.

    3 - Connect the Editor to Your Pico

    If you are using the CircuitPython editor (code.circuitpython.org) then we need to connect the editor to your PICO W so that we can transfer code to it.

    You can skip this step if you're using an iPad.

    4 - Create a New File

    Create a new file in your chosen editor and with the name 'code.py'.

    5 - Import Libraries

    In this step, you will import the necessary libraries for your project. A library is a collection of pre-written code that you can use to perform specific tasks. By importing libraries, you can save time and effort, as you don't have to write the code from scratch.

    Add the following code to your project:

    import network
    import socket
    from time import sleep
    

    Here's what each library does:

    • network: This library allows you to connect your Raspberry Pi Pico to Wi-Fi networks and perform network-related tasks, such as scanning for available networks.
    • socket: This library enables you to create and manage network sockets, which are essential for establishing connections and exchanging data between devices over a network.
    • time > sleep: This library provides the sleep function, which allows you to pause the execution of your program for a specified amount of time. This can be useful for controlling the timing of certain operations, such as waiting for a network connection to be established.

    Unlock the Full Learning Experience

    Get ready to embark on an incredible learning journey! Get access to this lesson and hundreds more in our Digital Skills Curriculum.

    Copyright Notice
    This lesson is copyright of Coding Ireland. Unauthorised use, copying or distribution is not allowed.
    🍪 Our website uses cookies to make your browsing experience better. By using our website you agree to our use of cookies. Learn more