开源软件名称(OpenSource Name):Nicholas3388/LuaNode开源软件地址(OpenSource Url):https://github.com/Nicholas3388/LuaNode开源编程语言(OpenSource Language):C 93.4%开源软件介绍(OpenSource Introduction):LuaNodeThis project is an improved This project is developed by DOIT is a high-tech company, focus on IoT. Visit homepage: www.doit.am NEW UPDATE FOR ESP32:New version of LuaNode32 is developed based on esp-idf and compatible with The following figures show the DOIT ESP32 dev-board. To buy the ESP32 dev-board click Here New version of ESP32 dev-board is coming! The new board will be ready for retail in few days. The new board is smaller than the old one, and has more pins. Download the DOIT dev-board schematic here How To Build LuaNode32
For more details, view LuaNode wiki page LUA PROGRAMMINGProgramming with Lua is easy, some samples are as follow: -- create file on file system
file.open("myfile.lua", "w+");
file.write("hello world");
file.close();
-- read file from file system
file.open("myfile.lua", "r");
-- read 1024 bytes from myfile.lua and save them
-- to content
content=file.read(1024);
print(content);
file.close();
-- remove file
file.remove("myfile.lua");
-- restart device
node.restart(); You can add your own Lua modules to LuaNode at will, visit the LuaNode wiki page for more details. LuaNode is compatible with Get Esplorer Here
HOW TO BUILD For |
Interface | Nokia5110 Pin | DOIT ESP32 dev-board Pin |
---|---|---|
RESET | RST | D4 |
LCD Enable | CE | D2 |
DC | DC | D5 |
Data Input | Din | D18 |
Clock | Clk | D19 |
Back Light | BL | D21 |
Power Supply 3.3V | Vcc | 3V3 |
Ground | Gnd | GND |
For more details, view the lcd_nokia5110_driver sample within the examples folder.
This is a sample to show how to create BLE client and BLE server, and create connection between them.
To test this sample, you have to prepare two
ESP32 dev-board. Then build the sources within the LuaNode_ESP32/examples/ble_led_controller
, and flash
the client and server firmware to the two ESP32 dev-boards, respectively. you will see the blue LED on the
server board is turned on/off each 2 seconds. You can see the test from the following video: https://youtu.be/UnzXCB5EYGU
In this sample, when the client connect to server, it will send BLE notify to the server each 2 seconds. When the server recieves the notification, the server will turn on/off the blue LED on board according to the notification value. If the value is 0x1, the server will turn on the LED, otherwise, the LED will be turned off.
This is a example to show how to create BLE connection between ESP32 and nRF51 device (nRF51822 inside). In this sample,
ESP32 write "on"/"off" string to the characteristic 6e400002-b5a3-f393-e0a9-e50e24dcca9e
, which provided
by nRF51 device. When the nRF51 device receives the content sent by ESP32, the nRF51 will turn on/off the LED on board
according to the received string. The ESP32 will write "on"/"off" to the characteristic each 2 seconds, so you
will see that the LED on nRF51 device blink each 2 seconds.
The folloing video is a test for this example: https://youtu.be/hXuCXh5lEew
The nRF51 device is a nRF51822 dev-board, you can buy it from Taobao China. You can download the sources and build firmware for the nRF51 device from the following link: https://github.com/Nicholas3388/nRF51822_ESP32_communicate
This is an App (including iOS & Android) for ESP32 as well as other BLE device. The app named LuaNode_BLE_Client
.
You can use this app to connect to ESP32
and then control the LED on DOIT ESP32 dev board. Plus, you can scan BLE devices around your phone and then view the
services, characteristics, and descriptors provided by the devices. Download LuaNode_BLE_Client sources from the
following repository: https://github.com/Nicholas3388/LuaNode_BLE_Client
To control the LED on ESP32 board, you have to build the example esp32_ble_gatt_server_led_control_for_phone
, and then
download the firmware. Run the LuaNode_BLE_Client
and then toggle the LED switch on app to turn on/off the LED on board.
The following video is a test for ESP32: https://www.youtube.com/watch?v=LhvA33yf7P8
Another interesting application is the Wifilister
app. The app scans all APs along with the clients connected to them around device, and scan results are sent to
Android device via OTG, then you can see the result displayed on Android device.
To test this app, you have to install the LuanodeUsbHost
Android app to your Android phone (device).
LuanodeUsbHost
is an Android USB Host app for ESP8266/ESP32. The Android device receive messages, sent from ESP8266, via OTG.
Then the messages display on this app.
Download the LuanodeUsbHost
source Here.
Compile Wifilister
provided in Luanode, flash it to ESP8266/ESP32, and then connect your ESP8266/ESP32 with Android phone.
You can see the scanning results.
See wiki page Here
Wei Wang
: He got his master's degree from Guilin University of Electronic Technology in 2012. He has more than 4 years work experience on Embedded System.
DOIT
(www.doit.am): DOIT is a high-tech company, who focus on IoT technology and open source hardware. He supports this project and provides hardware for this project. Its successful products include WifiMCU, Doit Video Car, and Wifi sniffer, etc.
If you have any question, you can contact me via Email/QQ list below, Thanks:)
Email
: wangwei@doit.amQQ
: 5358739682016.4.7 Modified lbaselib.c
2016.4.19 Modified code structure
2016.5.11 Replace libc
2017.1.19 Update to the latest esp-idf
2018.1.5 Update for the latest esp-idf
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论