another great, informative, and useful video.. thanks Andreas :) ...what about PSRAM pins..dont they use a few aswell?
@AndreasSpiess3 жыл бұрын
I never used WROVER modules. But now I checked: GPIO16 and 17 are connected to the PSRAM. So they are not useable (and also not available on the outside). Two pins less :-( I will update my Excel accordingly
@WacKEDmaN3 жыл бұрын
@@AndreasSpiess i have a few boards that use external psram..(eg esp32-cam)..and the pins are exposed as you can turn the PSRAM on and off
@michaelbishton94393 жыл бұрын
I really appreciate your effort to count down which pins can be used for what purpose. Then, near the end, you list the services that can use any pin. Watching this as a newbee, did i misunderstand something? Did you mean any of the actually usable ones or "any pin?"
@AndreasSpiess3 жыл бұрын
Of course only with restrictions, for example an input only pin cannot be used as an output.
@gusercarra2 жыл бұрын
@@AndreasSpiess Please, I can´t find the excel archive... I´m trying to use an ESP32S3WROOM1 in a nodemcu
@orparga1403 жыл бұрын
Maybe the most useful video about ESP-32. You have saved a lot of hours of our lives... 10 hours saved * 1500 vievers( at this moment) = 1'7 years of work
@orparga1403 жыл бұрын
5,13 years of work if we calculate 8hours/day
@AndreasSpiess3 жыл бұрын
In the end i expect manybe 50'000 viewers ;-)
@muflah3 жыл бұрын
I learned this the hard way. It took me about 2/3 days to test all of these and verify my findings with the datasheet and other sources.
@TD-er3 жыл бұрын
@@AndreasSpiess Yeah, but as the numbers increase, you may reach users that would never have thought of working with the ESP32 and now they will... So not sure if that still counts as "hours saved" :)
@ksenyxths2 жыл бұрын
@@AndreasSpiess 88,223 viewers. I'm a returning viewer, and watch all the video as I'm working on an ESP32 project and I didn't wrote down the pins at the first time. More time saved, as always, well done! :)
@Designments Жыл бұрын
Your channel is an absolute gem. No nonsense, concise, well researched videos are rare, and you consistently deliver. Thank you!
@AndreasSpiess Жыл бұрын
Glad you like my content!
@deivissergio23783 жыл бұрын
Very good, explanatory video of all I/O functions at once. Many people look for something like this. I own a Company in Germany, and we use the ESP32 in one of our products (IoT devices)... and we use the Internal Hall sensor, as a tricky "Factory Reset" feature. When we finish with all the tests, before send to a customer, we select a "special" condition in the device, and we left the device in such as a "Magnetic bed" for a while... and this performs the "Factory Reset"... so the device is tested and ready for shipment to the customer. (I think this Hall effect sensor, is not very important, but sometimes we can have a good idea to use it... 🤔)
@AndreasSpiess3 жыл бұрын
This is really a very good idea! I once used a reed switch with an ESP8266 for a similar purpose but forgot about it. Now I remembered.
@paulmooij3 жыл бұрын
A great idea can you share some info? also is ESP32 good for a b2c product?
@diydsolar3 жыл бұрын
Please share your experience, thabks.
@deivissergio23783 жыл бұрын
@@paulmooij Hi Paul, in my opinion, this microprocessor is a good solution, with a lot of functions... but it is necessary a lot of "checkings" "workarounds" etc.. if you are working with Arduino IDE for example... (using the tools from Espressif, is much better) Sometimes, without a reason, the processor stops, or perform self reset, etc... (of course it can be something also wrong in the code, or the libraries converted to Arduino IDE). Let's say that the predecessor (ESP8266), has better in performance and stability (and also longer in the market)... But I am happy with this new one... (I use Watchdogs to check if something goes wrong to bring the software again "on track"). Of course, we are still learning with this new processor, and I can recommend it... 👍 (in our company, we started with the ESP32 since 3 months, and already more than 50 devices installed... and no big issues up to now !!)
@JohnBaxendale3 жыл бұрын
Thank you, this is *so* useful! I was just about to pick up an old ESP32 project and start to work out which pins to use, this will save me lots of time :)
@AndreasSpiess3 жыл бұрын
Glad you like it!
@rklauco3 жыл бұрын
Cool project with touch pins? My daughter has a KiwiCo box with RGB led. It was possible to turn on or off the specific colors, so you could create few colors by combination. I sneaked in the ESP32 inside, used the "switches" (removed the contact between them) and modified them to 6 touch switches. By that she can set any color she'd like - the pairs of touch buttons act as color+ and color- for specific channels :) Works quite well :D She likes it a lot. Now she has a night light with variable color.
@AndreasSpiess3 жыл бұрын
I can imagine that a combination of colored LEDs an touch is nice for your daughter. And she can tell her friends that she has a cool father who can make such things.
@hoodafukisalice3 жыл бұрын
This is gold for developers using ESP32. Thank you for sharing the Excel sheet Andreas.
@AndreasSpiess3 жыл бұрын
Glad it was helpful!
@sharpbends3 жыл бұрын
I used touch pins connected to case screws as rudimentary input device for up down back enter commands etc on GPS alarm clock :-)
@AndreasSpiess3 жыл бұрын
Very good idea!. Hidden and no additional parts needed.
@keen24613 жыл бұрын
Andreas does everything I wish I had the time to do. I'm also an EE but don't have time to investigate and experiment as Andreas, so I live vicariously thru his videos.
@AndreasSpiess3 жыл бұрын
Maybe if you become as old as I am you will have time...
@kcmichaelm3 жыл бұрын
Excellent as always, thanks Andreas!
@AndreasSpiess3 жыл бұрын
Thank you!
@Thorathome3 жыл бұрын
This is incredibly helpful: identifying the ESP32 ‘safe’ pins, a little on interrupts, a bit on PWM, an intro to inline debugging. You make the ‘32 even mor fun and productive. Thank you GWTSA.
@AndreasSpiess3 жыл бұрын
GWTSA?
@Thorathome3 жыл бұрын
@@AndreasSpiess YOU! Guy With The Swiss Accent! (I've lived and worked all over the world, have been the Big American for ages, am Stateside now.) I value your work, am more of a software guy, have programmed computers since high school, still noodle in Arduino with ESP applications, sensors and controls. Thanks again.
@academicpachyderm51553 жыл бұрын
Holy cow. Thank you so much! I almost ordered my own esp32 breakout boards yesterday, but after watching this I'm definitely adding some asterisks to my silkscreen pin numbers. I'm also trying to start experimenting with the esp32-s2, so I'll be on the lookout for "gotchas" there, too.
@AndreasSpiess3 жыл бұрын
The S2 is too new for me...
@EmmanuelLieurain3 жыл бұрын
A very useful wrap-up, thanks
@AndreasSpiess3 жыл бұрын
You are welcome!
@SivanagaT-j5n Жыл бұрын
Great video, I was banging my head trying to figure out which pins to use because Im new whole arduino/ electronics, this video clarified lot of confusion with this board.
@AndreasSpiess Жыл бұрын
Glad the video was useful!
@marinehm3 жыл бұрын
I ran into these problems with my Wemos ESP8266. This is great information!! Still plenty of available of pins. Now we can use them smartly. Thanks for breaking them down to usable pins.
@AndreasSpiess3 жыл бұрын
Glad it helps!
@DemokratieErwacht Жыл бұрын
Ich habe mir das Excel runtergeladen und mit deinen Kommentaren aus dem Video versehen! Danke! Das hat mir echt Arbeit gespart als ESP32-Neuling.
@AndreasSpiess Жыл бұрын
Gern geschehen. Das war die Idee ;-)
@robertobrenes52833 жыл бұрын
Tomorrow I planned to mill a PCB for a esp32 project, this video came just in time for me to check if I didn't mess things up! Thank you! Your channel is awesome :)
@AndreasSpiess3 жыл бұрын
Very good! As said: It might save you some time to redu things...
@robertobrenes52833 жыл бұрын
@@AndreasSpiess RTFD has always been my motto as an electronics student so i love that you always do that!! cheers from Costa Rica!
@tlangdon12 Жыл бұрын
It's definitely worth reviewing any design you are working to see if you have any 'input only' pins that could use pins 34 or 35. I was struggling to find enough GPIO pins for my project; I needed 12 pins, but trying to using your 12 priority pins made the routing very difficult, so I reviewed my design and found two pins that were being used for input only, so I could consider using pin 34 or 35 for them. This made the routing much easier. Thanks for your hard work to document the real situation with the ESP32 chips.
@AndreasSpiess Жыл бұрын
Just in our last project we forgot that pin34 is input only...
@mcneill642 жыл бұрын
Thank you. A bit to digest but powerful to know that 40 != 40. Saved to my list.
@AndreasSpiess2 жыл бұрын
Glad it was helpful!
@professorholden31043 жыл бұрын
Excellent! I am moving my mechatronics class from esp8266 to esp32 next semester, it will also be online for pandemic reasons, so this is a great resource. Thanks!
@AndreasSpiess3 жыл бұрын
You are welcome! Good luck with your lectures
@paulvint3 жыл бұрын
This is great - good video, and more importantly, thanks for sharing the spreadsheet. I've been meaning to export that from the datasheet for ages, and it's a great help!
@AndreasSpiess3 жыл бұрын
Glad it was helpful!
@AragonDubs3 жыл бұрын
Since I discovered your channel, I am more of a maker than ever, you make it very simple, I love it, and the translations help a lot for a spanish like me. Many thanks Andreas!
@AndreasSpiess3 жыл бұрын
Thank you. Yes, I think, Luciana, the translator does a great job!
@U8uxa8SP3 жыл бұрын
I've been watching a lot of your videos today. Thanks for all your great information and thanks for all your production time.
@AndreasSpiess3 жыл бұрын
Glad you like them!
@pd85593 жыл бұрын
My friend with the Swiss accent another nice video. Capacitive switches (touch) are more flexible for our friends in the manufacturing space, think new appliances, than to makers although makers can make use of them too. There are pros and cons to older mechanical switches and the more recent capacitive switches but there is no holy grail or perfect choice. Capacitive switches can be made in a numerous variety of shapes as needed for a particular application and leads to less items needed on the manufacturing BOM but on the cons your need for minimum current to drive them to he back a sense of state change is higher than old mechanical switches as they need to sense a voltage / capacitive drop across the switch surface which means mechanical switch is better if that is your primary design driver is being able to run the switches on lowest possible currents through the switch to sense a state change. Capacitive cons is you have to deal with handing more false positive scenarios than mechanical switches where you simply wait for a signal to come through and just handle debounces. If operating in a wet environment the capacitive switch might be better if your mechanical switch would take permanent damage if the switch got wet as the capacitive switch is more resistant to permanent damage from being wet. Each has plus and minus so our job is to juggle and choose for a specific application but it is nice to know if we need it that it already comes inside the box of tools ESP32 gives us.
@AndreasSpiess3 жыл бұрын
I agree, capacitive touch buttons are very flexible for many use cases.
@chronobot2001 Жыл бұрын
Thanks for this. I think you may have saved me from infinite future frustration.
@AndreasSpiess Жыл бұрын
So I am glad :-)
@fenixjose173 жыл бұрын
Dear Andreas, you are an excellent teacher. Thank you.
@AndreasSpiess3 жыл бұрын
Glad you think so!
@G6EJD3 жыл бұрын
Also you can’t use GPIO-12 if an external pull-up is connected to it, say for a sensor, as it prevents the ESP32 from booting and causes a flash error.
@AndreasSpiess3 жыл бұрын
You are right! I already corrected the spreadsheet. You have an excellent channel, BTW. I am a longtime subscriber.
@aviatorbja3 жыл бұрын
The two best esp microcontroller resources on the planet right here!
@matthiasthiele3 жыл бұрын
"and after hours, you think, you are stupid" - been there, suffered too. Great video, thank you very much. I did use a touch port for an alarm clock without any visible buttons. Just touch the clock on the top to switch off the alarm. The user interface for setting the alarm time is via a web page on the smartphone.
@AndreasSpiess3 жыл бұрын
Nice idea! Thank you.
@krukhlis3 жыл бұрын
You are extremely patient man! ;) But yes, this is golden gem, a treasure that every ESP32 developer needs. Thank you for this great work!
@AndreasSpiess3 жыл бұрын
You are welcome!
@JulianGrammer3 жыл бұрын
Yet another highly informative video. Thank you. I couldn't stop laughing at so few pins available for general programming when comparing with your video #159 at 1:40. Amazing what one can learn in three years.
@AndreasSpiess3 жыл бұрын
Not general purpose does not mean not useable. It just means: Pay attention!
@jwracingteam2 жыл бұрын
Andreas is a great mentor :)
@AndreasSpiess2 жыл бұрын
Thank you!
@Kalandro993 жыл бұрын
I'm working on a project with 15 digital Inputs, 3 digital outputs and 1 PWM output. It's a nightmare to find reliable sources on that topic! Thank you very much Andreas! I really appreciate your research!
@AndreasSpiess3 жыл бұрын
A lot of pins! I hope you have enough on the ESP32...
@foxtrotbravo17442 жыл бұрын
I found the spreadsheet useful, thanks. Frank
@AndreasSpiess2 жыл бұрын
Glad it was helpful!
@frollard3 жыл бұрын
Amazingly useful! I recently started porting an old project over to ESP32, and was pulling my hair out constantly having tried to just use a pinout map showing which pin went where - there was no mention of any traps or gotchas. The code wouldn't boot and I spent hours thinking my code wasn't compatible with an arduino compatible board. Truly frustrating. This is gonna save me so much time!
@AndreasSpiess3 жыл бұрын
You are probably not the first and lot the last loosing lots of time with this. Thanks for your feedback!
@charlesmagill49325 ай бұрын
"after hours, you think you are stupid" that's me. Thank you for this video. I was about to throw out my esp-32 and go back to AVR.
@AndreasSpiess5 ай бұрын
That would have been a big mistake 😉
@lukeszy2873 жыл бұрын
Really good video ! Was great timing as I spent ages yesterday trying to workout why serial1 was crashing the esp32. Thanks again
@AndreasSpiess3 жыл бұрын
You are welcome! You are probably not the only ;-)
@TobiasStanzel3 жыл бұрын
Hi Andreas, I am not sure if it ws in this video or another one where you mentioned that you are still on the search for a real world use case for the Touch pins of the esp32. If you are interested, I created a smart control for my home assistant environment based on a esp32 leveraging the touch pins, took me a while to get them really working but quite happy with the end result and would be happy to share. I used some paper fastens / split pins as buttons (Büroklammer for us german speaking guys) works quite well, only recommend to use a metall chassis that is grounded ;)
@AndreasSpiess3 жыл бұрын
Thank you for sharing your project! It looks like something useful and obviously it works.
@marcdraco21893 жыл бұрын
That's an amazing amount of information Andreas - must have taken you hours to compile this Thank you so much. I'm glad you questioned the hall sensor. I was similarly baffled about that because the sensitivity is so poor. It looks like the sensor needs an amplifier that's not fitted (unless it's wired internally somewhere that the manufacturer hasn't told us about). All that said, I'm still working on an Uno, learning to squeeze every last drop of performance out of an 8-bit machine
@AndreasSpiess3 жыл бұрын
I love the ESP chips because most of my projects use Wi-Fi. For other projects I usually use other boards (currently a Morse keyer with an Arduino Nano)
@marcdraco21893 жыл бұрын
@@AndreasSpiess Yeah, I really need to finish off my current project and learn more about IOT - ironically, the current thermohygrometer could benefit from remote stations too. Still finish one thing before I start another or you know how that ends...
@wilfredosandovaldelgado36903 жыл бұрын
I have use GPIO 0 and there is no problem, thanks for the secrets.
@AndreasSpiess3 жыл бұрын
If it stays high during boot there is no problem...
@wilfredosandovaldelgado36903 жыл бұрын
@@AndreasSpiess sorry Andreas, maybe I was not rigth, I wanted yo say, that in My proyect, I am ussing the GPIO 0 to activate a triac whit a low signal and there is no problem. Till the moment, by the way thanks for the tutorial with structs for RTOS programing, I have to say, that Open My mind to do some more elegant, I'm not programer, just a dreamer. Don't speak English, but try to, jejej. I'm from Colombia and thanks to You and others i'm breaking the wall of knowledge, thank you for so much.
@liama238 ай бұрын
Thank you! You saved me a lot of stressfull time.
@AndreasSpiess8 ай бұрын
Glad I could help!
@alanesq13 жыл бұрын
May be worth doing a similar video regarding pin usage on the ESP32Cam module? I have found that if using the sd card it is a real pain as it takes control of the onboard flash as a data pin (flashing it when accessing the sd card) and leaves no free gpio pins but it turns out you can use "1 bit mode" for sd card access which only uses 1 of the 4 data pins and so whilst access is slower it means you can still use the onboard flash and pins 12 and 13 are then free for gpio use. Note: to enable 1 bit mode use the command "SD_MMC.begin("/sdcard", true)". Note: you may need to re-assign the io pins as input or output that you wish to use after the sd-card is initialised as it can re-assign them.
@AndreasSpiess3 жыл бұрын
You should see the SD card pins in the Excel. I never used SD cards with the ESP32
@rudolfhaller72243 жыл бұрын
andreas wears a "Zimmermanns-Hut" , which is an very important skill to finish a house as a carpenter. but he deserves a "Krone" , because he is the king of ESP-kingdom, and should wear a crown. gruss aus östereich rudi
@AndreasSpiess3 жыл бұрын
Thank you very much! (My father was a carpenter)
@rudolfhaller72243 жыл бұрын
@@AndreasSpiess at video 4:40 you mention I2C but showing I2S can we soon expect an I2S lesson with MX98357 esp32_audio ? danke rudi
@rigfix3 жыл бұрын
Thanks Andreas ! Another excellent video. The timing could not be better, I needed to disable the startup log on a project here :)
@AndreasSpiess3 жыл бұрын
You are the first I hear that he needs it :-)
@luisgarrido21663 жыл бұрын
I'm glad to have found tour channel! Thank you very much for being such a special guide in this matter.
@AndreasSpiess3 жыл бұрын
Welcome aboard the channel!
@nikanetique3 жыл бұрын
I discovered many unknown things about ESP32. thank you for convenient table! 👍
@AndreasSpiess3 жыл бұрын
Great to hear!
@progmatica16082 жыл бұрын
Great channel! Thanks for sharing knowledge!
@AndreasSpiess2 жыл бұрын
You are welcome!
@rodstartube3 жыл бұрын
As always very usefull. I will print a T-shirt with that excel file so i have it handy.
@AndreasSpiess3 жыл бұрын
:-))
@randomname38943 жыл бұрын
37 and 38 are Input pins, but not broken out on the shielded modules. On the TTGO Display for example, they are useable like the other Input pins.
@AndreasSpiess3 жыл бұрын
You are right. The WROOM module has no such GPIO pins. Only if you use the chip itself you can use these pins.
@guidobonelli33942 жыл бұрын
this is really great. Nice work!
@AndreasSpiess2 жыл бұрын
Glad you think so!
@crckdns3 жыл бұрын
Eine sehr schöne Übersicht und Erklärung! Und danke für die Excel Datei, die ist sehr nützlich.
@AndreasSpiess3 жыл бұрын
Bitte, gern geschehen. Teilen im digitalen Zeitalter kostet ja nichts mehr...
@lemd493 жыл бұрын
Many thanks Andreas, you are saving us a mountain of troubleshooting hours with this guide!
@AndreasSpiess3 жыл бұрын
Glad to help!
@rsabear13 жыл бұрын
I love ESP32 projects. In the last couple of days, I am measuring currents and voltages for solar calculations( I have reviewed your previous videos). I am looking to buy a PC based USB type Volt/Amp meter which will allow me to measure multiple voltages (3.3V and 5V) and currents (0-500mA), say 5 each, log the results at time intervals for later data analysis, please keep in mind when you scout the online electronics markets. Keep up the great work - this must be one of the best resources on the internet, students studying electronic engineering now don't know how lucky they are.
@AndreasSpiess3 жыл бұрын
Good luck with your projects! And have an eye on ground when you measure voltage and current!
@KSITREVS3 жыл бұрын
I just designed a pcb with the ESP32 chip, sadly i didn't watch it in time as i have a ADC input on GPIO2. I guess the only problem is programming the chip.... Thank you, I too found that some pins were acting up and didn't have the courage to read the datasheet, i just changed pins!
@AndreasSpiess3 жыл бұрын
I am glad you have the information to check your design before ordering it...
@bluegizmo19833 жыл бұрын
Great video! I was just working on a project the other day that used a buzzer and it wasn't working properly, and I just went back to the sketch and looked. Sure enough, I had set my buzzer output to pin 39! 🤦♂️ Lol
@AndreasSpiess3 жыл бұрын
S*t happens ;-)
@mr.0x3732 жыл бұрын
such good video and a good explanation!! Thanks for saving my time!!
@AndreasSpiess2 жыл бұрын
You are welcome!
@pavlusa2 жыл бұрын
Super information , thank you , very informative 👍
@AndreasSpiess2 жыл бұрын
Glad it was helpful!
@NemonicanatLarge3 жыл бұрын
I've been working on a temperature / humidity sensor HD22 (I know I missed the designation but I'm sure you understand what I mean) and I use pin 32 as my input pin and I am glad to see its OK for this use. Thanks for the info.
@AndreasSpiess3 жыл бұрын
Glad it works!
@vincentstragier66283 жыл бұрын
4:41 the I²S is framed instead of the I²C.
@AndreasSpiess3 жыл бұрын
You are right. Thank you.
@uajoku3 жыл бұрын
Excellent!!! Thank you Sir.
@AndreasSpiess3 жыл бұрын
You are welcome!
@MrBobman493 жыл бұрын
I know MTDI or GPIO12 isn't in your Priority List, but this pin can be a real "GOTCHA". I was using this with an Optocoupler and a 10K pullup resistor and thought I had "Bricked" the Dev Board. Upon further examination, if you tie a pullup to GPIO12 during boot, it tells the CPU to run at 1.8V which doesn't let it talk to the Onboard Flash running at 3.3V. Now, with any design I stay off the Strapping Pins!
@AndreasSpiess3 жыл бұрын
You are right. Now I included it in the Excel sheet.
@batica813 жыл бұрын
Thank you very much for this useful video! I tried porting a project (morserino 32) to a different version of esp32 board and it was very tedious (and unsuccessful) because of all the pin differences. It also uses those capacitive touch pins which adds to complexity. Maybe I will try again now :)
@AndreasSpiess3 жыл бұрын
Interesting project. Maybe I will also build one.. Currently I build an K3NG Arduino CW Keyer because my IC-7300 only supports Iambic Mode B and I am used to mode A :-(
@asiw3 жыл бұрын
So incredibly useful.
@AndreasSpiess3 жыл бұрын
Glad you think so!
@stephang56713 жыл бұрын
Hi Andreas VERY useful again, thank you. I'd appreciated also a final 'prio 1 list' or if you marked them in the xls.
@AndreasSpiess3 жыл бұрын
They are marked, I think (named true GPIO)
@rklauco3 жыл бұрын
The part about GPIO0 and 2 is something I needed 3 months ago when I was doing my LCD clock project :( Thanks - better late than never :)
@AndreasSpiess3 жыл бұрын
Maybe you need other tricks later on. I use this excel quite a lot.
@MrKoval-nm9ky3 жыл бұрын
very good video, thank you. This week, I spent around 3 days thinking why my RTC GPIO pins were not working, and actually the GPIO 39 is Input only (of course I found it on datasheet), as you said... But I thought I was doing something wrong with ULP instructions...
@AndreasSpiess3 жыл бұрын
You are not alone. This is the reason for the spreadsheet and the video...
@YoutubeBorkedMyOldHandle_why3 жыл бұрын
Good call with your comment about the built in Hall sensor. This was my very first thought when I first read the specs. Hall sensors are very useful, and incredibly cheap, but will necessarily be located far away, since you wouldn't want to have strong magnetic pulses close to your uController. There are different types of sensors as well. So ... why build one in?
@AndreasSpiess3 жыл бұрын
So we agree. One viewer used the sensor to trigger a test modus at the end of manufacturing. I found this a good idea.
@prvashisht2 жыл бұрын
Thank you so much! I spent a day trying to figure out why my code wasn't working, turns out I was using the wrong GPIO pins!
@AndreasSpiess2 жыл бұрын
That happened to me, too. This is the reason for this sheet ;-)
@solidfuel0 Жыл бұрын
We want the same for esp32 S3
@antoniofiolbonnin3 жыл бұрын
Some pins are pulled up or down by default at boot time. Typically not an issue if you use those for inputs, but if you use them as output you may get glitches during boot time. Messy. I can't remember if these were part of your preferred list of 12 pins or not, as my project actually needed a lot of pins (8 PWM outputs, 8 on-off plain outputs, 2 I2C buses, 1 ADC, and I'm sure I'm even forgetting some).
@AndreasSpiess3 жыл бұрын
I never looked into that matter. Maybe somebody adds the information to the Excel.
@Vigyanabikshu3 жыл бұрын
Very useful. Can you please publish the same for the new ESP32 S2
@AndreasSpiess3 жыл бұрын
Do you already use it?
@Vigyanabikshu3 жыл бұрын
@@AndreasSpiess I am currently working on esp32 S2
@browaruspierogus21823 жыл бұрын
ESP sdk will tell you recommended pins for needed peripherals.With examples
@krukhlis3 жыл бұрын
The quality of ESP SDK is below grade. This is the last thing I will trust. Even Devil deserves more trust than ESP SDK.
@AndreasSpiess3 жыл бұрын
I never used the SDK. Thanks for the tip!
@HVICTORI13 жыл бұрын
Thankyou Mr. Andreas. Can you help us with something like "#3XX How to use an SFP interface with ESP32 o STM32" or something else.
@AndreasSpiess3 жыл бұрын
I do not know anything about SFP. But I found this: www.reddit.com/r/esp32/comments/hdxugi/esp32_sfp/
@TheDiverJim3 жыл бұрын
Thank you for a great video! Saving this to a playlist
@AndreasSpiess3 жыл бұрын
Glad it was helpful!
@TheDiverJim3 жыл бұрын
@@AndreasSpiess sir, your videos on the whole are absolutely fantastic. I’ve just started using the ESP, I would be struggling far more without you.
@bartdemeulmeester46623 жыл бұрын
Thanks, this will be a great reference video!
@AndreasSpiess3 жыл бұрын
Glad it was helpful!
@mattantonelli4273 Жыл бұрын
just generous great research
@AndreasSpiess Жыл бұрын
:-)
@rodmcmahon48293 жыл бұрын
IO14 This IO goes to about 2.4V when you are in download bot mode. I use this on my naked designs to easily show that I am in download mode by putting an LED on it, dims when in download state
@AndreasSpiess3 жыл бұрын
Cool. Thanks!
@Chaser1853 жыл бұрын
Excellent video.
@AndreasSpiess3 жыл бұрын
Glad you liked it!
@Cdswjp Жыл бұрын
You’re awesome my friend
@Cdswjp Жыл бұрын
And appreciated
@AndreasSpiess Жыл бұрын
Thank you!
@slacky003 жыл бұрын
Can you make one for the old Esp8266 too?
@TD-er3 жыл бұрын
The ESP8266 is well described in a number of blog posts. See the links mentioned here: espeasy.readthedocs.io/en/latest/Reference/GPIO.html#best-pins-to-use-on-esp8266 What makes it even harder on the ESP8266 is that some pins also toggle at boot, which makes them unusable for switching things (e.g. a relais) unless you add some filter over them to filter out the very short pulses.
@Rob_III3 жыл бұрын
@@TD-er Thanks for the link! Though a video by Andreas on the topic would be appreciated anyway!
@nf80022 жыл бұрын
Thanks so much for this info please can you tell us which pins are good to use them when using can bus protocol thanks in avance
Can't resist, finally found the question the guy with Swiz accent doesn't have answer to.....hint: @1:44 thanks for the great content again Andreas,
@AndreasSpiess3 жыл бұрын
:-)
@sunshinelabz3 жыл бұрын
Very useful video... Looking forward for more cool tech videos
@AndreasSpiess3 жыл бұрын
Should come. It is what I can ;-)
@awebuser5914Ай бұрын
Some of the ADC channels are marked as "red" in the spreadsheet, but there's no explanation. Also, it might be better to graduate the colours from red to orange to yellow for pins that are usable, but with minor caveats.
@AndreasSpiessАй бұрын
The red ADCs are not available when you use WiFi
@deankq4adj1253 жыл бұрын
Excellent information, thanks for sharing!
@AndreasSpiess3 жыл бұрын
Glad it was helpful!
@JohnSmith-dh3kx2 жыл бұрын
My pico kit board does have pins 37 and 38.
@AndreasSpiess2 жыл бұрын
Maybe this is why it is called "pico" ?
@peter.stimpel3 жыл бұрын
when I purchased my very first esp32, I was quite in Arduino nano before. The first steps with esp32 were so confusing. Often you stick with an idea, but cannot get it work because of a secondary use of the selected pin. I wish I had such an excel at that time...instead I have a few more gray hair from it. For inputs, I started using I2C connected expanders. Many pins, and no hassle with double function ...
@AndreasSpiess3 жыл бұрын
If you stick to the „save“ pins it should work. I never needed port extenders as far because I always had enough pins. But you never know...
@thomasrounds32473 жыл бұрын
Great information, Thank you. Concerning the touch pins, I recently was interested in using the ESP32 to measure capacitance of an external circuit for low cost liquid level sensing. We only need a single sensor pin but which one to use? So, I checked out the pins that are available using an Adafruit ESP32 Huzzah32 module; I checked with both the Feather and the simpler Breakout modules and these gave similar results. The test showed that the resting count value is different on the different pins. This may indicate different parasitic capacitances due to module routing and also leakage currents due to different pin functions. Without any added capacitance count values ranged from about 125 (Touch T6 and T7) to as low as 77 (Touch T8 and T9). Using a number of fixed 10pF capacitors I was able to show a logarithmic relationship of count to capacitance. That is, Capacitance plotted on a logarithmic scale versus count on linear scale is nearly a straight line. This makes some sense since the method is based on capacitor charge/discharge cycles and therefore based on the time-constants of such a circuit. Capacitance in the range of up to about 100pF is possible. I'm sure this is not precise capacitance for general use but it may be useful in an application such as liquid level sensing as we are investigating. Of course there are better choices for more accurate capacitance sensing but for low cost and ease of use, combined with Bluetooth, this seems like a good solution.
@AndreasSpiess3 жыл бұрын
Good work. My question is more: What would be a cool application of your findings?
@thomasrounds32473 жыл бұрын
@@AndreasSpiess Application might be to sense presence of water in a container or a pipe instead of air. It could possibly be used for crude level sensing of water in a tank. I did see some hacks using the ESP32 to sense water level using resistance but that is dependent on conductivity of water, which varies, and can corrode. Capacitance sensing depends on dielectric constant of water which should be more stable and does not require direct contact.
@derisis133 жыл бұрын
What about I2S? I know that in the STM32F405 it can be mapped to pins where SPI can be mapped, but what about the ESP32? It is a really handy high-speed shift register and by the way a common audio protocol...
@AndreasSpiess3 жыл бұрын
I never used I2S, so I do not know.
@boieperez376810 ай бұрын
what a great video thanks for sharing
@AndreasSpiess10 ай бұрын
You are welcome!
@eransimoni22492 жыл бұрын
Hi Andreas, thanks a lot for your great video, I learned a lot from you - do you have a tutorial how to make LittelFS run on ESP32 step by step (not ESP8266) from PlatformIO, I don't see any video for it on the network
@AndreasSpiess2 жыл бұрын
No, I never did a video on LittleFS
@purplespower97302 жыл бұрын
Oops! I tried to use gpio34 pin on my Lora esp32 board. did i mess up?
@AndreasSpiess2 жыл бұрын
You decide with the info in the video
@TestTest-si3eq3 жыл бұрын
the 8 hidden GPIO pins exist on ESP32 chip, but there pyhsical pad do not link out to the real world. I find the usefull to use for patching internal links between builtin perpherials. There are also spare links in GPIO matrix that are not connected to any builtin perpherial, these can also be used to patch and link. ie. signal228_out, Note that inturrupts on GPIO is slowed because they share same inturrput, if you use a dedicated inturrupt, say MCPWM Sync input your find they are very fast response, nSes, caused me issues because they respond to rapidly as GPIO inputs have no hystrises on them so trigger many times on reasonable fast input pulse from a transitor, similar with ADC is noisy but that because its fast, just have to oversample and average to get steady readings, aka not linear though, i use 3 resistors and capactor for ADC inputs, the extra resistor going to 3v3 to give a plus offset(0.3V so in linear area) so ADC can read small DC signals. I find the ESP32 is like a patchable PCB. Also not onboad Flash is not reliable for saving constantly settings, use external EEPROM or Flash, I had many ESP32 corrupt boot memory if there is a power fluxation, have to reload progam to flash to restore bricked device ;) Thanks for videos, hope that helps.
@AndreasSpiess3 жыл бұрын
Thank you for your additions. So far I was lucky with my flash. Maybe because I do not power-cycle my ESPs too often...
@RandomPerson494-12c3 жыл бұрын
Does Bluetooth/BLE occupy any pins like in case of Wi-Fi ?
@AndreasSpiess3 жыл бұрын
Wi-Fi and BLE use the same radio.
@RWB1233 жыл бұрын
Excellent video 📹
@AndreasSpiess3 жыл бұрын
Thank you!
@mvadu3 жыл бұрын
I have had hours struggling with trying to use gpio12 (on a Doit board they are next to power). Gpio12 needs to be held low during boot. With external pull up for i2c esp doesn't boot anymore. Specifically gpio12 controls the internal regulator voltage for spi flash chip. Wroom uses a 3.3v flash, and holding gpio12 high during boot sets the voltage to 1.8v. Thus flas won't work.
@AndreasSpiess3 жыл бұрын
You are right. Thank you. I updated the Excel accordingly!
@jackansi3 жыл бұрын
Thank you!
@AndreasSpiess3 жыл бұрын
You're welcome!
@ndgoh673 жыл бұрын
Thank you... Thank you for the excel sheet...
@AndreasSpiess3 жыл бұрын
You are welcome
@bradstewart20242 жыл бұрын
I think most of the pins are available as GPIO's with the new ESP32-S3. And more are available.
@AndreasSpiess2 жыл бұрын
Maybe we will need a similar chart for the S3 (and other newer ESP chips)
@bradstewart20242 жыл бұрын
@@AndreasSpiess Yes, may be a good idea. It seems to be more of a standard. All GPIOs are input and output. And there are more pins ("we want more").
@muflah3 жыл бұрын
About the touch pins, they're most certainly not worth trying in a commercial project. The sensitivity is low (try putting the conductor just behind a 4mm acrylic sheet) and there is a lot of noise.
@AndreasSpiess3 жыл бұрын
Thank you for sharing your experience!
@bluegizmo19833 жыл бұрын
What ESP32 board is that in the top left corner at 0:14? It's tiny with two rows of pins on each side of the ESP32 chip. It looks almost like a the ESP32 variants of the Wemos D1 Mini, but slightly smaller.