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

КОМЕНТАРІ • 41

  • @CodeProfessor
    @CodeProfessor 2 роки тому +21

    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.

    • @PrintNPlay
      @PrintNPlay  2 роки тому +7

      This request may make me shout.

  • @nerdwerx2292
    @nerdwerx2292 Рік тому

    Pretty cool!😎 Capturing the MAC of previous connected items would be kind of cool.😎

  • @FunKing3d
    @FunKing3d 2 роки тому +1

    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. ;)

    • @PrintNPlay
      @PrintNPlay  2 роки тому +1

      I need to add a low frame animated gif and some midi music now...

  • @MrBobWareham
    @MrBobWareham Рік тому

    Very nice so joined your channel, thanks for the intro to pico on the web

  • @kayleenamanda
    @kayleenamanda 2 роки тому

    So fun! Can't wait to see what you build with it 😁

  • @mtbevins
    @mtbevins Рік тому

    Great video! Thank you for this to get me started.

  • @adambrassard9268
    @adambrassard9268 2 роки тому +1

    Great video! Seems like there will be lots of IoT options for this model!

  • @typxxilps
    @typxxilps 2 роки тому +1

    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

    • @PrintNPlay
      @PrintNPlay  2 роки тому

      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!

  • @crusherjones6809
    @crusherjones6809 2 роки тому +1

    Solid stuff.

  • @BBBA_
    @BBBA_ Рік тому +1

    How do I make a website ?

  • @schlingelgen
    @schlingelgen Рік тому +2

    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?

    • @PrintNPlay
      @PrintNPlay  Рік тому +1

      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.

  • @Mitch3D
    @Mitch3D 2 роки тому +1

    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.

    • @PrintNPlay
      @PrintNPlay  2 роки тому +1

      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.

  • @Sportmatchsummary
    @Sportmatchsummary 2 роки тому

    Do have any idea ,about the power consumption for the module with Wireless on , when using a battery??

  • @gandalfsVater
    @gandalfsVater Рік тому

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

  • @zhouyu9971
    @zhouyu9971 Рік тому +1

    fantastic!! Can this page hold buttons hook up with code to turn GPIO on and off? that would be awesome!

    • @PrintNPlay
      @PrintNPlay  Рік тому

      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

  • @MohitKhare
    @MohitKhare 11 місяців тому

    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.

  • @BBBA_
    @BBBA_ Рік тому

    This is over my head.

  • @JoshF151Tech
    @JoshF151Tech Рік тому

    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?

  • @ExpertPower
    @ExpertPower 2 роки тому

    Perfect :)

  • @6themaker
    @6themaker Рік тому

    Is there a way to connect from a different network

  • @duowienermelange
    @duowienermelange 2 роки тому

    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.

    • @jyvben1520
      @jyvben1520 3 місяці тому +1

      mcwhorter _threads video, May 2024

  • @The_Prince770
    @The_Prince770 Рік тому

    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?

    • @The_Prince770
      @The_Prince770 Рік тому +1

      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 :)

  • @ophello
    @ophello 2 роки тому

    Can you drive a unicorn hat HD with this?

  • @datagod
    @datagod 2 роки тому +1

    Your soldering skills are 733T. You should do a full video on that for guys like me that keep ruining devices.

  • @tubeDude48
    @tubeDude48 Рік тому +2

    Your github to ssd1306 is dead! (under micropython) Still not fixed. Still not fixed. Still not fixed. Still not fixed.

    • @PrintNPlay
      @PrintNPlay  Рік тому +1

      Will get it updated asap! Sorry!

  • @BBBA_
    @BBBA_ Рік тому

    ...pin and IOTC

  • @Mikeytheloser1524
    @Mikeytheloser1524 2 роки тому

    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!!

    • @PrintNPlay
      @PrintNPlay  2 роки тому +2

      Hahaha! I remember you! Welcome back :D

    • @Mikeytheloser1524
      @Mikeytheloser1524 2 роки тому

      @@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