Professional Documents
Culture Documents
by
SATHYABAMA
INSTITUTE OF SCIENCE AND TECHNOLOGY
(DEEMED TO BE UNIVERSITY)
Accredited with Grade “A” by NAAC
JEPPIAAR NAGAR, RAJIV GANDHI SALAI, CHENNAI - 600 119
www.sathyabama.ac.in
BONAFIDE CERTIFICATE
ACKNOWLEDGEMENT
DATE:
PREFACE
With the on going INTENRET OF THINGS revolution where innovations are
taking place at the blink of an eye, it is impossible to keep the pace with the
emerging trends. In organization where Making Things Right in the first instance is
the driving motto, perfection and accuracy are inevitable.
Excellence is an attitude that the whole of the human race is born with. It is the
environment that makes sure that whether the result of this attitude is visible or
otherwise. A well planned, properly executed and evaluated industrial training
helps a lot in inculcating a professional attitude. It provides a linkage between the
student and industry to develop an awareness of industrial approach to problem
solving, based on a broad understanding of process and mode of operation of
organization.
During this period, the students get the real, first hand experience for working in the
actual environment. Most of the theoretical knowledge that has been gained during
the course of their studies is put to test here. Apart from this, the students get an
opportunity to learn the latest technology, which immensely helps them in building
their career.
I had the opportunity to have a real experience on many ventures, which enhanced
my sphere of knowledge to a great extent and all the credit goes to organization
which in true self made the embedded revolution happen.
INDEX
S.No. Contents
5. Introduction to Arduino
7. Arduino Features
8. Arduino IDE
A thing in the internet of things can be a person with a heart monitor implant, a farm
animal with a biochip transponder, an automobile that has built-in sensors to alert the
driver when tire pressure is low or any other natural or man-made object that can be
assigned an Internet Protocol (IP) address and is able to transfer data over a
network.
Increasingly, organizations in a variety of industries are using IoT to operate more
efficiently, better understand customers to deliver enhanced customer service,
improve decision-making and increase the value of the business.
The connectivity, networking and communication protocols used with these web-
enabled devices largely depend on the specific IoT applications deployed.
IoT can also make use of artificial intelligence (AI) and machine learning to aid in
making data collecting processes easier and more dynamic.
The internet of things helps people live and work smarter, as well as gain complete
control over their lives. In addition to offering smart devices to automate homes, IoT
is essential to business. IoT provides businesses with a real-time look into how their
systems really work, delivering insights into everything from the performance of
machines to supply chain and logistics operations.
IoT enables companies to automate processes and reduce labor costs. It also cuts
down on waste and improves service delivery, making it less expensive to
manufacture and deliver goods, as well as offering transparency into customer
transactions.
As such, IoT is one of the most important technologies of everyday life, and it will
continue to pick up steam as more businesses realize the potential of connected
devices to keep them competitive.
If there's a bug in the system, it's likely that every connected device will
become corrupted.
It simplify the process of creating any control system by providing the standard board
that can be programmed and connected to the system without the need to any
sophisticated PCB design and implementation.
It is an open source hardware, any one can get the details of its design and modify it
or make his own one himself.
Different Type of Arduino Boards
GND Ground.
– 1KBytes EEPROM
– 2KBytes Internal SRAM
– External and Internal Interrupt Sources – Six Sleep Modes: Idle, ADC
Noise Reduction, Power-save, Power-down, Standby, and Extended
Standby
Category
board
GND: Ground pins
Pins
the microcontroller
SPI Pins SD1, CMD, SD0, CLK NodeMCU has four pins available for SPI
communication.
UART Pins TXD0, RXD0, TXD2, RXD2 NodeMCU has two UART interfaces,
firmware/program.
pin is I2C.
NodeMCU is an open source LUA based firmware developed for ESP8266 wifi chip. By
exploring functionality with ESP8266 chip, NodeMCU firmware comes with ESP8266
Development board/kit i.e. NodeMCU Development board.
Since NodeMCU is open source platform, their hardware design is open for
edit/modify/build.
NodeMCU Dev Kit/board consist of ESP8266 wifi enabled chip. The ESP8266 is a
low-cost Wi-Fi chip developed by Espressif Systems with TCP/IP protocol. For more
information about ESP8266, you can refer ESP8266 WiFi Module.
There is Version2 (V2) available for NodeMCU Dev Kit i.e. NodeMCU Development
Board v1.0 (Version2), which usually comes in black colored PCB.
For more information about NodeMCU Boards available in market refer NodeMCU
Development Boards
NodeMCU Dev Kit has Arduino like Analog (i.e. A0) and Digital (D0-D8) pins on its
board.
Using such serial protocols we can connect it with serial devices like I2C enabled
LCD display, Magnetometer HMC5883, MPU-6050 Gyro meter + Accelerometer,
RTC chips, GPS modules, touch screen displays, SD cards etc.
NodeMCU Development board is featured with wifi capability, analog pin, digital
pins and serial communication protocols.
To get start with using NodeMCU for IoT applications first we need to know about
how to write/download NodeMCU firmware in NodeMCU Development Boards.
And before that where this NodeMCU firmware will get as per our requirement.
There is online NodeMCU custom builds available using which we can easily get
our custom NodeMCU firmware as per our requirement.
To know more about how to build custom NodeMCU firmware online and
download it refer Getting started with NodeMCU
After setting up ESP8266 with Node-MCU firmware, let’s see the IDE (Integrated
Development Environment) required for development of NodeMCU.
Lua scripts are generally used to code the NodeMCU. Lua is an open source,
lightweight, embeddable scripting language built on top of C programming
language.
For more information about how to write Lua script for NodeMCU refer Getting
started with NodeMCU using ESPlorerIDE NodeMCU with Arduino IDE
Here is another way of developing NodeMCU with a well-known IDE i.e. Arduino
IDE. We can also develop applications on NodeMCU using Arduino development
environment. This makes easy for Arduino developers than learning new language
and IDE for NodeMCU.
For more information about how to write Arduino sketch for NodeMCU refer
Getting started with NodeMCU using ArduinoIDE
We need to code in C\C++ programming language if we are using Arduino IDE for
developing NodeMCU applications and Lua language if we are using ESPlorer IDE.
Basically, NodeMCU is Lua Interpreter, so it can understand Lua script easily. When
we write Lua scripts for NodeMCU and send/upload it to NodeMCU, then they will
get executes sequentially. It will not build binary firmware file of code for
NodeMCU to write. It will send Lua script as it is to NodeMCU to get execute.
In Arduino IDE when we write and compile code, ESP8266 toolchain in background
creates binary firmware file of code we wrote. And when we upload it to
NodeMCU then it will flash all NodeMCU firmware with newly generated binary
firmware code. In fact, it writes the complete firmware.
That’s the reason why NodeMCU not accept further Lua scripts/code after it is
getting flashed by Arduino IDE. After getting flashed by Arduino sketch/code it will
be no more Lua interpreter and we got error if we try to upload Lua scripts. To
again start with Lua script, we need to flash it with NodeMCU firmware.
Since Arduino IDE compile and upload/writes complete firmware, it takes more
time than ESPlorer IDE.