Back to Browse

WiFi Control Your Micropython Project Using a Web Interface

35.0K views
Jan 28, 2023
51:12

Microcontrollers such as the ESP32 and Raspberry Pi Pico W have an inbuilt WiFi interface. This brings a very powerful communications system to your projects. Your code now has access to the full Internet and other devices can now interact with your project over the wireless signal. In this tutorial I'll show you how to connect to WiFi using Micropython on a Raspberry Pi Pico. We'll pull data from a web based API and then build a web page interface to allow use to control our microcontroller project and pull data from it. Make sure you check out the main project page on my website https://bytesnbits.co.uk/simple-micropython-wifi-connection GitHub repository https://github.com/getis/pi-pico-w-simple-wifi-setup Shorter Version https://youtu.be/ltozEpvR4Wg 0:00 Introduction 4:00 Connect to a Wi-Fi network 10:50 Get data from a web API 23:00 Creating a web server on the Pi Pico 32:00 Creating API end points - urls the Pico will serve 33:50 Building the web page for project control 39:00 Decoding the request data 44:00 Creating your own Wi-Fi network - Access point mode

Download

1 formats

Video Formats

360pmp469.3 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

WiFi Control Your Micropython Project Using a Web Interface | NatokHD