===== ESP32 DoIt Dev Board ===== I bought this board at : * https://www.banggood.com/ESP32-Development-Board-WiFiBluetooth-Ultra-Low-Power-Consumption-Dual-Cores-ESP-32-ESP-32S-Board-p-1109512.html?vip=2072514&p=P514146481305201609J#&cur_warehouse=CN It was designed by : * http://en.doit.am/# DesigN And minimal documentation that worth reading: * https://view.officeapps.live.com/op/view.aspx?src=https%3A%2F%2Fgithub.com%2FNicholas3388%2FLuaNode%2Fblob%2Fmaster%2FLuaNode_Esp32%2FLuaNode32_document.docx%3Fraw%3Dtrue * https://cdn.hackaday.io/files/18666798606144/LuaNode.pdf * https://idyl.io/2017/09/15/doit-esp32-development-board-review/# * https://hackaday.com/2016/10/04/how-to-get-started-with-the-esp32/# ===== 1st BOOT ===== lsusb Bus 002 Device 006: ID 10c4:ea60 Cygnal Integrated Products, Inc. CP210x UART Bridge / myAVR mySmartUSB light sudo screen /dev/ttyUSB0 115200 ets Jun 8 2016 00:22:57 rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT) configsip: 0, SPIWP:0x00 clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00 mode:DIO, clock div:2 load:0x3fff0008,len:8 load:0x3fff0010,len:2488 load:0x40078000,len:7128 load:0x40080000,len:252 entry 0x40080034 II (1100) cpu_start: Pro cpu up. I (1101) cpu_start: Single core mode I (1102) heap_alloc_caps: Initializing. RAM available for dynamic allocation: I (1115) heap_alloc_caps: At 3FFAE2A0 len 00001D60 (7 KiB): DRAM I (1135) heap_alloc_caps: At 3FFB8160 len 00027EA0 (159 KiB): DRAM I (1156) heap_alloc_caps: At 3FFE0440 len 00003BC0 (14 KiB): D/IRAM I (1178) heap_alloc_caps: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM I (1199) heap_alloc_caps: At 40093EA4 len 0000C15C (48 KiB): IRAM I (1220) cpu_start: Pro cpu start user code I (1279) cpu_start: Starting scheduler on PRO CPU. Mounting flash filesystem... mount res: 0, 0 ======================================= LuaNode: https://github.com/Nicholas3388/LuaNode Version: 1.2.2 ======================================= load lib: base load lib: package load lib: table load lib: string load lib: gpio load lib: pwm load lib: node load lib: wifi I (1590) wifi: wifi firmware version: 224c254 I (1594) wifi: config NVS flash: enabled I (1598) wifi: config nano formating: disabled I (1606) wifi: Init dynamic tx buffer num: 32 I (1606) wifi: Init dynamic rx buffer num: 64 I (1610) wifi: wifi driver task: 3ffc0668, prio:23, stack:3584 I (1616) wifi: Init static rx buffer num: 10 I (1620) wifi: Init dynamic rx buffer num: 0 I (1624) wifi: Init rx ampdu len mblock:7 I (1627) wifi: Init lldesc rx ampdu entry mblock:4 I (1632) wifi: wifi power manager task: 0x3ffc5a20 prio: 21 stack: 2560 load lib: file load lib: tmr load lib: i2c load lib: uart load lib: utils load lib: lpeg load lib: net load lib: thread load lib: mqtt load lib: nvs other libs: lua: cannot open init.lua ===== LUA Shell ===== We have a LuA shell > node.restart(); (... will reboot) > node.heap() 230540 > node.flashsize() 4MB > node.chipid() 0 > file.fsinfo(); total: 420425, used:0 > file.list() > gpio.mode(2, gpio.OUTPUT) I (372312) gpio: GPIO[2]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0 > gpio.write(2,1); tmr.delay(10); gpio.write(2,0); # turn on blue lest on above usb on right, sleep 10 and off * http://tylerneylon.com/a/learn-lua/ Learn how to upload to device: * https://github.com/kmpm/nodemcu-uploader/issues/72 * https://github.com/4refr0nt/luatool/issues * https://github.com/marcoskirsch/nodemcu-httpserver# for HttP ./luatool.py --port /dev/ttyUSB0 -b 115200 --src init.lua --dest init.lua -l ===== MORE ===== * https://github.com/Nicholas3388/LuaNode# * https://github.com/Nicholas3388/LuaNode/issues/20 BuilD * http://esp-idf.readthedocs.io/en/latest/get-started/index.html MisC: * https://github.com/whitecatboard/Lua-RTOS-ESP32 * https://github.com/SmartArduino/ESP/blob/master/SchematicsforESP32.pdf * https://github.com/me-no-dev/ESPAsyncWebServer * http://www.lucadentella.it/en/2017/04/29/esp32-15-mdns/# MDnS * https://www.npmjs.com/package/nodemcu-tool# UpLoad ===== MISC ===== * https://www.slideshare.net/iburgueno/luanode-lua-workshop2013# * https://github.com/abadc0de/moonwalk# SwaggeR * https://ht-deko.com/arduino/esp-wroom-32.html# ===== MORE ===== @TaG: EsP {{https://ht-deko.com/arduino/pic/esp32_devkitc_pinout_01s.png}}