Wi-Fi on the Raspberry Pi Pico, ESP32 and Arduino in MicroPython (shorter version)
ฝัง
- เผยแพร่เมื่อ 17 ก.ค. 2024
- The Raspberry Pi Pico W, ESP32 and some Arduino boards come with an integrated Wi-Fi interface. Adding this feature to your MicroPython projects instantly opens your code up to a multitude of opportunities to access the Internet and communicate with other devices wirelessly.
In this tutorial I'll show you how to set up the interface in both normal (station) mode as well as access point mode where the device creates its own, independent, network. We'll then look at how to build a web based front end control panel connected to your code.
Make sure to check out the main project page at
bytesnbits.co.uk/simple-micro...
GitHub repository
github.com/getis/pi-pico-w-si...
Full version
• WiFi Control Your Micr...
0:00 introduction
2:45 Creating a connection to a Wi-Fi network
9:50 Creating a stand alone Wi-Fi network
14:00 Pulling data from a web API
20:45 Receiving web requests - running as a web server
27:10 The structure of a GET request
29:00 Serving a web page
30:00 Decoding the GET request and controlling an LED
Thank you for the straight forward example . Using her method.
Looking forward to Rest_api version .
Thanks. The video is all on the channel. Have Fun!
The best walk through I have seen on using the pico wifi. Thanks for your excellent videos. Looking forward to your next instalment
Thank you very much!
Black on white is much easier to see and read in bright environments. Please consider using that format for your screens in the next videos. Like the content.
Thanks for your feedback.
textfile **token**, great idea, and then **token1**, **token2** for image name, light bulb on image, light bulb off image,
or just change background colour thru changing name of css file or html body bgcolor parameter...
Iimage or coloured square.
You can start to get really creative with this process. Keep an eye out for the next in this series where we'll build a full web API on the Pico. We can then start to do some proper dashboard and control coding without having to go through the page refresh stage.
Shorter version?
A bit shorter. I'm never sure if people can take the full long versions so I thought I'd try a quicker one to see if people prefer it.
Tbh long version sailed by as I absorb it all. Well at least I fully understood how simple this is. I was considering using QRCode and a mobile to get information from the pico project out. This is definitely preferd easier and two way . Will still be using QRCodd but for simpler links .
i should get a Raspberry Pi Board
Great. Give it a go!
Blutooth is more important, implement it so I can connect earphones, keyboards and mice! The wifi on Pico isn't near as useful!
You'd need to add an external BlueTooth module, or swap to a ESP32.
@@BytesNBits The bluetooth module is already built into the Pico W. Theoredicaly software is all thats keeping it from being useful. I've seen some examples that almost work in the last few months. Thanks for responding.