Lua RTOS is a small-footprint operating system for embedded 32-bit boards, with an ESP32 port that combines Lua 5.3, FreeRTOS, and hardware drivers for IoT projects.
Overview
Lua RTOS targets embedded systems with limited flash and RAM. On ESP32 it stacks a Lua 5.3 interpreter with modules for GPIO, ADC, I2C, RTC, threads, LoRaWAN, MQTT, and similar services, above a FreeRTOS micro-kernel and a board-specific hardware abstraction layer. The same upper layers can be retargeted by rewriting only the bottom HAL.
Boards are programmed from the Whitecat IDE using Lua or a blocks language that compiles to Lua, with the ability to switch between them in one environment. Firmware can be flashed with the Whitecat Console tool and prebuilt images, or built locally with the Espressif ESP32 toolchain, esp-idf, and project-specific environment scripts. Serial console access uses standard terminal settings at 115200 baud.
The ESP32 edition sits alongside ports for ESP8266 and PIC32MZ families described in the broader Lua RTOS family. Linux, Mac OS, and Windows host tooling support flashing and compilation, while GNU/Linux typically needs no USB serial drivers. Documentation and wiki material explain IDE workflow and board selection during flash.
Use cases align with classroom or product prototypes on Wi-Fi capable Espressif hardware where scripted Lua logic controls sensors, radios, and actuators under a real-time scheduler.
Key features
- Lua 5.3 on device
- FreeRTOS scheduling
- Hardware abstraction layer
- LoRaWAN and MQTT middleware
- Block or Lua programming IDE
- Whitecat Console flashing
- ESP-IDF based builds
- Serial VT100 console
Use cases
- ESP32 IoT firmware
- Educational embedded programming
- LoRaWAN sensor nodes
- Rapid Lua hardware prototypes