Connect Raspberry Pi Pico to Wi-Fi with ESP01
ฝัง
- เผยแพร่เมื่อ 7 ก.ย. 2024
- By the time you're done with this video you can make your Raspberry Pi, Wi-Fi capable. The only thing that you need is a ESP01 module.
Here's the link to download the codes:
github.com/Ami...
semfionetworks...
#coding #esp8266 #esp01 #microcontroller #micropython #raspberrypipico #programming #wifi #sensor #bme680 #monitoring
For those who do not know, there is a 'raspberry pi pico w', which does wifi, works in micropython and also in circuitpython
Yeah I mentioned at the beginning of the bud as well.
@@aminsedighfaryeah but, pi pico w costs 10 dollars, pico+esp01 costs about 3 dollars or less on ali express, very cheap really
Nice video, i really liked your explanation
Thanks for your comment 🙏🏻🙏🏻🙏🏻
good idea
Thanks 😊
Great stuff!
Plus all your other scripts are really helpful.
I have tried to adapt your script to let me use the pico + ESP01 with Mosquitto MQTT, but I failed!
I can connect to wifi ok.
I can get the webserver to work ok.
I can get a pico w with a sensor attached to work with mqtt ok.
What I want to do is basically make the pico + ESP01 work exactly the same as a pico w.
What changes do I need to make to your script to achieve this?
(My reason for using pico + ESP01 + sensor instead of pico w + sensor is that here in NZ a pico + ESP01 is less than half the cost of a pico w, which is trivial for 1 or 2 units, but starts to become significant with 10 or more,)
Hi Ian, thanks for your comment.
I know! Prices of these stuff are unreasonable sometimes. For your question: I used the same system as you can see in the video for 3 months in my office as my room temperature sensor and it worked fine. The problem with this technique is that the whole thing is not gonna work fast enough, sometimes it’s frustrating.
By the time I wanted to record this video, I tried my best to come up with the best script, so I’m not sure if this combination could be performed the similar as Pico W
Thank you for the explanation!
I'm stuck with this error: AttributeError: 'module' object has no attribute 'WLAN'
Done so much research but not getting anywhere, do you have an idea of what might be happening?
Thank you!
Hey, what’s your microcontroller?
سلام سوالی داشتم در مورد اینکه در خطی از برنامه عدد 200 نوشته شده در اول فایل اچ تی ام ال و همچنین در قسمتی از کد جلوی CIPSEND= عدد 200 نوشته شده به چه معنی است؟
بله دو تا ۲۰۰ هستش اونی که برای Cipsend هستش درواقع یعنی ۲۰۰ بایت بفرسته، اون تو تابع write نوشته میشه و میزان بایت ارسالی مشخص میکنه.
دومی به اچتیامال میبینی درواقع کد هستش به معنی اوکی. مثلا ۲۰۰ یعنی اوکی، ۴۰۴ یعنی پیدا نکردم و اطلاعات نرسید:
Thanks for the video. I've tried both your video and someone else's, which was done with ThingSpeak. The thing is, I don't get any responses in the 'resp:' part; it's just blank. I tracked it, and in the try and except part within 'Wait_esp_rsp', it directly goes to the except part and prints (resp). And it just goes blank. What do you think the problem is? By the way, in the other guy's code, it gets stuck on the .decode and gives an error."
Hey, I don’t know about the other guy’s video and code. Something that I guess could be the cause of the problem is your firmware version.
Before everything make sure all the credentials ( wifi username and password), indentation in code and other typos are correct.
@@aminsedighfar it doesnt even go there.As i say it gives no responses.I mentioned the other guys video cuz im gettin the same problem in both of urs videos.decoding part. I've tried with 3 different esp01's and gettin the same results everytime
The video is pretty clear, but i dont know how to actually use the code. I dont have that sensor. So can you maybe make a script that just gives me the ip and lets me put my own html code?
What if you only comment out parts related to the sensor and add a simple string such as “Hello World” in the display part
@@aminsedighfarill try
Do i have to flash ESP8266-01 Module before using it? And can i send a notification on telegram with the wifi
For the first question:
I don’t think you need to flash ESP01 since I didn’t.
For the second, it’s possible, but you should be more precise about what you want to do.
@@aminsedighfar thx
@@Mojit00 no problem, happy to help 🙂
@@aminsedighfar i want to send a telegram notification from my pico as my pico doesn't have wifi im using esp 8266 01 module as a wifi to send to my bot which i have created on telegram. Im having lots of issues with the module just wanna ask is it even possible?
@@aminsedighfarif you have flashed in the past the esp01 to use it with the arduino ide, i think you have to flash it to return the original firmware that uses the AT comands