Skip to content

A deep dive into how ESP32 Queues work in RTOS, as well as looking at Global Variables as an alternative

License

Notifications You must be signed in to change notification settings

RalphBacon/ESP32-Variable-Passing-Using-Queues-Global-Vars

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ESP32 Passing Variable Between Tasks Using Queues & Global Variables

A deep dive into how ESP32 Queues work in RTOS, as well as looking at Global Variables as an alternative

(Direct Video link: https://youtu.be/ywbq1qR-fY0)

Sponsored by LCSC Electronics (Love Components? Save Cost!)
More Asian Brands, Lower Prices, 4 Hours Ready for Shipping
Shop: https://lcsc.com/?href=arduinoelectronics&source=referral

It's not Rocket Science!

Here's all you need to know on how Queues work in RTOS and the ESP32 to pass values from one task to another in a safe manner. Just a couple of statements and it's done.

But this is a Deep Dive so we do cover the subject properly.

As if that is not enough we also cover an alternative way of passing values between tasks - but is it any better? I'll leave that for you to decide.

As an extra (as if this video is not already long enough) we investigate how the Prime Number calculator suddenly increases its processing time from around 60 milliseconds to 1.7 seconds. What is going on?

LINKS

(Some links are affiliate links which may financially help my channel. As an Amazon Associate I earn from qualifying purchases.)

Arduino-sized ESP32 board (Wemos):
WeMos® TTgo ESP32 WiFi + bluetooth Board 4MB Flash UNO D1 R32
https://eu.banggood.com/Wholesale-Warehouse-WeMos-TTgo-ESP32-WiFi-Bluetooth-Board-4MB-Flash-UNO-D1-R32-wp-Eu-1163967.html?p=FQ040729393382015118&utm_campaign=25129675&utm_content=3897

Wemos D1 Mini ESP32 240Mhz Dual Core(as used in the demo) on offer $6 until end June 2019:
Wemos® D1 Mini ESP32 ESP-32 WiFi+bluetooth Internet Of Things Development Board Based ESP8266 Fully Functional
https://www.banggood.com/Wemos-D1-Mini-ESP32-ESP-32-WiFiBluetooth-Internet-Of-Things-Development-Board-Based-ESP8266-p-1205854.html?p=FQ040729393382015118&utm_campaign=25129675&utm_content=3897


If you like this video please give it a thumbs up, share it and if you're not already subscribed please consider doing so and joining me on my Arduinite journey

My channel and blog are here:
------------------------------------------------------------------
https://www.youtube.com/RalphBacon
https://ralphbacon.blog
------------------------------------------------------------------

About

A deep dive into how ESP32 Queues work in RTOS, as well as looking at Global Variables as an alternative

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages