Raspberry Pi Pico: WiFi part 2, Deep Sleep!

  Переглядів 15,097

Tinker Tech Trove

Tinker Tech Trove

3 роки тому

We continue our experiments WiFi enabling the Raspberry Pi Pico by developing out our software into something much useful and enabling deep sleep mode on the ESP01 to save loads of power. Source code available on my github page at github.com/tinkertechtrove/pi...
Part One • Raspberry Pi Pico gets...

КОМЕНТАРІ: 43
@gorannikolic5004
@gorannikolic5004 3 роки тому
Thank you very much. Without you I would be absolutely lost
@paulgeare6035
@paulgeare6035 3 роки тому
Well done Tim. Another stunningly helpful video (with high production value),
@KyleMerl
@KyleMerl 3 роки тому
I'm so glad I found your channel. I'm trying to figure out how to send the temperature from the Pico as a post request to an API endpoint to record it into a database. This video got me a couple of steps closer to that. Thanks!
@tinkertechtrove2910
@tinkertechtrove2910 3 роки тому
You're welcome, and good luck
@redxtreme2598
@redxtreme2598 2 роки тому
Wow you make this look so easy. Thank you
@aswinvt
@aswinvt 3 роки тому
Hello Tim, Great video! Now I'm you 645th subscriber 😝, hope to see these kind of great content from you!
@cuttawayproductions3438
@cuttawayproductions3438 3 роки тому
Another great video. Thank you!!
@DownunderGraham
@DownunderGraham 2 роки тому
Thanks for the video. It was both interesting and useful. I am fine on the software side, but still learning about the hardware. I’m figuring out how to build an automatic door for my chicken shed. I also have a ventilation window that I want to control based on the temperature inside the roosting area. I looked at the Arduino options, but I have a fondness for the Pi family so I thought I’d try the Pi Pico. Not only do I want to control the motors but I’d also like to send status updates via wifi on events. As I need both a motor controller and a wifi capability, I’ve been trying to figure out how to wire up both. So far I think I’m going to need 2 motor controls, 4 inputs for micro switches (2 limit switches per motor), the wifi integration and some sort of temperature sensor integration and a photo sensor input (to open the door in the morning and close in the evening). The whole lot will be powered off a 12v battery and a solar panel. I have a charge controller to manage the panel, battery and load, so I now just have to build up the electronics (load) to do the work.
@Mr.Leeroy
@Mr.Leeroy 3 роки тому
Neat. if that Serial code had CRC checks, it would have been beyond awesome.
@jamesharris6062
@jamesharris6062 3 роки тому
Hi nice video . Leds with mosfit Would put down what you used with your mosfit faret 100 ? And wire diagram as would like make my own Leds stripe work
@chullenmn
@chullenmn 2 роки тому
Very good info. I would like to see how can the PICO push DHT22 data to MYSQL via the ESP01 for a weather station. I am just a hobbyist and I am new to Python and with little knowledge on Arduino IDE. I don't know how to coding in python. It would be great if you could do a video on that. Thanks.
@LorenzoClemente
@LorenzoClemente 2 роки тому
it's nice to see all of this running together, however it is not clear whether it is worth to split the logic of the program between the Pico and the ESP8266, while one could just use AT commands to operate the ESP8266 with its default firmware
@daviddoidge1252
@daviddoidge1252 3 роки тому
I also have "old ESP01" needed to fit 1K resistors between VCC / CH_PD and RST as you suggested......But I also had to change "Builtin Led" in the sketch tools menu from "2" to "1"
@tinkertechtrove2910
@tinkertechtrove2910 3 роки тому
Thanks for the extra info David, much appreciated. I will update the code on GHE with a comment to help others trying this 👍
@preraktimbadiya
@preraktimbadiya 2 роки тому
Hey Tim, why not a video on sending strings from a mobile phone to the Pico via the ESP-01? Am a beginner, so, I um... need help on that.
@zyghom
@zyghom 2 роки тому
man, that is what I was looking for - so if I get it correctly (for my project): 1- build some sensors around Pico (i.e. outdoor temp/hum/press/light sensors) 2- connect it to ESP and put together 3- give them LiPo battery - all will be powered from this battery and left somewhere outside (maybe with some solar charging if needed or not) 4- Pico will collect data from sensors and i.e. every minute will send via ESP to the gathering data server (i.e. Raspberry Pi4 or so at home or even somewhere in the cloud) - then again ESP sleeps, Pico collects further 5- after a minute it all repeats Considering Pico + sensors don't eat too much of power (that is another question to be checked: how much of power Pico with sensors will need) and ESP is only awake for the time of transmission, the entire project should be low power remote sensor. Am I getting this idea right? Thx for video and explanation
@tinkertechtrove2910
@tinkertechtrove2910 2 роки тому
Yes that would be a good application for this setup 👍
@hamzadlm6625
@hamzadlm6625 Рік тому
@@tinkertechtrove2910 Hello, am creating the same project our friend is talking about, but when I tried DHT11 with ESP01S, I got an InvalidPulseCount on the DHT (82 instead of 84 pulse), I do not get this error if I run DHT alone. Do you have any insight on this behavior please ?
@eezees9306
@eezees9306 2 роки тому
When I tried to verify the code for the ESP-01 I got an error: for line 45, "if (http.begin(url)) { // HTTP" when I replaced the line with: "if (http.begin(client, url)) { // HTTP" it worked.
@anDromedaIOT
@anDromedaIOT 3 роки тому
Awesome again, http over wifi on a £1.50 board! I have a json rest server, (nodejs + express) . Whats the best way to read json from the ESP? Is there a packet length max? The response is from my GPS chip and not massive but a few hundred lines of json per read. I assume there is method can send headers and GET/POST the request. Will do this project next week in the bank holiday.
@tinkertechtrove2910
@tinkertechtrove2910 3 роки тому
Good luck with your project, I don't actually know the size limits as I'm only ever sending small messages. The responses are buffered on the ESP01 and Pico though, so at the very least memory limits will apply
@lenzkappovfood7001
@lenzkappovfood7001 3 роки тому
Hi Tim, Please can you advise what packages you installed to get the pi server working, i.e.to get import http.server and import socketserver working. Thanks LKF
@tinkertechtrove2910
@tinkertechtrove2910 3 роки тому
Nothing out of the usual, but make sure your running python 3 and not python 2 (python3 command).
@MicrobyteAlan
@MicrobyteAlan 2 роки тому
I’m getting caught up. 👋🏽
@burtonrodman
@burtonrodman 6 місяців тому
what am i missing?? the title says raspberry pi pico but he’s talking about ESP01
@daveflatters4981
@daveflatters4981 2 роки тому
How did you discover your ESP-01 was enhanced and not a regular ESP-01. I’ve noticed my “Regular ESP-01” shows a higher flash available.
@tinkertechtrove2910
@tinkertechtrove2910 2 роки тому
There are illustrations of the board physical differences online, though that's not completely reliable. Larger flash memory is normally a strong indicator that you have the newer version.
@daveflatters4981
@daveflatters4981 2 роки тому
Thanks for the quick reply. I also found an example sketch that checks the config and that said it was 1 Mb as well
@daviddoidge1252
@daviddoidge1252 3 роки тому
Hi, can you explain the "simple server" part and what you mean by "send a message" ? I get the "Ready" text and the "Send msg ...." text but then nothing ?
@tinkertechtrove2910
@tinkertechtrove2910 3 роки тому
The simple server is just a local web server running on the target host (IP sent from the Pico) You don't need it if you already have a http server you want to talk to, it was just for the demo.
@tinkertechtrove2910
@tinkertechtrove2910 3 роки тому
I may have deleted your message by mistake, sorry! Please repost and I'll try to answer
@daviddoidge1252
@daviddoidge1252 3 роки тому
@@tinkertechtrove2910 Hi, finally got it working.
@jamesshapter3157
@jamesshapter3157 2 роки тому
@@daviddoidge1252 Hi, David. What was the problem in the end? I am also getting stuck on "send msg ....".
@jamesshapter3157
@jamesshapter3157 2 роки тому
Never mind. Just didn't have my ssid/password setup properly!
@HersonBagay
@HersonBagay 3 роки тому
Is it truly a "Deep Sleep" mode if you are literally shutting down the core? My point is, if it takes a "Reset" to start it up again, then all the previous states were lost, and you have to go through initialization again.
@tinkertechtrove2910
@tinkertechtrove2910 3 роки тому
The core is not fully shutdown, you can check the reason for the reset using ESP.getResetReason() and adjust your startup logic if you want to do specific stuff when waking up. See the LowPowerDemo in ESP8266 SDK for many other examples of this. (I should say I have not tested this though)
@StefanoZamprogno
@StefanoZamprogno 3 роки тому
Now the question/problem is... how much consume the Pico in deep sleep ? :-)
@tinkertechtrove2910
@tinkertechtrove2910 3 роки тому
Maybe a topic for a future video :-) the data sheet has some interesting numbers.
Raspberry Pi Pico gets WiFi via an ESP01 and UART
21:20
Tinker Tech Trove
Переглядів 47 тис.
Building a Raspberry Pi Pico Powered ZX Spectrum | #PiPico #zxspectrum
12:43
Kitten has a slime in her diaper?! 🙀 #cat #kitten #cute
00:28
когда одна дома // EVA mash
00:51
EVA mash
Переглядів 5 млн
Raspberry Pi Pico: nRF24L01 over SPI
19:05
Tinker Tech Trove
Переглядів 27 тис.
Raspberry Pi Pico VGA video output using only resistors
11:10
Robin Grosset
Переглядів 88 тис.
Python vs C++ Speed Comparison
1:04
The Builder
Переглядів 1,7 млн
Best power saving mode - Much Deeper Deep Sleep ESP8266
10:30
DIY TECH BROS
Переглядів 94 тис.
Programming a Raspberry Pi Pico with C or C++
19:47
Gary Explains
Переглядів 102 тис.
Raspberry Pi Battery Power
20:34
ExplainingComputers
Переглядів 333 тис.
What is PIO | Programmable I/O on Raspberry Pi Pico
5:34
Raspberry Pi
Переглядів 75 тис.
''Бесплатные умные'' домофоны для глупых людей. За чей счет банкет?
12:48
Вадим Шегалов.Оккультные игры элиты
Переглядів 18 тис.
Broken Flex Repair #technology #mobilerepair
0:55
ideal institute aligarh
Переглядів 15 млн
МОЙ ПЕРВЫЙ ТЕЛЕФОН - Sony Erricson T280i
18:02
ЗЕ МАККЕРС
Переглядів 65 тис.