Arduino task scheduler

in Arduino by DP | 2 comments

Brad shared an Arduino library he wrote schedules when specific functions will be executed. The code is open source and available on github.

This library allows you to create a schedule queue of functions to be executed at specified times, on specified intervals.  For example, say you’re trying to log some sensor data and update a display in the same program. With the task scheduler, you can simply write a function to gather sensor data, write a function to update the display, add them to your queue, and let the library handle the rest.

This entry was posted in Arduino and tagged , , .

Comments

  1. Gamin Inganela says:

    Terrific! I could find so much use for this in my Xbee-based, SD-writing, Input-polling, LCD-displaying project.

  2. Drone says:

    Umm… Aren’t there a bunch of other scheduler/RTOS’s for Atemega and AVR parts out there already?

    http://www.out–there.com/blog/rtos-for-arduino/

    Also, a real “Scheduler” not only allows a-priori scheduling (what this seems to do), but services real time task requests, often within some specified latency period.

Leave a Comment

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Notify me of followup comments via e-mail. You can also subscribe without commenting.