100% found this document useful (3 votes)
235 views9 pages

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 development kit based on the ESP8266 WiFi SoC. It includes an ESP-12 module and runs on Lua firmware. NodeMCU provides an easy way to connect sensors to controllers wirelessly via WiFi. It has multiple GPIO pins to interface with peripherals using protocols like I2C, SPI and UART serial communication. Programing NodeMCU involves installing its firmware, setting up the Arduino IDE to support ESP8266, and writing code like blinking an LED using a web server interface.

Uploaded by

Praveen Krishna
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
100% found this document useful (3 votes)
235 views9 pages

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 development kit based on the ESP8266 WiFi SoC. It includes an ESP-12 module and runs on Lua firmware. NodeMCU provides an easy way to connect sensors to controllers wirelessly via WiFi. It has multiple GPIO pins to interface with peripherals using protocols like I2C, SPI and UART serial communication. Programing NodeMCU involves installing its firmware, setting up the Arduino IDE to support ESP8266, and writing code like blinking an LED using a web server interface.

Uploaded by

Praveen Krishna
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 9

HARDWARE DESCRIPTION

2.3.5 Node MCU:

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.

Figure 6: NodeMCU PINOUT

Node MCU provides a way to connect different sensors to their controllers


wirelessly via wifi. Since, it is an improved version of the ESP8266 it has better
and easier programming, with better voltage stability and more reliability.
Figure 7: Node MCU

Introduction NodeMCU V3

NodeMCU V3 is an open-source firmware and development kit that plays a vital


role in designing an IoT product using a few script lines.

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.

Note: We use Arduino IDE software for programming this module. It is


important to note that the pin configuration appearing on the board is different
from the configuration we use to program the board on the software i.e. when
we write code for targeting pin 16 on the Arduino IDE, it will actually help is
laying out the communication with the D0 pin on the module.
Following figure the shows the pin configuration to use in Arduino IDE.

How to Power NodeMCU V3

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.

2. Select the COM Port.

3. Goto config tab

4. click on the small gear and open up the firmware which you have downloaded

5. go to the advenced tab and select the desired Baudrate

6. Goto the Operation tab and click on Flash Button.

Add TipAsk QuestionCommentDownload

Step 2: Preparing the Arduino IDE


After Installing the firmware you are ready to do the programming with the
ESP8266

1. Install the Arduino IDE

2. open the Arduino IDE from the desktop icon

3. Click on File tab and than open preferences

4. In the additional Boards Manager URLs add the following

link (http://arduino.esp8266.com/stable/package_esp8266com_index.json)

and click OK

5. Goto Tools>Borads>Boards Manager

6. In the search field type esp8266 click the esp8266 by ESP8266 Community

option and click Install

Step 3: Code...

Now we can do whatever you want with your NodeMCU


board Following is an example for led blinking with NodeMCU board
via webserver

 In arduino IDE goto tools>Boards>select NODEMCU 1.0 (ESP - 12E


Module)

 again goto tools and select port.

 Change the Wifi name and password from the following code.

 Now click on Upload button to upload the following code.


 Connect the led's positive leg on D9 pin of board and negative to the ground

of the code.

 Power up the board and open the serial monitor from arduino IDE

 after connecting to the wifi it will show you the IP address.

 type that IP address on the web browser(Edge, Chrome, Firefox etc..)

 A webpage will open you can change the status of LED by turning it ON or
OFF.

You might also like