How To Setup a HTTP Web Server With Raspberry Pi Pico W (using WiFi)

preview_player
Показать описание

Now that we can connect our Raspberry Pi Pico to the internet, it's time to control something! This guide will cover setting up a server to host a simple page on your network. We'll use this page to control some hardware attached to our Pico W - drive an LED and read the status of a button. Once we master these inputs and outputs, the sky is the limit!

For products featured in this guide:

Core Electronics is located in the heart of Newcastle, Australia. We're powered by makers, for makers. Drop by if you are looking for:

The following trademarks are owned by Core Electronics Pty Ltd:

"Core Electronics" and the Core Electronics logo
"Makerverse" and the Makerverse logo
"PiicoDev" and the PiicoDev logo
"GlowBit" and the GlowBit logo
Рекомендации по теме
Комментарии
Автор

Thank you. Keep em coming. Love the pico w. There should be more of them in a few weeks.

Alpha_fitz
Автор

Great starter video. I really appreciate the basic web server. Just the basics. Nice not having to learn Flask (or whatever) first. Read a pin from the board. Read input from the web. Change an output on the board. Write something out to a web page. That gets me started. Exactly what I needed. Feel I can take this and run with it. Thanks

davidwhite
Автор

Great tutorial, thanks! Just a heads-up that there are a number of web serving libraries which could make the work easie...my favourite is microdot which is inspired by Flask and the decorators used to configure HTTP endpoints. Please keep the MicroPython videos coming! (I'll be mentioning this one at the Melbourne MicroPython Meetup tomorrow!)

mattytrentini
Автор

This looks super useful. I will definitely mess around with this using my Pico. The clicking the buttons seems particularly useful

L.Lagrange
Автор

A good tutorial that gives a basic web interface for the Pico. Other videos I've watched cover Flask but in a full blown Python/Pi 3/4/zero context. It's good that you get to see results from code that you can follow along with. Will experiment with my Piicodev OLED, Atmospheric sensor, and Li-ion battery. Hopefully capture data to a CSV file and create a remote data logger.

SirSurreal
Автор

Thank you, your guides are wonderfully clear and concise. I appreciate them so much.

jeffschroeder
Автор

Fantastic video & resources. Will be a huge benefit to my students. Much much appreciated!

DanielMurrayMakes
Автор

Just brilliant! This helps makers use MicroPython in powerful new ways. Thank you for this so much!

mytechnotalent
Автор

I really dig your channel. Thanks for all the cool projects.

dabunnisher
Автор

dang u censored Local address how am i supposed to hack u now. 😂😂😂

gamerneversleep
Автор

Thank you for the great tutorial. If it were a little closer, I would thank you personally. Greetings from Poland

darekkrawczyk
Автор

N'étant pas un fervent de la langue de shakespeare, je m'en suis sorti très correctement et merci pour cette vidéo très explicite. Bravo et merci.

Gribouille
Автор

Thanks! This was a great tutorial for my first Pico W project. I took an additional step and set up port forwarding on my router to allow access from a public IP address using a specific port. That worked great, until I had different users try it from different locations and some had trouble connecting until I reboot the pico. Maybe it gets stuck on a connection session with the first person to connect? Could this be solved if we end the connection with the logged in user after X minutes of inactivity so that the server is waiting for a new connection without a reboot? I'm new to python - any suggestions are welcome.

BambooInc
Автор

This video brings another thought/question. I'm currently using a Rpi0W as a control server for my Rigol DM3058e, thanks to your video on making the Rigol stuff talk to each other. I have the PSU and the DSO on LAN but the DMM only has USB-B. The Rpi0w is really a waste of resources for running simple webserver for control/datalogging. I'm wondering if a Pico with a webserver would handle that small function. Only tricky part is the USB connection.... Can it be done?

lloydsshednanigans
Автор

Amazing, really good tutorial, I want to have that board do practice and play, unlikely are sold out for now.

FranciscoJavier
Автор

Thanks that is a really cool started project. Can you also make a video on micropython vs circuitPython. I'm new to this and it's all very confusing. Appreciate the efforts.❤

MohitKhare
Автор

appreciate the walkthrough. Felt like I was getting some questionable vibes at the beginning tho XD

laynemccormic
Автор

Hi, great video. What do I have to change if I want the website to be addressable from different wifis?

ferdifefe
Автор

Great. I have a question, How do you manage multiple pico w with the same feature on mobile phone/web-app?

loganphan
Автор

Great video as always from Core Electronics. I am trying to implement a pico w with an LDR sensor that logs time and date to a CSV file when my central heating comes on and goes off. I have all that aspect of the project working just great but I want to be able to download the CSV file from the pico via a link on a web page. I am very close but I am unable to download the file, any file, and I cant find out why or how to do it. It seems like it should be such an easy thing to do. All the examples of webserver functionality seem to focus on LED manipulation. Who needs to turn on an LED over the internet? I would really appreciate any help or info on how I can achieve file downloads over my LAN. Thanks in advance.

wasdaletimelapse