Firmware replacement for Lego Mindstorms NXT enabling Lua to run on the robots
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.


This repo contains the firmware replacement pbLua that enables a Lua runtime on the Lego Mindstorms NXT robots. You can simply write code in any text editor and transfer it to the brick via a serial connection (USB/Bluetooth), for instance by using screen or minicom. Compilation and execution then takes place on the NXT itself. Additional scripts which are helpful for eased handling and transmission of scripts can be found in the pbLuaConnect repository.

The project was developed by Ralph Hempel and originally provided at his website. Due to downtime of this page the most recent stable package is mirrored here for now. No license is provided as all rights belong to their respective owners. Please contact Mr. Hempel for any enquiries.


  1. Download and install the Lego Mindstorms NXT Software Suite for flashing the firmware.

  2. Head over to the releases page and grab the latest one.

  3. Start the Lego Mindstorms NXT Software Suite and open the dialog under Tools > Update Firmware. Then choose the file pbLua.rfw from the previously downloaded package.

  4. Flash the firmware.