Questions tagged [task]

9 questions
4
votes
1 answer

Scheduler comparison for Arduino Uno

I understand that the official Arduino Scheduler doesn't support Uno, and there are several third-party schedulers to fill the gap, notably, Scheduler, Arduino-Scheduler and TaskScheduler. There are probably many more, though I see that many…
Dmitry Grigoryev
  • 1,288
  • 11
  • 31
2
votes
1 answer

Run method every hour

I have a method. I need to trigger it every hour (cron job). I mean: 10.00 p.m -> Trigger 11.00 p.m -> Trigger 12.00 p.m ->Trigger ... ... Card: Arduino Uno + Wifi Shield. Draft Code void setup() { } void onTimeChanged() { …
2
votes
1 answer

FreeRTOS : Create Tasks but don't start Scheduler

I'm using FreeRTOs on Arduino for the first time. In my setup(), i would like to create my tasks but i have few more configuration to do after so i would like to create my tasks but don't start the scheduler immediately. This is my code currently…
bouaaah
  • 71
  • 7
2
votes
2 answers

Is there a way to pause Program execution?

I understand that Arduino programming is procedural and not so much Object Orientated and also that the Arduino or AVR are only single core processors and any kind of "Multitasking" or "Threading" is emulated at best but I was wondering if there is…
Andy Braham
  • 468
  • 1
  • 8
  • 17
1
vote
1 answer

using RTOS SDK - crashes when adding another task

(I hope this is the right place to ask questions about the ESP8266_RTOS_SDK) I have a program that I've taken from the samples directory (protocols/tcp_client) in the RTOS SDK and added code from the uart sample just so I can use the keyboard to…
1
vote
2 answers

Estimating CPU load of a task scheduler

First off, I should note that I'm not sure what tags best apply here, and I can't seem to find any that relate to schedulers, etc. Please inform me if they are not the right ones. I have a simple, portable task scheduler (it only relies on millis(),…
user47164
1
vote
0 answers

ESP32: Share I2C bus among multiple freeRTOS tasks - do I have to expect synchronization issues?

I recently inherited some firmware with weird problems in regards to the duration of reading sensor values. The board is based on the ESP32 Wrover MCU and has multiple sensors connected via the I2C bus. The firmware makes use of the port of the…
Nodebody
  • 111
  • 2
1
vote
1 answer

Is this a proper implementation of FreeRTOS for Arduino?

I'm using the RGBLCDShield library and a few analog input signals and since it seems the interrupts are being used by the SPI interface of the LCD Shield, I decided to try it with FreeRTOS instead. I don't currently have my arduino with me (left if…
user20985
0
votes
1 answer

Tasks in ESP32: guidelines rather than blink example

I'm using an ESP8266 for IOT devices. I wish to work with an ESP32 and harvest its benefits - for my uses managing WiFi and MQTT connectivity. Most tasks examples are very basic and quite the same (blinking LEDs). But for a real time application,…
guyd
  • 1,049
  • 2
  • 26
  • 61