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

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

Core Electronics

1 год назад

69,735 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

PRESHITHA MEDIA
PRESHITHA MEDIA - 04.10.2023 13:40

>>> %Run -c $EDITOR_CONTENT

MPY: soft reboot
waiting for connection...
Traceback (most recent call last):
File "<stdin>", line 42, in <module>
RuntimeError: network connection failed
>>>



But my rpi is pico w

Ответить
mohit khare
mohit khare - 06.09.2023 13:33

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.❤

Ответить
Truth Hurts
Truth Hurts - 29.06.2023 22:11

I set my ROUTER to always give each PICO a STATIC IP ADDRESS, and still got the 'address in use error". So I put
wlan.disconnect() # release the current IP#

time.sleep(3) # time for router to react
right after the line "wlan.active(True)". I almost never get that error now.

Ответить
Paul Pourrias
Paul Pourrias - 12.05.2023 17:45

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.

Ответить
Da Bunnisher
Da Bunnisher - 12.05.2023 05:43

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

Ответить
David White
David White - 24.04.2023 00:23

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

Ответить
Logan Phan
Logan Phan - 23.04.2023 21:23

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

Ответить
Fateh MD
Fateh MD - 18.04.2023 13:23

Thank you. I am trying to run example code for Arduino nano rp2040 connect but I am seeing error 'OSError: [Errno 1] EPERM' for the line 'wlan.connect(ssid, password)'

Ответить
Wawan Setiawan
Wawan Setiawan - 30.03.2023 18:25

Good, tank's very much Master..

Ответить
Dennis Williams
Dennis Williams - 18.03.2023 22:41

Great video! I got mine working.

Ответить
cheze_bun
cheze_bun - 13.03.2023 21:41

For some reason it said trace back modulenotfounderror: no modula name ‘network’

Why is this happening

Ответить
Bobo
Bobo - 11.02.2023 10:34

Man, you didn't even censor the fact that your local network uses IP! I might have assumed you were operating on AppleTalk.

Ответить
Luca Colombo
Luca Colombo - 01.02.2023 13:45

Outstanding video, Thanks! Is It possible to read sensor within a wifi direct connection ? For example, reading over Wi-Fi Direct between a smartphone app and a Pico ?

Ответить
Josh Farley
Josh Farley - 20.01.2023 18:55

Would I be able to use a Raspberry Pi Pico W as a Backup DNS Server to keep my Internet Online if my Raspberry Pi 4 goes Offline? My problem is my Router makes me put in two DNS Addresses so I set them both as the PiHole DNS Addresses I've tried setting the Secondary DNS as Google's DNS but if I do that and turn off my Raspberry Pi 4 it doesn't allow me to connect to the Internet unless I turn the Raspberry Pi 4 back on and with the Prices of Raspberry Pi 4 and even the Raspberry Pi 3 right now I don't really want to spend that amount of money on another one right now if I don't have to?

Ответить
FranciscoJavier32423
FranciscoJavier32423 - 31.12.2022 12:45

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

Ответить
Edwin Rivera
Edwin Rivera - 26.12.2022 16:55

I'm having trouble connecting the Raspberry pi pico W to an open wi-fi from a hotel lobby, is this because of security measures or should I just try this at home instead?

Ответить
Joe timbersock
Joe timbersock - 10.12.2022 17:03

Is this server safe and secure?

Ответить
Eduard Khil
Eduard Khil - 29.11.2022 12:11

Dude, I can't take someone who censors his LOCAL IP seriously.

Ответить
Darek Krawczyk
Darek Krawczyk - 27.11.2022 12:46

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

Ответить
Gandalf
Gandalf - 19.11.2022 22:48

How can i adjust the code, so i can simply only show a website without buttons, leds or anything else

Ответить
Siva Asapu
Siva Asapu - 13.11.2022 12:01

sir, On the Raspberry Pi 4 model, is it possible to run two programmes at the same time?

Ответить
Acermf
Acermf - 31.10.2022 16:55

so you dont have to edit as much, you dont have to blur out your local ip. 192.168.x.x or 10.0.x.x

Ответить
EEZ EES
EEZ EES - 25.10.2022 01:22

Thanks for this, I find your presentation well paced and easy to follow. I am trying to re-program a garden watering system to include a wifi connection. All the examples of Pico W web servers I've found involve an infinite loop for the server. What I need is code running the watering system to run with the server in the background. The server traffic will be minimal.. just me on the LAN occasionally. I'm not sure if I should try to use uasyncio or just run through the server code every few cycles to see if there is incoming requests. Any advice?

Ответить
Layne McCormic
Layne McCormic - 24.10.2022 10:34

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

Ответить
Tommy Pham
Tommy Pham - 13.10.2022 02:29

Is it possible to control a servo motor through a web server as well using the raspberry pi Pico w?

Ответить
Danny Murray
Danny Murray - 08.10.2022 23:25

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

Ответить
VoeViking
VoeViking - 07.10.2022 01:24

WHY would you hide a local address?

Ответить
Michael 776
Michael 776 - 30.09.2022 11:55

I have the problem that fail massage is always present and I can power the pico how often I like new but it never solve the Issue.

Ответить
itwaslikethatwhenigothere
itwaslikethatwhenigothere - 27.09.2022 15:10

That was a really useful tutorial! Would you consider doing a tutorial on combining a Pico w web server with a BME280? I've been programming in C for years, and I am now starting to learn python, and I think a project like that would be good one to learn how to remotely read sensors.

Ответить
Henrix98
Henrix98 - 24.09.2022 15:18

This man censoring his local ip

Ответить
Honza
Honza - 21.09.2022 00:21

Cool video, thanks! Although, why pixelating the local IP?

Ответить
British Tech Guru
British Tech Guru - 18.09.2022 17:15

That works. Be better as a webhost though.

Ответить
Geraldo José Gardinalli
Geraldo José Gardinalli - 07.09.2022 19:52

👏👏
Great tutorial, Michael, thanks a lot for this!
I need to open a file in OneDrive and save/read some log data (e.g. temperature) there with my Pico W.
Any hints how can I do it???

Greetings from Brazil!!!

Ответить
Mike Hadzhiev
Mike Hadzhiev - 06.09.2022 22:54

Question to the author can i run pi hole on the new raspebbry pico w

Ответить
Lloyd's Shednanigans
Lloyd's Shednanigans - 04.09.2022 17:57

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?

Ответить
BambooInc
BambooInc - 30.08.2022 03:25

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.

Ответить
Viliam Holub
Viliam Holub - 24.08.2022 23:33

I’m nitpicking little bit here, but query in GET should not change state. It is supposed to be idempotent.

To change state, use POST.

Nice demo anyway

Ответить
Jyv Ben
Jyv Ben - 21.08.2022 13:16

and add a sd-card reader for extra file storage ...

Ответить
Kevin Thomas
Kevin Thomas - 21.08.2022 00:43

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

Ответить
Gamer Never Sleep
Gamer Never Sleep - 19.08.2022 22:01

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

Ответить
Alphafitz
Alphafitz - 19.08.2022 05:14

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

Ответить
Taki7o7
Taki7o7 - 19.08.2022 01:43

Well well, now you just need to find a Pico W to buy. Chip Shortage sux :/ I mean, i was happy enough to get 2 Pico W's on release day, but i feel so bad for the people trying to get one atm ^^

Ответить