qmetrics.net

TaskScheduler

Cooperative multitasking scheduler for microcontrollers

TaskScheduler runs periodic and event-driven callbacks on Arduino-class boards without a preemptive RTOS. One loop executes due tasks and can idle between runs.

Overview

TaskScheduler is a lightweight cooperative multitasking library for embedded boards. Instead of preemptive RTOS-style threading, you register tasks with intervals or triggers and call a single execute routine from the main loop; only one task runs at a time, which avoids typical concurrency pitfalls.

Tasks can run on fixed millisecond or microsecond periods, for a limited or unlimited number of iterations, in a defined order, with dynamic changes to interval and callbacks. Static and dynamic binding and std::function-style callbacks are supported on capable targets. Idle sleep can reduce power when nothing is scheduled, and optional timeouts, load statistics, and tickless scheduling cater to timing-sensitive sketches.

Event-driven invocation uses status-request objects; you can assign task IDs, control points, local storage per task, layered priorities, and pause or resume scheduling. Thread-safe modes exist when the library runs alongside preemptive schedulers such as FreeRTOS.

It targets Arduino IDE and PlatformIO workflows on Uno, ATtiny, ESP8266, ESP32, Teensy, nRF52, STM32, MSP430 family boards, and similar hardware, with optional non-Arduino ports when you supply timing hooks. painlessMesh and other projects embed it for mesh and IoT control loops.

Key features

  • Periodic tasks with ms or µs intervals
  • Finite or infinite task iteration counts
  • Dynamic interval and callback changes
  • Idle sleep for lower power draw
  • Event-driven status-request triggers
  • Pause, resume, enable, disable scheduling
  • Layered priorities and task timeouts
  • FreeRTOS thread-safe scheduling mode

Use cases

  • Multiple timed loops on Arduino sketches
  • ESP mesh and IoT firmware scheduling
  • Sensor polling without manual millis checks
  • LED patterns and serial I/O concurrency

Tags

Similar software

RuView

WiFi CSI spatial sensing without cameras

RuView turns WiFi channel state into presence, motion, breathing, heart rate, and activity signals using low-cost ESP32 nodes. Processing can stay on edge hardware with optional visualization and smart-home bridges.

★ 105.3k⟳ 2 days agoMIT

Home Assistant

Local-first open home automation platform

Home Assistant connects smart home devices and services for local control and privacy. It suits Raspberry Pi or a server at home, with companion apps for phones and watches.

★ 92.6k⟳ todayApache-2.0
Open Source Alternative to:Google HomeHomey+3

openpilot

In-vehicle advanced driver assistance for supported cars

openpilot upgrades driver assistance on hundreds of supported vehicle models when paired with comma hardware and a car harness. It provides adaptive cruise and automated lane centering with driver monitoring.

★ 64.2k⟳ yesterdayMIT

XiaoZhi ESP32

ESP32 voice chatbot firmware using MCP

XiaoZhi AI is voice-interaction firmware for ESP32 boards. It uses large models such as Qwen or DeepSeek and controls devices through the MCP protocol.

★ 33.9k⟳ 2 days agoMIT

LibrePods

AirPods control and features on Linux and Android

LibrePods reimplements Apple’s AirPods control protocol so non-Apple devices can change listening modes, read batteries, and use accessibility-oriented options.

★ 31k⟳ 1 month agoGPL-3.0

LVGL

Embedded graphical UI library for MCUs and MPUs

LVGL is a portable C UI library for building screens on microcontrollers and application processors, with widgets, layouts, and optional GPU acceleration.

★ 25.3k⟳ todayMIT