Should I Implement RTOS for Task Scheduling in my IoT Device with Adafruit?
Good day guys, I am running a program on Arduino IDE while utilizing Adafruit ESP32 Feather MCU. I have three sensors reading data thrice per run, with a 4G connection to transmit data to the SIM carrier's cloud database (likely on Azure). Additionally, I manage a buzzer and LEDs for device status indication. Do I need RTOS for task scheduling? Any suggestions to enhance or improve the device?
Solution:Jump to solution
The need to use RTOS is based on many factors considering your project requires managing multiple tasks. I'd suggest the use of RTOS in case you're already comfortable with porting RTOS on MCU. Otherwise, you can implement task scheduling without using RTOS to keep things simple
8 Replies
In my opinion, yes you need, maybe build a mobile application for it, and offline notifications and control threw SMS in case the user has no Internet connection
Hmm building a mobile application sounds interesting @aymen ammari . Just asking , what would be the key features of the app, and how would it enhance the user experience compared to traditional methods of device control and monitoring?
Well you can link it to tuya app or smartlife, but your own app is better
Solution
The need to use RTOS is based on many factors considering your project requires managing multiple tasks. I'd suggest the use of RTOS in case you're already comfortable with porting RTOS on MCU. Otherwise, you can implement task scheduling without using RTOS to keep things simple
Thanks for the insight too @Umesh Lokhande I'm now weighing the pros and cons of using RTOS, especially considering the complexity of managing multiple tasks. I'll try out both options further to determine the best approach for task scheduling in my project. Do you have any recommendations or resources for getting started with RTOS porting on the MCU?
Yes best if you use rtos. Pinnedtocore type functions
RTOS for task scheduling ensures timely execution of tasks based on their priorities
DigiKey
YouTube
Introduction to RTOS Part 3 - Task Scheduling | Digi-Key Electronics
The RTOS scheduler decides which task to run on a recurring basis, and some tasks can interrupt and run before other tasks in a process known as “preemption.”
The solution to the challenge in the video can be found here: https://www.digikey.com/en/maker/projects/introduction-to-rtos-solution-to-part-3-task-scheduling/8fbb9e0b0eed4279a2dd698f02c...