NodeMCU

From Network Security Wiki
Jump to navigation Jump to search


Source: instructables.com

  • The term NodeMCU usually refers to the firmware, while the board is called Devkit.
  • NodeMCU Devkit 1.0 consists of an ESP-12E on a board, which facilitates its use.
  • The ESP-12E is a board created by AI-THINKER, which consists of an ESP8266EX inside the metal cover.
  • It also has a voltage regulator, a USB interface.
  • NodeMCU Internals:
NodeMCU Internals
  • ESP-12E:
ESP-12E
  • ESP8266EX:
ESP8266EX

Basics

  • Technical specifications:
CPU frequency:       80MHz, overclockable to 160MHz
Total RAM available: 96KB (part of it reserved for system)
BootROM:             64KB
Internal FlashROM:   None
External FlashROM:   code and data, via SPI Flash. Normal sizes 512KB-4MB.
GPIO:                16 + 1 (GPIOs are multiplexed with other functions, including external FlashROM, UART, deep sleep wake-up, etc.)
Programming:         using BootROM bootloader from UART. 
                     Due to external FlashROM and always-available BootROM bootloader, ESP8266 is not brickable.
  • The NodeMCU ESP8266 board has 30 pins connected to the development board.
  • Out of the 30 pins, 17 are GPIO pins.
  • These GPIO pins can be used as:
ADC Channel:            10-bit ADC (Analog to Digital Converter) channel
UART interface:         used to load code serially
PWM outputs:            for dimming LEDs or controlling motors
SPI and I2C interface:  to hook up all sorts of sensors and peripherals
I2S:                    to add sound to your project
  • These GPIO pins are multiplexed, meaning a single GPIO pin can act as PWM/UART/SPI.

Pinout

Nodemcu pinout
NodeMCU GPIOs


Pin Names on NodeMCU Development Kit ESP8266 Internal GPIO Pin number
D0 GPIO16
D1 GPIO5
D2 GPIO4
D3 GPIO0
D4 GPIO2
D5 GPIO14
D6 GPIO12
D7 GPIO13
D8 GPIO15
D9/RX GPIO3
D10/TX GPIO1
D11/SD2 GPIO9
D12/SD3 GPIO10



References





blog comments powered by Disqus