lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Wow! That looks like a great little device.


-----Original Message-----
From: Paul Ducklin <pducklin@outlook.com>
Sent: Saturday, September 19, 2020 4:04 PM
To: Lua mailing list <lua-l@lists.lua.org>
Subject: Re: Can Lua run within the real-time kernel?

I use NodeMCU on an Espressif ESP32.

It’s basically a Lua-based OS for the ESP and a few other related microcontroller boards.

Check nodemcu/nodemcu-firmware on Github.

It consists of Lua and a bunch of relevant libraries (e.g. Wi-Fi, basic BLE, GPIO twiddling, outputting to various popular microcontroller displays) that are built using the Espressif IoT Development Framework that is based on FreeRTOS.

I really like it but I only use it for fun. How good it is for soft real-time programming I have no idea - I have just used it to play around with Bluetooth and Wi-Fi sniffing.

If you want to see what is possible using pure Lua-based firmware on a microcontroller you might as well try it.

There is an ESP8266 version (where you can choose Lua 5.1 or 5.3) and and ESP32 version (5.1 only). Suitable development test boards are a couple of dollars each, USB powered and with a USB UART so you don’t even need to put them on a breadboard.

I have also tried Whitecatboard, a Lua-based RTOS firmware for a range of different boards (also ESP-based), but haven’t done anything serious with it.

Check whitecatboard/Lua-RTOS-ESP32 on Github.







> On 16 Sep 2020, at 02:40, 孙世龙 sunshilong <sunshilong369@gmail.com> wrote:
>
> Hi,
>
> Can Lua run within the real-time kernel?
> Does anybody do such a test?
>
> Is it possible to run Lua scripts on the controller for real-time control?
>
> Best regards
> Sunshilong
*******************************************************************
IMPORTANT MESSAGE FOR RECIPIENTS IN THE U.S.A.:
This message may constitute an advertisement of a BD group's products or services or a solicitation of interest in them. If this is such a message and you would like to opt out of receiving future advertisements or solicitations from this BD group, please forward this e-mail to optoutbygroup@bd.com. [BD.v1.0]
*******************************************************************
This message (which includes any attachments) is intended only for the designated recipient(s). It may contain confidential or proprietary information and may be subject to the attorney-client privilege or other confidentiality protections. If you are not a designated recipient, you may not review, use, copy or distribute this message. If you received this in error, please notify the sender by reply e-mail and delete this message. Thank you.
*******************************************************************
Corporate Headquarters Mailing Address: BD (Becton, Dickinson and Company) 1 Becton Drive Franklin Lakes, NJ 07417 U.S.A.