Hosting And Accessing Websites from the Raspberry Pi Pico W
Вставка
- Опубліковано 27 сер 2024
- @raspberrypi just released the new Wifi enabled version of the Raspberry Pi Pico! This tutorial will show you how to access websites from the Pico, and even host your own!
Pico W Micropython Firmware:
micropython.or...
Webhost:
github.com/pri...
Webhost with SSD1306 Display:
github.com/pri...
Note : You must add the SSD1306.py library to your Pico for the above example. You can find it here.
github.com/mic...
Is retro tech your jam? Well, check out my retro tech channel, Print N Play Retrospective!
/ pnpretrospective
Want to help support future builds and get first access to new designs? Check out my Patreon
/ jcprintnplay
You should implement HTTP status code 418. Any attempt to brew coffee with a teapot should result in the error code "418 I'm a teapot". The resulting entity body MAY be short and stout.
This request may make me shout.
Pretty cool!😎 Capturing the MAC of previous connected items would be kind of cool.😎
Very cool. The visitor count was funny. I remember in the EARLY days of the public internet that every site had one. That was the current day like button. Speaking of... I clicked the like button. ;)
I need to add a low frame animated gif and some midi music now...
Very nice so joined your channel, thanks for the intro to pico on the web
So fun! Can't wait to see what you build with it 😁
Me neither
Great video! Thank you for this to get me started.
Great video! Seems like there will be lots of IoT options for this model!
I think so too!
Would be great to show the electricity generated from the Solar Power roof.
Access the Growatt cloud and take it from there to Report that constantly in the OLED once a movement had been detected
That would definitely be a great use of this setup! And you could always go with a slightly larger, color display if you wanted more details!
Solid stuff.
How do I make a website ?
For IoT devices it is convenient to be able to connect them dynamically to the network without having to change the code. I was thinking about a Setup page which is shown when connecting to the pico network, where a simple network selection and Password prompt allows any user to connect it to their own network. Is that possible with the pico? And if, how?
It is possible for a Pico to act as a wifi host. So you could host a site, poll the available wifi networks, and then provide a simple login page that allows the user to select the wifi they would like to connect to.
I really wish they were in stock locally. I wonder what the limitation is on simultaneous connections since I know it's not that powerful.
Maybe we can do some tests. I will say, even hosting a single connection, it isn't fast. But there is also overhead associated with MicroPython versus something to run directly on the processor.
Do have any idea ,about the power consumption for the module with Wireless on , when using a battery??
How can i adjust the code, so i can simply only show a website without buttons, leds or anything else
fantastic!! Can this page hold buttons hook up with code to turn GPIO on and off? that would be awesome!
You absolutely can! By having the buttons fire unique links, you can parse the unique values from those urls for on, off, or various other values for things you might want it to do. I will be showing this in a future video
I've tried many videos and followed the same instructions but for me the code compiles fine but the browser is not able to connect to the server address. I've tried changing the port but no luck. I'm able to get the IP address for my pico w but for some reason the server is not responding. I've tried to ping the ip as well but again no luck.
If someone could suggest something, it will be of great help. Thanks.
This is over my head.
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?
Perfect :)
Is there a way to connect from a different network
great stuff, any idea how we can use the second core for background tasks while waiting for incoming connections? I couldn't solve this issue. It seems that s.accept somehow conflicts with multithreading.
mcwhorter _threads video, May 2024
Greetings. For some reason, whenever I attempt to use port 80 for data transfer with my Pico w, it gives the EADDRINUSE error. However, when I try any other port number, it doesn't recognize the client attempting to connect to it. Are there any alternate port numbers that one could use to avoid such an error?
Nevermind, I just added ":" followed by the port number that I was attempting to use to the IP address in the search bar and it connected :)
Can you drive a unicorn hat HD with this?
Your soldering skills are 733T. You should do a full video on that for guys like me that keep ruining devices.
haha, thanks!
Your github to ssd1306 is dead! (under micropython) Still not fixed. Still not fixed. Still not fixed. Still not fixed.
Will get it updated asap! Sorry!
...pin and IOTC
PRINT N PLAY ITS YOU, IVE MISSED YOU SO MUCH BROTHER, idk if you remember me but I was the one who used to make the joke of the T. rex secret agent, anyways, I lost acces to my old account and sense then have missed you so much man, I forgot the name of your channel and finnaly found out!! We definitely have to catch up!!! My Instagram is stitchedupteddybear if you wanna talk there!!
Hahaha! I remember you! Welcome back :D
@@PrintNPlay I will def be at your next live stream, I used to be a mod but lost acces to the old account, lol, hope life has been going good for you brother