Skip to content

Latest commit

 

History

History
110 lines (80 loc) · 10.7 KB

nodemcu.md

File metadata and controls

110 lines (80 loc) · 10.7 KB

NodeMCU

  • NodeMCU - Wikipedia

    • NodeMCU is an open source IoT platform. It includes firmware which runs on the ESP8266 Wi-Fi SoC from Espressif Systems, and hardware which is based on the ESP-12 module.
    • The term "NodeMCU" BY DEFAULT refers to the firmware rather than the development kits. The firmware uses the Lua scripting language. It is based on the eLua project, and built on the Espressif Non-OS SDK for ESP8266. 沒有特別講,NodeMCU 指的是 firmware 而非 hardware (development kit),不過實際上好像 NodeMCU firmware 沒那麼流行,講 NodeMCU 時通常指的是 NodeMCU DEVKIT 硬體本身?
    • NodeMCU was created shortly after the ESP8266 came out. ... NodeMCU started on 13 Oct 2014, when Hong committed the first file of nodemcu-firmware to GitHub. In summer 2015 the creators ABANDONED the firmware project and a group of independent contributors took over. By summer 2016 the NodeMCU included more than 40 different modules. Due to resource constraints users need to select the modules relevant for their project and build a firmware tailored to their needs. => 衍生了 NodeMCU Custom Builds 的服務。
  • NodeMcu -- An open-source firmware based on ESP8266 wifi-soc.

    • An open-source firmware and development kit that helps you to prototype your IOT product within a few Lua script lines 其中 development kit 指的是硬體板子;搭配 Lua-based firmware 可以直接用 Lua 寫程式;跟 MicroPython 可以用 Python 寫程式的定位很像。
    • The Development Kit based on ESP8266, integates GPIO, PWM, IIC, 1-Wire?? and ADC all in one board.
    • USB-TTL included, plug&play. 10 GPIO, every GPIO can be PWM, I2C, 1-wire. FCC CERTIFIED WI-FI module, PCB antenna 其中 Wi-Fi 跟天線都來自 ESP8266,整合 USB-TTL 才是這板子方便的地方。
  • nodemcu/nodemcu-firmware: lua based INTERACTIVE firmware for mcu like esp8266 #ril

    • NodeMCU is an open source Lua based firmware for the ESP8266 WiFi SOC from Espressif and uses an on-module flash-based SPIFFS?? file system. NodeMCU is implemented in C and is layered on the Espressif NON-OS SDK??.
    • The firmware was initially developed as is a companion project to the popular ESP8266-based NodeMCU development modules, but the project is now community-supported, and the firmware can now be run on any ESP module. 跟 MicroPython 的狀況很像,有自己的板子,但也支援 ESP8266 其他板子...
  • Getting Started with ESP8266 Development on the Mac | lost+found (2016-07) Hardware 提到 There are a lot of development boards out there that intend to be mostly PLUG AND PLAY, and I am interested in playing with some of them. See, for example, the NodeMCU or the WeMOS D1. 內建 USB to UART 比較容易上手

  • Internet of Home Things » 4 reasons I abandoned NodeMCU/Lua for ESP8266 #ril

新手上路 ?? {: #getting-started }

Lua, Programming ??

V3 ??

GPIO ??

  • gpio - NodeMCU Documentation #ril

    • All access is based on the I/O index number on the NodeMCU dev kits, not the internal GPIO pin. For example, the D0 pin on the dev kit is mapped to the internal GPIO pin 16. If not using a NodeMCU dev kit, please refer to the below GPIO pin maps for the index↔gpio mapping. 如果用 NodeMCU 官方的 firmware 寫程式,要用 I/O index,否則要用 GPIO pin;問題是 I/O index 跟 NodeMCU 外觀上沒有 D9 ~ D12??

      IO Index | ESP8266 Pin
      00         GPIO16
      01         GPIO05
      02         GPIO04
      03         GPIO00
      04         GPIO02
      05         GPIO14
      06         GPIO12
      07         GPIO13
      08         GPIO15
      09         GPIO03
      10         GPIO01
      11         GPIO09
      12         GPIO10
      
  • MicroPython: GPIO Pins · lvidarte/esp8266 Wiki - ESP8266 NodeMCU Workshop 這張圖清楚很多!!

    • Not all pins are available to use, in most cases only pins 0, 2, 4, 5, 12, 13, 14, 15, and 16 can be used. 不能用的 1, 3 分別對應 TX 與 DX,而 6 ~ 11 確實圖上面找不到 GPIO 6 ~ 11,為什麼會跳號??

Flashing, Firmware ??

V3 與麵包板 {: #v3-breadboard }

  • 第一次購買 NodeMCU 就上手 - 妖恫程式部落 (2018-09-05) V3 板子有尺寸過大的問題,剛好插進最邊邊的插孔,無法連接其他元件,而 V2 則沒有這個問題;作者推薦 V2,因為 V3 改良的地方不明確,又有尺寸過大的問題。
  • NodeMCU Breadboard Tweak: 7 Steps (with Pictures) 把麵包板鋸開,量好距離再重組起來。
  • lucstechblog: NodeMCU breadboard aid (2015-09-18) 用洞洞板 + 平面母座 x 4 排,將 NodeMCU 的接腳引出來,這方法比鋸開麵包板好一點。
  • Comparison of ESP8266 NodeMCU development boards • my2cents (2015-09-28)
    • William Moore: which is just as wide as the LoLin board and is considered by most people as “breadboard unfriendly” because there is no free (available) pin hole in a MB-102 solderless breadboard when you mount these boards
    • Lotus49: The NodeMCU V2 seems to be the best value (I paid less than £3 including P&P) and has all the features I want. The only drawback is that it’s pretty wide so it spans the breadboard completely. That’s not a disaster but it’s a bit annoying having to RUN JUMPERS UNDERNEATH THE BOARD to connect it to anything. 在板子下面走跳線出來好像也是一招。

參考資料 {: #reference }

文件:

相關:

  • ESP8266 - NodeMCU 基於 ESP-12
  • Lua - 官方 firmware 提供 Lua 執行環境及不少 module