Hardware Description: 2.3.5 Node Mcu: Nodemcu Is An Open Source Iot Platform. It Includes Firmware Which Runs On The
Hardware Description: 2.3.5 Node Mcu: Nodemcu Is An Open Source Iot Platform. It Includes Firmware Which Runs On The
NodeMCU is an open source IoT platform. It includes firmware which runs on the
ESP8266Wi- 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 Espress-if Non- OS SDK for ESP8266. It uses
many open source projects, such as lua-cjson, and spiffs.
Introduction NodeMCU V3
Multiple GPIO pins on the board allow us to connect the board with other
peripherals and are capable of generating PWM, I2C, SPI, and UART serial
communications.
The interface of the module is mainly divided into two parts including both
Firmware and Hardware where former runs on the ESP8266 Wi-Fi SoC and
later is based on the ESP-12 module.
The firmware is based on Lua – A scripting language that is easy to learn, giving
a simple programming environment layered with a fast scripting language that
connects you with a well-known developer community.
And open source firmware gives you the flexibility to edit, modify and rebuilt
the existing module and keep changing the entire interface until you succeed
in optimizing the module as per your requirements.
USB to UART converter is added on the module that helps in converting
USB data to UART data which mainly understands the language of serial
communication.
Instead of the regular USB port, MicroUSB port is included in the module that
connects it with the computer for dual purposes: programming and powering up
the board.
The board incorporates status LED that blinks and turns off immediately,
giving you the current status of the module if it is running properly when
connected with the computer.
The ability of module to establish a flawless WiFi connection between two
channels makes it an ideal choice for incorporating it with other embedded
devices like Raspberry Pi.
NodeMCU V3 Pinout
NodeMCU V3 comes with a number of GPIO Pins. Following figure shows the
Pinout of the board.
There is a candid difference between Vin and VU where former is the
regulated voltage that may stand somewhere between 7 to 12 V while later is
the power voltage for USB that must be kept around 5 V.
Features
1. Open-source
2. Arduino-like hardware
3. Status LED
4. MicroUSB port
5. Reset/Flash buttons
6. Interactive and Programmable
7. Low cost
8. ESP8266 with inbuilt wifi
9. USB to UART converter
10.GPIO pins
11.Arduino-like hardware IO
12.Advanced API for hardware IO, which can dramatically reduce the
redundant work for configuring and manipulating hardware.
13.Code like arduino, but interactively in Lua script.
14.Nodejs style network API
15.Event-driven API for network applicaitons, which faciliates developers
writing code running on a 5mm*5mm sized MCU in Nodejs style.
16.Greatly speed up your IOT application developing process.
17.Lowest cost WI-FI
18.Less than $2 WI-FI MCU ESP8266 integrated and esay to
prototyping development kit.
19.We provide the best platform for IOT application development at the lowest
cost.
As mentioned above, a cable supporting micro USB port is used to connect the
board. As you connect the board with a computer, LED will flash. You may
need some drivers to be installed on your computer if it fails to detect the
NodeMCU board. You can download the driver from this page.
We can see from the pinout image above, there are five ground pins and three
3V3 pins on the board. The board can be powered up using the following three
ways.
USB Power. It proves to an ideal choice for loading programs unless the
project you aim to design requires separate interface i.e. disconnected from
the computer.
Provide 3.3V. This is another great option to power up the module. If you
have your own off-board regulator, you can generate an instant power source
for your development kit.
Power Vin. This is a voltage regulator that comes with the ability to support
up to 800 mA. It can handle somewhere between 7 to 12 V. You cannot
power the devices operating at 3.3 V, as this regulator unable to generate as
low as 3.3V.
Programming
Step 1: Installing the Firmware
In NodeMCU Boards the first thing you need is to install the Firmware to
the board the following method works for all NodeMCU Boards
1. Open the NodeMCU flasher master folder than open the win32/win64
folder as your computer. now open the folder Release than double click
ESP8266Flasher.
4. click on the small gear and open up the firmware which you have downloaded
link (http://arduino.esp8266.com/stable/package_esp8266com_index.json)
and click OK
6. In the search field type esp8266 click the esp8266 by ESP8266 Community
Step 3: Code...
Change the Wifi name and password from the following code.
of the code.
Power up the board and open the serial monitor from arduino IDE
A webpage will open you can change the status of LED by turning it ON or
OFF.