Revolutionize Your ESP32 Projects with Live GPIO Pin Monitoring!

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
here is a groundbreaking tool that lets you monitor GPI opin activities live right from any browser it's like having x-ray vision and if you're like me facing challenges in your microcontroller project sometimes feeling overwhelmed this tool is a game changer you don't want to miss I developed it for my own news but now I'm thrilled to share it with you as an easyto use Library in just a few moments I demonstrate how effortlessly you can integrate this tool into your projects with only four lines of code but first let's jump into some practical examples to witness the impact of this library to level up your microcontroller troubleshooting process here I have an esp32 vro now watch closely even though this board is essentially bare running an empty sketch we can see that some pins are active this is the natural state of the board Untouched by any Cod understanding this Baseline activity is crucial here is another esp32 with several LEDs controlled by P Swift modulation and three additional LEDs operated with digital pins alongside the rotary encoder using the gpiu viewer we can clearly see the signals being actively sent to the pins connected to the BL EDS and despite receiving signals one of the Eds isn't lighting up we know the code is working as expected we see it live on the gpiu viewer the wiring is the issue the nonfunctioning LED is actually connected with reverse polarity a simple but common mistake if I flip it around the LED Springs to life glowing as intended the GPI viewer saves time and eliminates the guess Works helping you to focus on the creative aspects of your project I've connected the rotary encoder to control a set of green LEDs watch closely as I turn the encoder on the gpiu viewer you can see the corresponding pins springing to life in perfect sync with each rotation I make the gpiu viewer is capturing every subtle change in real time displaying the activation of each pin as I manipulate the encoder each turn of the encoder results in an immediate visual response on the screen it's not just about seeing that the system works it's about understanding how it works all right it's time to see how you can harness the power of the gpiu viewer for your esp32 projects trust me it's easier than you think first things first head over to my GitHub repository to get the library the link is in the video description simply download the latest releas and install it using the arduo [Music] IDE you also need the ESP async web server Library install it in the same way you did the gpiu viewer the last library to installed is TCP can be installed using the aduno ID Library manager now let's speak into the example that comes with the gpiu viewer Library here's the magic part you need to include a GPU viewers Eder file at the very top of your project this is crucial as it needs to be the first include then we declare a global variable for the gpiu viewer simple and straightforward if if your project doesn't connect to Wi-Fi no worries use the built-in connect to Wi-Fi function provided by the library and if your project is already Wi-Fi enabled you can just comment out this line and here's the Final Touch at the very end of your setup function add this single line to Kickstart the gpiu viewer web application that's it now let's upload this code to our esp32 and watch the magic happen once the gpiu viewer finishes its initialization it will print a URL in the serial monitor this is your golden ticket copy that URL paste it into your browser and voila you're now watching the live action of your pins right on your screen the gpiu viewer extends beyond your computer any device with a browser can become your gpiu monitoring station all you need to do is open the browser on your device and enter the URL displayed in the serial monitor it's that straightforward no additional setup no complex configurations now let's integrate it into an existing project of mine the Millennium Falcon props a quiet large code base that simulates a console in the Millenium Falcon we start by adding the gpiu viewer header file as our first include in the code next we declare the gpiu viewer as a global variable just one simple line of code and we're outway there now since this Millennium Falcon project already connects to Wi-Fi we can skip straight to the final step we simply add this one line to the end of our setup function to activate the gpiu viewer that's it our integration is complete let's upload this updated code to our esp32 once it's up and running I can use GPI you viewer to observe the pin activities live this isn't just coding it's bringing a project to life there are two things you can configure in the gpiu viewer first up the simpling interval this is the rate at which the gpiu viewer checks and updates the status of your pins by default it's set to 100 milliseconds providing a smooth and responsive view of your your PIN activities but if you want to change it just use the set sampling interval function the second configurable element is the port for the gpiu viewers web application the default Port is set to 88d you can easily change the port number in your code using the set Port function the GPI viewer supports different tp32 boards you can see the list in the gpiu viewer web application or in the libraryies repository and if your board isn't on the list you can use the generic view to see all pin activities you can also request a board addition to do so just head over to gpiu viewers GitHub repository and navigate to the issues section there you can create a new issue and be sure to specify the exact model of your sp32 board and include a URL to an image of the board board this will let me on adding support for your specific board the gpiu viewer is a game changer for anyone working with esp32 its real-time pin visualization simplifies troubleshooting and enhances project development with super easy integration and evolving board support it's an essential tool for both beginners and expert let me know your thoughts and your suggestions and improvements on the gpiu viewer in the comments below I'm excited to hear how this tool could transform your esp32 projects thanks for watching
Info
Channel: The Last Outpost Workshop
Views: 155,617
Rating: undefined out of 5
Keywords: Arduino, esp32, library, debugging, Microcontrollers, TechDIY, RealTimeMonitoring, gpio, GeneralPurposeIO, HardwareHacking, TechInnovation
Id: UxkOosaNohU
Channel Id: undefined
Length: 8min 8sec (488 seconds)
Published: Fri Dec 29 2023
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.