ESP32 Programming Tutorial for Custom Hardware (GPIO, Serial, SPI, WiFi) - Phil's Lab #91

  Рет қаралды 88,063

Phil’s Lab

Phil’s Lab

Күн бұрын

How to write firmware for custom ESP32-based hardware. Example features an ESP32-C3 MCU with QSPI flash memory, SPI inertial measurement unit (sensor), USB, LEDs, and PCB antenna (WiFi). PCBs by PCBWay www.pcbway.com
Board bring-up using the Arduino IDE for simplicity.
[SUPPORT]
Free trial of Altium Designer: www.altium.com/yt/philslab
PCBs manufactured and assembled by PCBWay: www.pcbway.com
Patreon: / phils94
Mixed-signal hardware design course: phils-lab-shop.fedevel.education
Advanced Hardware Design Course Survey
forms.gle/X4jwvtZeJ1jTXh7r9
[GIT]
github.com/pms67/ESP32-USB-Do...
[LINKS]
Instagram: / philslabyt
ESP32 Hardware Design Video: • ESP32 + PCB Antenna Ha...
Additional board manager URLS: arduino.esp8266.com/stable/pac...
[TIMESTAMPS]
00:00 Introduction
02:02 Altium Designer Free Trial
02:27 PCBWay
03:04 Hardware Overview
05:30 Arduino IDE Set-Up for ESP32
06:35 Board Set-Up
09:00 Flashing Firmware
10:27 LED GPIOs
12:57 USB Serial
14:02 SPI Sensor Interface, Basic Set-Up
18:34 SPI Protocol Basics, Read Register Implementation
24:50 SPI Test (Chip ID and Temperature Sensor)
28:06 WiFi Test (Basic Server to Toggle LED)
31:12 Outro

Пікірлер: 161
@nathanwiebe935
@nathanwiebe935 Жыл бұрын
Please do create a video showcasing your non-Arduino IDE/debugging workflow! Many (like me) who use IDEs and debuggers but are newer to ESP32 would be infinitely grateful, and many people who have only ever used Arduino will have their minds blown how quickly high quality code can be written and debugged so quickly with a proper debugger. Esspressif's own videos get outdated very quickly, and don't show a real walkthrough from start to finish, and it would be good to see a real developer demonstrate.
@PhilsLab
@PhilsLab Жыл бұрын
Thanks, Nathan! Definitely will make a video on that for ESP32. I have some already on STM32-based boards on the channel with a 'proper' IDE and debugger - using a debugger is infinitely helpful, as you say.
@markhaskins840
@markhaskins840 Жыл бұрын
@@PhilsLab I would be interested in this also, starting 2or 3 projects this year at work all fit the esp32 well I need to get familiar with vs code / idf also they are in stock so I can spec something that can be purchaed in quantites... always a bonus nowadays!
@RafaGmod
@RafaGmod Жыл бұрын
I agree with you! The most common platform is use PlatformIO on VScode. Nowadays, the arduino IDE > 2.x uses VScode instead of that old proprietary inteface! It got realy better, but plaftformIO on vscode can do more, lige debugging and OTA updates. yes! Is crazy that the ESP32 runs a little "RTOS alike" inside so it can use the Wifi modem of the main program to get ota updates. It's a little different than some microcontrollers that we code the entire program and also thats the cause for it to take so long to compile!
@jj74qformerlyjailbreak3
@jj74qformerlyjailbreak3 Жыл бұрын
I spent 2 hours trying to setup Expressifs IDE, IDF, and toolkit. That process made me fall in love with Arduino.
@bitbanggaming204
@bitbanggaming204 Жыл бұрын
I'd be interested. I use the esp idf a ton but it's nice to see someone else's workflow. I do not use platform io as I think it's better to understand esp32 without it.
@McReaL44
@McReaL44 Жыл бұрын
I am a last year mechanical engineering student. In our finishing project, we needed to design mechatronic part too. For that part, I have designed pcb just by watching your videos and with kicad. I have learned a lot of things from you. Thank you Phil!
@PhilsLab
@PhilsLab Жыл бұрын
Thanks, Cem - that's great, congrats on making the PCB as well! Good luck with your final project :)
@MikeHarris1984
@MikeHarris1984 11 ай бұрын
Your series is flat out amazing!!!! Thank you for this!!!! I couldn't find anything for the SOC ESP32. Only the prebuilt controller board and the solder that on. I wanted to step it up a notch and do my own and not a bunch of soldered PCBs on my own board. And going through tech design docs and all that from esspresif, I was 90% there and your series helped me get that final hump complete while teaching myself
@fredflickinger643
@fredflickinger643 Жыл бұрын
Thank you Phil for the this comprehensive series on the ESP32!
@PhilsLab
@PhilsLab Жыл бұрын
Thanks for watching, Fred!
@michalpesko5598
@michalpesko5598 6 ай бұрын
A video about ESP-IDF setup would actually be great!
@andrew48dhs
@andrew48dhs Жыл бұрын
Thank you, just thank you. This tutorial is a lifesaver for a project Im working on right now and many more projects in the future
@PhilsLab
@PhilsLab Жыл бұрын
Very glad to hear that, Andrew!
@andrewturnbull7690
@andrewturnbull7690 Жыл бұрын
Excellent video, right pace, very clear and concise, ideal for a rusty old retired engineer like me to think about dipping my toe into electronics once again.
@matteopoggiali6100
@matteopoggiali6100 Жыл бұрын
If you will make a comparison between espressif and Arduino IDE I think It would be very appreciated, one of most viewed about this topic for sure
@Stabby666
@Stabby666 Жыл бұрын
The Espressif IDE is not fun. It would probably take an entire video just for the installation process - along with debugging why it doesn't work the first 10 times you try installting it. 🤣 I have tried using it and returned to Arduino. I only use it now to test libs that I convert to use with Arduino.
@tarantula_live
@tarantula_live Жыл бұрын
@@Stabby666 Do you use with VS Code plugin? It makes it pretty simple and debugging works
@PhilsLab
@PhilsLab Жыл бұрын
Thanks, Matteo - will be making a video on that in the near future!
@zyghom
@zyghom Жыл бұрын
@@Stabby666 installation is not a big deal even if it takes you 5h as it is done only once the bigger issue is: something what you can do in 3 lines of code in Arduino framework, will require 25 lines of code in Espressif framework for every piece of code
@davidchamberlain1513
@davidchamberlain1513 Жыл бұрын
@@Stabby666 that must be why I can't seem to get the Espressif IDF and Visual Code working, I've only tried it 5 or 6 times...
@dyn01234567
@dyn01234567 Жыл бұрын
I would love to see you doing this with VSCode and ESP-IDF! I've tried editing other microcontroller code in VSCode before - it can be very challenging to setup, but if you can get it working, it is the most fluid development experience in my opinion. I'd also like to know what you think of PlatformIO plugin for VSCode.
@mathhack8647
@mathhack8647 5 ай бұрын
Really Amazing. this how any engineer should read Components References.
@Alberto0352
@Alberto0352 Жыл бұрын
Your videos are amazing I'm learning a lot from them, thank you for sharing this! The fact that you start from scratch is awesome, you explain everything in detail. You should make more series about designing esp32, stm32 and perhaps pic32 embedded hardware from scratch and how to program them with professional IDEs. Here are some ideas I'd be interest seeing in your videos: - designing full speed USB-C hardware - communication between multiple microcontrollers - interfacing an embedded system with a pc (maybe with a GUI) - some IoT application (WiFi and BLE) - talking more about FPGAs and how to program them.
@PhilsLab
@PhilsLab Жыл бұрын
Thank you very much, Alberto! Thanks also for the great video suggestions.
@pietrogagliano4484
@pietrogagliano4484 Жыл бұрын
Awesome content as always Phil!
@PhilsLab
@PhilsLab Жыл бұрын
Thanks, Pietro :)
@UmairAhmadh
@UmairAhmadh Жыл бұрын
Thank You! If you are doing something more on this, please consider writing firmware for a custom IC that has different clocks and signals to get the function working. For example, TLC5957 LED controller IC. That'll give a lot of knowledge on firmware.
@oreovios306
@oreovios306 Жыл бұрын
So thorough 👌🏾
@Jose13T
@Jose13T Жыл бұрын
Thanks for all the tutorials and tips on PCBs! I would like a video of programing the ESP32 with VSCode and if its possible some debug with breakpoints and seeig the variables in running time. Again thanks for your awesome content!
@sergeyp6941
@sergeyp6941 11 ай бұрын
Thank you! I would really like to see projects on Xilinx working with NAND, PCI and flow control
@pete3897
@pete3897 Жыл бұрын
World have been interesting to print the RSSI out and compare it to a standarised module in the same location on the same network (plus RSSI of both from the other end). I ponder the legal requirements one might have using a non pre-certified RF implementation in a commercial product. Excellent video 👍
@PattysLab
@PattysLab Жыл бұрын
Up to that 100K awesome tutorial as always!
@PhilsLab
@PhilsLab Жыл бұрын
Thank you! Fingers crossed!
@den19980107
@den19980107 24 күн бұрын
this is a good video! thanks alot!
@sanjikaneki6226
@sanjikaneki6226 Жыл бұрын
Great video again! Will you also make a video on how to use a more pro environment? like ESP-IDF wit ESP IDE or VScode using ESP-IDF ? Asking since Arduino IDE feels limiting and often at the mercy of what libraries are them.
@midhunvr7236
@midhunvr7236 11 ай бұрын
Great video. Thanks
@tonygiguere2495
@tonygiguere2495 Жыл бұрын
And again like always great video :)
@PhilsLab
@PhilsLab Жыл бұрын
Thanks, Tony!
@thedrunknmunky6571
@thedrunknmunky6571 Жыл бұрын
I use PlatformIO on VSCode to program my ESP32 projects. As I’m yet to get an in-line debugger working with it, I’d appreciate any videos in that regard.
@Graham_Wideman
@Graham_Wideman Жыл бұрын
Point of clarification regarding "Pins" for those unfamiliar with the Arduino IDE. Arduino libraries that interact with I/O often require a "Pin Number" argument. WIth an actual Arduino, that argument corresponds to the I/O pin numbers printed on the board. Of course, within the Arduino hardware description files, those pin numbers are mapped to particular bits on particular ports. So, for example, on ATMEGA328-based boards, the hardware config file maps "Pin 0" to Port D, bit 0, which, on the hardware is brought to a connector where it is labeled "0", and so on. But... For boards that are not actual Arduinos, like Phil's board, there is no existing reason for any particular physical I/O or GPIO to be any particular "Arduino pin number". So it's up to someone to create a board definition that maps Arduino library "Pin numbers" to GPIOs. It's quite convenient that the libraries Phil used just map Ardunio numbers to the same-number GPI0, but that's not required, and can be changed. Anyhow, this discussion explains why Phil named his constants Xxx_PIN, after just explaining that these are _not_hardware pin numbers. Instead, they are for use as "Arduino pin numbers" in functions that require such an argument, and rely on the mapping described above to interact with the desired GPIOs.
@dasloki5598
@dasloki5598 Жыл бұрын
Brilliant work Phil and a great help. Would be great to see a video using the Espressif IDE for a custom made board, and would very much like to see how to use FreeRTOS to for example run the accelerometer/gyro on 1 core, and save the data on SD card or transmit via BT using the other core.
@PhilsLab
@PhilsLab Жыл бұрын
Thank you! I'll be making a video on IDF at some point (even though it's a slight pain in the rear end in my eyes).
@muzairafzal1529
@muzairafzal1529 Жыл бұрын
Excellent content brother.....
@PhilsLab
@PhilsLab Жыл бұрын
Thank you!
@mak22223
@mak22223 Жыл бұрын
Thank you, Phil, for your videos)
@PhilsLab
@PhilsLab Жыл бұрын
Thank you for watching :)
@nicoladellino8124
@nicoladellino8124 Жыл бұрын
Very nice video, TNX Phil.
@PhilsLab
@PhilsLab Жыл бұрын
Thank you, Nicola!
@steffenthun2076
@steffenthun2076 Жыл бұрын
Hi Phil, great Tutorial. I planed to design my own PCB with Microcontroller, RF Communication and PWM DC Motorcontrol. Do you have experience with motorcontroller and RF Com on the same PCB?
@larmaths9790
@larmaths9790 Жыл бұрын
great job, keep going you're awesome
@PhilsLab
@PhilsLab Жыл бұрын
Thank you!
@th3magist3r
@th3magist3r Жыл бұрын
Really awesome! Thank you for providing comments every step of the way. Could you please make a video for that PCIe interface of the custom FPGA?
@PhilsLab
@PhilsLab Жыл бұрын
Thank you, Alexandros! Right now I have a few projects going (incl. bringkng up the FPGA course board), so I'm not sure quite when I'll get round to the PCIe board I'm afraid..
@ibrahimobaido
@ibrahimobaido Жыл бұрын
Thanks for sharing 🙏🏻
@PhilsLab
@PhilsLab Жыл бұрын
Thanks for watching, Ibrahim!
@mikey38632
@mikey38632 6 ай бұрын
Great video! I have a newfound interest in microcontroller programming and found this video in my searches. Quick question: when setting up the on-chip wifi access point, can I make that SSID hidden? This is to keep the general public away. I may use my project in crowded event centers. Also, does the ESP32 detect and show hidden networks or keep them hidden?
@nmjerry
@nmjerry Жыл бұрын
I'd like to see you setup, use and compare the idf framework
@mitchelskees1937
@mitchelskees1937 9 ай бұрын
When selecting the board (06:50), plugging it in provided the board name automatically (09:15).
@kzalesak4
@kzalesak4 4 ай бұрын
Subscribed. Perfect.
@PhilsLab
@PhilsLab 4 ай бұрын
Many thanks!
@drhubs7049
@drhubs7049 Жыл бұрын
Im ngl, where was this 6 months ago? 😈 Great material man, it was good to reinforce some of my knowledge and learn a thing or two 😁
@PhilsLab
@PhilsLab Жыл бұрын
Thank you very much!
@StreuB1
@StreuB1 Жыл бұрын
Well done, Phil. One of your best videos yet with regard to how you outlined what you were doing, why you were doing it, and the examples. Little quick when you were scrolling up and down through the code when going over SPI, but other than that it was brilliant. The SPI section and the simple section on reading the data sheet and using #define and WHY you were doing it was especially top tier. NO ONE EVER EXPLAINS #define!!!!! Thank you so much!!!! Any chance that you might do some work on a little bit of a lower level regarding SPLD's, like the ATF16V8B-15PU? FPGA's are an interest but far too esoteric for lots of us and the bar for entry is rather steep. I think starting off with a simple PLD using WinCUPL might be a nice little video series that viewers can use to get their feet wet. It is nice as well due to how cheap these PLD's are and that WinCUPL is free, old, and simple to understand for users who have no idea what fuses and the like even are. Thank you!!! 🙂
@PhilsLab
@PhilsLab Жыл бұрын
Thank you very much, Brian! I'll keep that in mind to go a bit slower when scrolling around for future videos. Not sure when/if I'll be covering PLDs I'm afraid. I only really make videos on things I use in my own projects or for work - if they do come up, I'll be sure to make a video though. Right now it's "just" been MCUs, FPGAs, SoCs, and so on.
@StreuB1
@StreuB1 Жыл бұрын
@@PhilsLab No worries on the speed, I can always pause and rewind. Though you seem like the type that doesn't mind feedback at times. Especially on some subtle areas. Understood on the content being project/work related. Completely understand that as it's easy (and relevant) to make content on what you're currently doing and interested in. I knew the chance was low and it might be a step backwards for you given the complexity of your projects. I would be remiss if I didn't at least ask. You're a great teacher and thought if someone could do a little intro on these and do it well, it would be you. Thanks again and look forward to the next video!! Your videos have really kindled my desire to start transitioning over to EE and software at work. When the opportunity comes up at least! 😁
@hofertyp
@hofertyp Жыл бұрын
I'm woundering why this channel hasn't more subscribers. Coming from IT-Sec, would appreciate if you also do videos in that direction. eg safe communication with sensors and actuators. Also safe WiFi setup without saving the Wifi credentials locally. Thanks!
@PhilsLab
@PhilsLab Жыл бұрын
Thanks! I'm afraid my knowledge is rather limited w.r.t. safe comms, but if I ever dive deeper into that topic, I'll make videos on that as well.
@Aludre
@Aludre Жыл бұрын
nice video, I like the new playlist with esp32. How much current the board is use in Wifi mode. Maybe you can show the deep sleep function and its current usage?
@Dazza_Doo
@Dazza_Doo Жыл бұрын
I'm sorry I missed your first video, I'll be rewatching these. I have 5x ESP32-C3-Mini-1, a different type from yours, as it has the built in Antennae as a PCB. Thank you these will be invaluable. Have you considered doing a video on the OpenAi (ChatGPT). I attempted to use it for ESP32 programming, and while the Arduino interface are more examples, rather than complete code. I found it more useful to ask for code in Espressif (freeRtos) and PlatformIO. I haven't had anything successful with it, maybe you will have better luck. Interestingly I've been attempting to get the OTA working with FreeRtos and this isn't as simple as adding the Arduino ATO library. I also found the FreeRtos to be limited to C, while the Arduino allows for some C++
@HolyPiyush
@HolyPiyush Жыл бұрын
Awesome information sir Just subscribed your channel ♥️🇮🇳♥️
@PhilsLab
@PhilsLab Жыл бұрын
Thank you, glad to have you here!
@Biomancer81
@Biomancer81 Жыл бұрын
I would very much enjoy a video on non-arduino prgramming of esp32 based boards
@berberger4814
@berberger4814 Жыл бұрын
yeah please do the video on the toolchain that does not only use arduino ide, also can you maybe include some kind of display + a lib for it
@AhmedAli-op6ng
@AhmedAli-op6ng Жыл бұрын
Hi phil i like your content. I have taken courses related to pcb designing and can design on various platforms but for testing i always use arduino ide but i am blank related to firmware or programming other boards. Please make more videos related to such topics.
@PhilsLab
@PhilsLab Жыл бұрын
Thanks, Ahmed! Will do :)
@cigunrh
@cigunrh 8 күн бұрын
Brilliant video. I desiged a pcb based on the esp32-c3-mini1. I added a uart connector.is it possibleto program the esp via an external ftdi and the uart connector?
@andymouse
@andymouse Жыл бұрын
I would love to see you use the ESP tools for programing...cheers. edit: great tutorial and would like to see more.
@PhilsLab
@PhilsLab Жыл бұрын
Thank you, Andy - will definitely be making on with the ESP tools!
@NicksStuff
@NicksStuff 4 ай бұрын
27:15 I went down a rabbit hole after seeing your calculation...turns out you could shift accRegRead(0x08) one bit to the right: it's faster than multiplying by 0.5 and doesn't require to declare a constant as float
@NotMarkKnopfler
@NotMarkKnopfler Жыл бұрын
Just wondering if the BOM is available for viewing anywhere? I''m interested in part numbers for the bare ESP32 chip and also the passive components around the RF section. Many thanks.
@NeuroMod
@NeuroMod Жыл бұрын
I would like to see a comparison between your antenna and something else such as an ESP32-C3 module integrated antenna or your mobile phone. Just something that could be used as contrast.
@youtubeviewer7077
@youtubeviewer7077 4 ай бұрын
+1 for non-Arduino setup. Would be great to make it generic just using cross-platform tools like Makefiles and GCC toolchain on the command line, so it can easily be adapted to any IDE/editor on any platform.
@CuriousMaker609
@CuriousMaker609 Жыл бұрын
Wish you had the pdf of the schematic in your repository to recreate your design with other PCB design tools.
@kevinjypiter6445
@kevinjypiter6445 Жыл бұрын
Thanks, Phil! These resources are great and please keep them coming! And yes, please make a video covering an IDE like VSCode or what you prefer for a professional workflow. I am independently making a product using the ESP32-C3, so my only resources are online. I would love to see how you create your own workflow and see what is recommended for professional standards. I have been using VSCode on my Mac but it has been somewhat temperamental but thankfully does what I need to.
@PhilsLab
@PhilsLab Жыл бұрын
Thank you, Kevin! Will definitely do that!
@PattayaDriver
@PattayaDriver Жыл бұрын
Thank you so much!!! I also made a ESP32 self-made board with smd parts last month. It works well, but I was wondering why the serial Monitor not work, while I can upload code via serial. In your video I saw that I have to change in the Arduino IDE "USB CDC On Boot" from disable to enable. That was it!!! Now my board is perfect. Happy!
@PhilsLab
@PhilsLab Жыл бұрын
Glad to hear it helped!
@Graham_Wideman
@Graham_Wideman Жыл бұрын
Hahahaha... watching Phil bringing up a new board using Arduino IDE while taking a break from... bringing up a new board using Arduino IDE. 🙂
@Ownedyou
@Ownedyou Жыл бұрын
Great video! Anyone have any success getting BLE Long range (coded phy) to work? The example isn't very good...
@rakol96
@rakol96 4 ай бұрын
You are doing great job, i really like to watch your's movies. Also your voice is so understandable even with my poor english ;) I have some questions, i hate float, in many cases there no need to use it. In this case, just multiple by 10 solved problem. Another thing, is that correct to firstlly initalize ie SPI and after set !CS pin? In my opinion, much safer method is firstly set pin direction and deactivate all CS pin and after that, initialize SPI peripheral. Pleas keep going your great job :) best regards from Poland
@nevensky
@nevensky Ай бұрын
Very nice tutorial. But I too am worried about following the EMC dirrective. Would this be allowed in a commerical product, i.e. could you self-certify without "fear" or would you instead send it to a lab for proper EMC evaluation? I suppose that is not something you can do at home, i.e. without a proper anechoic chamber?
@mikehughesdesigns
@mikehughesdesigns 2 ай бұрын
How do you handle the antenna certification? (or is it not needed?)
@jackparzick7711
@jackparzick7711 3 ай бұрын
Is there any particular reason you chose SPI over I2C for the BMI055?
@serggorod1423
@serggorod1423 Жыл бұрын
17:17 labelled point
@Anukul_Anand1309
@Anukul_Anand1309 Жыл бұрын
@Phil's Lab we would like to see programming ESP32 using ESP-IDF. Arduino framework is very easy to setup and we don't use it when it comes to development.
@robdavis3220
@robdavis3220 Жыл бұрын
would love to see the eclipse workthrough.
@vladi_g
@vladi_g 21 күн бұрын
I haven't watched your old videos yet. I wonder why a separate SPI memory chip is needed if the ESP32C3 chip has 32 megabits of built-in memory?
@carlos.galhano
@carlos.galhano Жыл бұрын
I from Portugal, where can I get that ESP32? And I am just beginning with Arduino Uno, and I must have a temperature sensor DH to see with my phone. Do you have some tutorials with that? Thanks and great vídeo👍
@martinchristiansson658
@martinchristiansson658 Жыл бұрын
If you are going to do a video about how to use other development IDEs I will watch. Vscode, kiel or other... Best Regards
@mmrx428
@mmrx428 11 ай бұрын
Did you install any bootloader into the esp32 chip? Or does it come with a pre-installed chip, thanks in advance 🙏
@MegaTraxxas
@MegaTraxxas Жыл бұрын
I also would like to see a video about using ESP IDF
@fillempie1501
@fillempie1501 Жыл бұрын
Just curious. What is de RSSI with this PCB antenna? Until which distance the Wifi is still working?
@dom1310df
@dom1310df Жыл бұрын
I would use PlatformIO rather than the Arduinio IDE. No messing around with the board manager. It still uses Arduino under the hood but gives a much more pleasant user experience via VSCode.
@avinashsethu1447
@avinashsethu1447 Жыл бұрын
if i choose esp32 s3 chip then what is the board i need to select in Arduino IDE
@riffshyperion
@riffshyperion Жыл бұрын
Is there any reason you allocate the SPI class on the heap using new?
@ulri-electronics
@ulri-electronics Жыл бұрын
Hey Phil, I don't know how far your job integrates with final product development and certification or if you're focussed on PCB design and firmware programming. In case you already participated in a whole product development workflow I'd be really grateful for a video describing certification process with e.g. FCC EMI checks. This is especially interesting as your new videos contain WiFi and PCB antennas onboard, so you have to have a look at certification while designing already, don't you? All in all another really interesting video with great and simply teached content. Thanks!
@PhilsLab
@PhilsLab Жыл бұрын
Hey Robin, Thanks! I'm planning on having an EMC/compliance expert on within the next couple of months, to talk about exactly that!
@ulri-electronics
@ulri-electronics Жыл бұрын
@@PhilsLab That's great news. Really looking forward to this and any other upcoming videos! Kind greetings from Germany.
@wouladjecabrelwen1006
@wouladjecabrelwen1006 Жыл бұрын
Damn you dead the game thank you Sir. It's been awhile while I'm sticked on your course
@PhilsLab
@PhilsLab Жыл бұрын
Thank you!
@zerobow9413
@zerobow9413 Жыл бұрын
Cant get the C3 to work on win7 even with the latest comms driver [testing with M5 stamp C3U] I must be missing something !
@panos26
@panos26 Жыл бұрын
How did we get that we write the GPIO number in LED_PINs and not the pin number? What in the table of the datasheet "said" to do so?
@maazsiddiqui6324
@maazsiddiqui6324 Жыл бұрын
can we do DMA in this project?
@TheEmbeddedHobbyist
@TheEmbeddedHobbyist Жыл бұрын
I find it better to print out data values during testing in hex as its far easier to read and convert binary to hex in you head.
@maximus6884
@maximus6884 3 ай бұрын
Do we have to press the button each time we want to program?
@MikeNugget
@MikeNugget Жыл бұрын
Have you ever faced the need to update a firmware after shipping hardware to the customer? And how would you solve this problem?
@ME-dg5np
@ME-dg5np Жыл бұрын
Is possibile to change the flash rom and solder 16 mb in esp32 s3 ? A tutorial Is possibile ?☀️🌈 Tks You are a true master ! 👍🌈
@Quantum_Dots
@Quantum_Dots Жыл бұрын
Love your video seriers I am learining a lot being a physics student,Im interested to see runing micro-ROS ESP32
@PhilsLab
@PhilsLab Жыл бұрын
Thank you, glad to hear that!
@CuriousMaker609
@CuriousMaker609 Жыл бұрын
I didn't know micro-ROS was a thing.
@danedwards_ee
@danedwards_ee Жыл бұрын
Have you considered making a discord or something for patreons?
@Stabby666
@Stabby666 Жыл бұрын
I use these ESP32 chips quite often on my custom boards - they're easy to source and offer a lot of power and peripherals for the price. I also just use the Arduino IDE for these parts as the IDF environment is so annoying to install and get working (e.g. it will not work if your user folder in Windows includes a space, and reinstalling often doesn't fix things as it doesn't overwrite various auto-generated config files from previous installs). There is also a lot more code and libs for Arduino - the Espressif IDE is nowhere near as accessible. Espressif also often break their libs, or at least break backward compatibility by changing function signatures, or even class and function names on a whim. For other manufacturers I do use their own IDEs when possible, but Espressif are really not doing a good job with theirs.
@PhilsLab
@PhilsLab Жыл бұрын
Agreed, the IDF is a pain in the rear end in comparison to set up.
@velho6298
@velho6298 Жыл бұрын
Please do a video about the firmware development on more professional tools!
@PhilsLab
@PhilsLab Жыл бұрын
Will do!
@Interelectronix
@Interelectronix Жыл бұрын
Dear Phil what IDE would you use to program the ESP32 that is more professional then the Arduino IDE ?
@PhilsLab
@PhilsLab Жыл бұрын
Hi Christian, I'd go for VSCode or alternatively Eclipse with the Espressif IDF.
@Interelectronix
@Interelectronix Жыл бұрын
@@PhilsLab thank you
@shahinhaque95
@shahinhaque95 Жыл бұрын
How come you switched from JLCPCB to PCBWAY? is there any advantage for this? ie Cost/Quality etc?
@PhilsLab
@PhilsLab Жыл бұрын
PCBWay offers more advanced PCBs (layer count, clearances, HDI, ...) and a more custom assembly service.
@stevensexton5801
@stevensexton5801 Жыл бұрын
Phil, Do you plan on uploading your HW design files to GitHub? If so, can they be imported into KiCad?
@PhilsLab
@PhilsLab Жыл бұрын
Yeah, I'll push the files to Git tomorrow. I think KiCad has an Altium importer of some sort - will need to check.
@ligius3
@ligius3 Жыл бұрын
I'm wondering if the CDC somehow resets the chip automatically and selects the flash boot mode, or how does it work?
@PhilsLab
@PhilsLab Жыл бұрын
I believe so!
@bramSDASCL1759
@bramSDASCL1759 Жыл бұрын
How to encrypt the firmware using arduino ide?
@frankbose544
@frankbose544 Жыл бұрын
Yes show us the esspressif tools
@keithsummers1889
@keithsummers1889 11 ай бұрын
Arduino is the beginner's tool.... a hobbyist platform. A tool suited for targeting multiple hardware with one code base - maybe.
@alpgenrobotics
@alpgenrobotics Жыл бұрын
👏
@gaborm4767
@gaborm4767 Жыл бұрын
Is it possible to order this board?
@aarbtheorigin
@aarbtheorigin 3 ай бұрын
Hello, this is a beautiful design. I would like to hire you for a project involving a stm32. While I am quite good using kicad for schematics and PCB design, my knowledge regarding firmware coding is next to nothing. It would be beautifuly awesome collaborating with you. Thanks in advance.
@ballboy2965
@ballboy2965 10 ай бұрын
Link to the datasheet pls
@yellowcrescent
@yellowcrescent Жыл бұрын
Great video, as always. Yes, using VSCode and the native Espressive tools would be great. Especially for STM32, having a working GDB server and integrated programming and debugger is super handy, esp if you already use VSCode for other things. Eclipse seems to still be pretty popular for a lot of embedded C toolchains... but I try to avoid if possible.. lol.
@leizhao1387
@leizhao1387 11 ай бұрын
cooooooool
@gorkemsay
@gorkemsay 11 ай бұрын
Hi, When I try to upload empty sketch this error shows up "A fatal error occurred: Could not open COM19, the port doesn't exist ". I couldn't figure out what the problem is? Does anyone know?
@gorkemsay
@gorkemsay 11 ай бұрын
I just realized that the board is rebooting continuously when I plug the usb cable. but why I don't know
@gorkemsay
@gorkemsay 10 ай бұрын
If anyone face with this problem, replace 100n cap on boot pin with 1u and connect GPIO 8 to 3v3.
@vogonjelc
@vogonjelc Ай бұрын
I must be stupid but I can't find video #90 with this board design.
@Ajay-bk4xh
@Ajay-bk4xh Ай бұрын
@PhilsLab
The Simplest Digital Filter (STM32 Implementation) - Phil's Lab #92
23:31
2-Layer PCB Design Tips - Phil's Lab #137
32:27
Phil’s Lab
Рет қаралды 22 М.
Don’t take steroids ! 🙏🙏
00:16
Tibo InShape
Рет қаралды 32 МЛН
ISSEI funny story😂😂😂Strange World | Magic Lips💋
00:36
ISSEI / いっせい
Рет қаралды 129 МЛН
Let's all try it too‼︎#magic#tenge
00:26
Nonomen ノノメン
Рет қаралды 50 МЛН
The magical amulet of the cross! #clown #小丑 #shorts
00:54
好人小丑
Рет қаралды 22 МЛН
Extracting Firmware from Embedded Devices (SPI NOR Flash) ⚡
18:41
Flashback Team
Рет қаралды 506 М.
Minimalist Microcontroller: Building a Bare-Bones Dev Board
9:15
Rust on ESP32 - Getting started
14:09
Floodplain: Streaming, Rust and Embedded
Рет қаралды 16 М.
I bought the most MINIMALIST Tech ever.
48:11
Mrwhosetheboss
Рет қаралды 176 М.
Bare metal GPIO driver for ESP32 | Toggling an LED
12:43
The EV Engineer
Рет қаралды 4,5 М.
ESP32 + PCB Antenna Hardware Design Tutorial - Phil's Lab #90
34:06
Phil’s Lab
Рет қаралды 155 М.
I Made A Tiny ESP32
5:40
Paul's Projects
Рет қаралды 100 М.
Try these 16 Brilliant ESP32 projects!!!
11:18
ToP Projects Compilation
Рет қаралды 518 М.
ESP32 Guide 2024 | Choosing and Using an ESP32 Board
41:06
DroneBot Workshop
Рет қаралды 209 М.
Apple Event - May 7
38:32
Apple
Рет қаралды 6 МЛН
Распаковка айфона в воде😱 #shorts
0:25
Mevaza
Рет қаралды 1,4 МЛН
Рекламная уловка Apple 😏
0:59
Яблык
Рет қаралды 819 М.