ESP32 Tutorial: Multitasking and LED Blinking

Learn how to multitask on the ESP32 microcontroller and optimize performance by setting task priority and core choice. Blink LEDs simultaneously.

00:00:00 Learn how to run multiple tasks simultaneously on the ESP32 board, utilizing its dual cores. Discover an easy way to program the ESP32 and explore the benefits of multitasking.

⭐ The tutorial is about programming the ESP32 board and multitasking.

🔧 The ESP32 has two cores, and tasks can be assigned to specific cores.

📝 Tasks can be created using the 'tuniate for esp32' block, and their code is written in a separate function.

00:01:03 Learn how to use multitasking with the ESP32. Set task priority and core choice for optimal performance. Print core ID and execute code continuously.

💡 The tutorial focuses on multitasking in ESP32 using different cores.

📌 The default stack size and priority for the pin task can be left unchanged.

✅ The function for task one is demonstrated, showing how to display a message from each task.

🔄 The core on which a task should be executed can be chosen by specifying 'zero' or 'one'.

⏳ To ensure code execution all the time, it should be placed inside a certain area.

00:02:05 This tutorial focuses on multitasking with the ESP32 microcontroller using an infinite loop and a second function.

🔄 Multitasking involves running multiple functions simultaneously.

⏱️ The use of delays in functions allows for better synchronization between multiple tasks.

⚡ Using the ESP32 microcontroller, multitasking can be efficiently implemented.

00:03:15 Learn how to use multitasking in ESP32 to run multiple tasks simultaneously and blink an LED using a for loop.

📺 This tutorial video is about multitasking using ESP32.

⌨️ The serial monitor is used to see the results of the uploaded program.

🔁 Tasks are working together and an LED is blinked in each task with a different time.

00:04:27 Learn how to implement multitasking on the ESP32 using different variables and avoid errors by calling the delete task block.

⚡️ Calling the delete task block after blinking the LED is important to avoid errors.

🚦 Using a different variable counter is necessary when creating a secondary function.

🔄 Creating a variable will result in it being shared by all other tasks.

00:05:39 This ESP32 tutorial demonstrates multitasking with blinking LEDs. The red LED blinks for 1 second while the green LED takes 2 seconds. A yellow LED is also blinked in the main loop.

👉 The red LED in Task 1 finished blinking after a 1-second delay.

🕒 The green LED takes longer to finish blinking due to a 2-second delay.

💡 It is possible to add code to blink a third LED quickly within the main loop.

00:06:44 Learn how to implement multitasking on the ESP32 microcontroller in this tutorial.

🔗 The video discusses the concept of multitasking using the ESP32 board.

💡 The main loop of the code is responsible for blinking the yellow LED.

👋 The video concludes by saying goodbye and hoping that the viewer enjoyed it.

Loading video...
Summary of a video "ESP32 tutorial A-18: Multitasking" by ADEL KASSAH on YouTube.

Chat with any YouTube video

ChatTube - Chat with any YouTube video | Product Hunt