Professional Documents
Culture Documents
Certificate: Secab Institute of Engineering and Technology Vijayapur
Certificate: Secab Institute of Engineering and Technology Vijayapur
VIJAYAPUR
DEPARTMENT OF ELECTRONICS & COMMUNICATION ENGINEERING
(Accredited By NBA, New Delhi)
Certificate
This is to Certify that the Internship Work entitled “IOT ” is presented by Miss. SYEDA
SHAHISTA bearing USN:2SA17EC030, a bonafied student of SECAB Institute of Engineering and
Technology, Bijapur-586101, in partial fulfillment for the award of Bachelor of Engineering in
“Electronics and Communication Engineering” of the Visvesvaraya Technological University,
Jnana Sangama, Belgaum-590018, during the year 2020-2021. It is certified that all
corrections/suggestions indicated for Internal Assessment have been incorporated in the report,
deposited in the departmental library. The Internship report has been approved as it satisfies the
academic requirements in respect of internship work prescribed for Bachelor of Engineering Degree.
Signature of HOD
.
Visvesvaraya Technological University,Belagavi-
An Internship Report
Submitted By
.
Internship Coordinator HOD
ACKNOWLEDGEMENT
This internship program involved the collection and analysis of information from a
wide variety of sources and support of many people.
I would like to place on record our deep sense of gratitude to our internship
coordinator Prof. Mohammad Ziaullah, Department of Electronics and Communication
Engineering, SECAB .I.E.T, for his valuable guidance, and useful suggestions in this
internship.
Finally, I would like to thank our Parents for supporting us in hundred little ways
that has mean a lot to me.
Equipped with the extremely rich resources of an outstanding student body and faculty
strong partnerships with business, industry, and government and support from alumni and
friends, VTU is designing a future of global preeminence, leadership, and service.
VTU is the first university in the country to adopt Innovative steps in the examination
reforms by adopting Digital Evaluation System in the year 2011-12 followed by online
services like delivery of question papers to affiliated colleges (Question Paper Delivery
System-QPDS), result announcement, photocopy availability, PG courses thesis valuation,
Ph.D. thesis valuation and Examination Results announced on Mobile Phone through SMS.
VTU has established Centre of Excellence at various places in Karnataka in different
scopes to bring a change in the technology and society.
Vision:
Mission:
Nex-G Automation LLP is a product design Engineering and manufacturing company which is
headquartered in Hubballi, Karnataka, India. For over a decade, Nex-G has been supporting customers
in Electronic Automations and software solutions with its strong Design, Development & Manufacturing
capabilities.
Nex-G has evolved as a company with perfect combination of experience and skilled technical
professionals in Hardware and software design. Our team's expertise in various cutting edge technologies
and knowledge of the market helps in effective product realization.
We at Nex-G Automation provide product engineering, product re-engineering, embedded system design,
IoT to enterprise applications such as client-server, database technologies, CRM, RPA, etc.
Nex-G Automation LLP offers solutions right from concept planning, designing & prototyping all
the way up to completely managing your small & large volume production.
We believe in working closely with our clients to ensure that the final design is of the highest quality by
providing a unique Agile Development model that allows our customer's product feature flexibility while
balancing risks. We help our customers to realize their ideas to products. Our customer centric approach,
dedication, commitment to quality and innovation assures our clients an ability to meet their market
requirements on time in a highly cost effective manner. We can handle both small and big scald projects;
it may be for big industries or for small businesses & individuals. As a part of product engineering
life-cycle we focus substantially on quality processes, their automation and tracking.
INDEX
01 Introduction 01
1.1 Basics of electronics 01
02 Basics of C-Language 06
2.1 Loops 06
2.2 Array 09
2.3 Functions 11
2.4 C-Programming 12
03 Embedded Microcontroller 13
3.1 Introduction to 14
Microcontroller
3.2 Liquid Crystal liquid 16
04 Introduction to Arduino 20
4.1 RS232 21
05 Internet of Things 24
06 Mini Project 29
07 Conclusion 38
List of figures
Figure No. Contents Page No.
1.1 LED 06
4.2 RS232 21
6.2 Result 26
Internship Report on Arduino & IOT
CHAPTER 1
INTRODUCTION
LOGIC GATES:
Logic gate is a basic building block of digital circuit, which is used to implement a
Boolean function. There are seven logic gates NOT, AND, OR, NAND, NOR,EX-OR
,EX-NOR⃰
1) AND gate: The output of AND gate is high whenever both the inputs are high.
2) OR gate: The output of OR gate is high whenever anyone of the input is high.
Dept.ECE.SECAB.I.E.T,Vijayapur
Internship Report on Arduino & IOT
3) NOT gate: Whenever the input is low then the output is high.
4) NAND gate :If any input is low then the output is high
5) NOR gate: When both the inputs are low then the output is high.
Dept.ECE.SECAB.I.E.T,Vijayapur
Internship Report on Arduino & IOT
6) EX-OR gate: The output is high when the inputs are not equal.
7) EX-NOR gate: The output is high when the inputs are equal.
Dept.ECE.SECAB.I.E.T,Vijayapur
Internship Report on Arduino & IOT
Resistor: Resistor is a passive two terminal electrical component that implements electrical
resistance as a circuit element in electronic circuits, resistors are used to reduce current flow ,to
divide voltages.
Bands of color are used to represent the resistance value.
Capacitor: capacitors are passive circuit elements that can be used to store energy in the form of
an electric field. In the simplest case, a capacitor is a set of parallel metal plates separated by a
Dept.ECE.SECAB.I.E.T,Vijayapur
Internship Report on Arduino & IOT
Transistor: Transistors are current controlled solid-state devices that conduct current in
proportion to an input current. The symbol for a transistor is shown in figure 1. The transistor on
the left is called an "NPN" transistor and the transistor on the right is called a PNP transistor.
Application:
Transistor used for amplification and switching.
It is to regulate the supply current or voltage.
.
Diode: Diode is semiconductor device with two terminal, which allows the flow of current in
One direction only.
Dept.ECE.SECAB.I.E.T,Vijayapur
Internship Report on Arduino & IOT
Application:
Diode is used to rectifying a voltage.
Diode can be used as voltage regulator, switches, signal modulator, oscillator.
Electrons in the semiconductor recombine with electron holes, releasing energy in the
form of photons. This effect is called electroluminescence
Fig 1.1:LED
Application:
TV Backlighting
Smart phone backlighting
LED displays
Automotive lighting
Dimming of lighting
Dept.ECE.SECAB.I.E.T,Vijayapur
Internship Report on Arduino & IOT
CHAPTER 2
Basics of C language
2.2 Loops:
1) For Loop: If it is true, the body of the loop is executed. If it is false, the body of
the loop does not execute and the flow of control jumps to the next statement just after
the 'for' loop..If it is true, the loop executes and the process repeats itself
Statement;
2) While Loop: a while loop is a control flow statement that allows code to be
executed repeatedly based on a given Boolean condition .The while loop can be thought
of as a repeating if statement.
Statement 1;
Statement 2;
Statement n;
}
Dept.ECE.SECAB.I.E.T,Vijayapur
Internship Report on Arduino & IOT
3) if statement: If the Boolean expression evaluates to true, then the block of code
inside the 'if' statement will be executed. If the Boolean expression evaluates to false,
then the first set of code after the end of the 'if' statement (after the closing curly brace)
will be executed.
Syntax: if (condition)
Statement 1;
else
Statement 2;
Arithmetic operations:
Dept.ECE.SECAB.I.E.T,Vijayapur
Internship Report on Arduino & IOT
Relative Operators:
Operator Description
= The value of the attribute must be equal to the value of the constant.
!= The value of the attribute must not be equal to the value of the constant; however,
the attribute must exist.
< The value of the attribute must be less than the value of the constant.
<= The value of the attribute must be less than or equal to the value of the constant.
> The value of the attribute must be greater than the value of the constant.
>= The value of the attribute must be greater than or equal to the value of the constant.
2.2 Array: Arrays a kind of data structure that can store a fixed-size sequential collection of
elements of the same type. An array is used to store a collection of data.
This is called a single-dimensional array. The arraySize must be an integer constant greater than
Dept.ECE.SECAB.I.E.T,Vijayapur
Internship Report on Arduino & IOT
Pointers:
Pointers in C language is a variable that stores/points the address of another variable. A
Pointer in C is used to allocate memory dynamically i.e. at run time. The pointer variable
might be belonging to any of the data type such as int, float, char, double, short etc.
Pointer Syntax: data_ type *var_name; Example : int *p; char *p;
Where, * is used to denote that “p” is pointer variable and not a normal variable
Storage classes:
Storage classes in C decides the part of storage to allocate memory for a variable, it also
1. Auto: This is the default storage class for all the variables declared inside a function or a
block. Hence, the keyword auto is rarely used while writing programs in C language. Auto
variables can be only accessed within the block/function they have been declared and not outside
them.
2. Extern: Extern storage class simply tells us that the variable is defined elsewhere and
not within the same block where it is used. Basically, the value is assigned to it in a
different block and this can be overwritten /changed in a different block as well.
3 .static : which are popularly used while writing program: This storage class is used to declare
4. Register: This storage class declares register variables which have the same functionality as
that of the auto variables.
Dept.ECE.SECAB.I.E.T,Vijayapur
Internship Report on Arduino & IOT
2.3 Functions:
A function is a group of statements that together perform a task. Every C program has at
least one function, which is main (), and all the most trivial programs can define additional
functions.
2) Pass by value
Dept.ECE.SECAB.I.E.T,Vijayapur
Internship Report on Arduino & IOT
2.4 . C Programming:
Dept.ECE.SECAB.I.E.T,Vijayapur
Internship Report on Arduino & IOT
CHAPTER 3
Embedded Microcontroller
Examples:
Advantages:
Disadvantages:
Difficult to upgrade.
If any problem occurs then you need to reset settings.
Nearly not scalable.
Hardware is limited
Troubleshooting is difficult.
Difficult to transfer data from one system to other.
Applications:
The applications of embedded systems include home appliances, office automation, security,
telecommunication, instrumentation, entertainment, aerospace, banking and finance, automobiles
personal and in different embedded systems projects .
Dept.ECE.SECAB.I.E.T,Vijayapur
Internship Report on Arduino & IOT
In the following diagram, the system bus connects all the support devices to the CPU. The
system bus consists of an 8-bit data bus, a 16-bit address bus and bus control signals. All other
devices like program memory, ports, data memory, serial interface, interrupt control, timers, and
the CPU are all interfaced together through the system bus.
Dept.ECE.SECAB.I.E.T,Vijayapur
Internship Report on Arduino & IOT
Timer Mode Control (TMOD): TMOD is an 8-bit register used for selecting timer or counter
and mode of timers. Lower 4-bits are used for control operation of timer 0 or counter0, and
remaining 4-bits are used for control operation of timer1 or counter1.This register is present in
TCON (Timer Control register): TCON is an 8-bit register. Its bits are used for generating
interrupts internal or external. The most important bits of the timer TR and TF are also in it. TR
(timer run) and TF (timer overflow) bits which we use in almost all over timer applications are in
it.
Types of interrupts
a) Maskable
b) Non maskable
Dept.ECE.SECAB.I.E.T,Vijayapur
Internship Report on Arduino & IOT
2) Non Maskable interrupt: interrupt that cannot be disabled or ignored by the instructions
of CPU are called as Non maskable interrupt.
LCD is a combination of two state of matter, the solid and the liquid.
LCD uses a liquid crystal to produce a visible image.
LCD‟s are super-thin technology that are generally used in laptop ,computer screen,
TV‟S ,cell phones and portable video games.
Pin Configuration:
2) Vdd (+5 Volt): Powers the LCD with +5V (4.7V – 5.3V)
3) VE (Contrast V): Decides the contrast level of display, Grounded to get maximum contrast.
Dept.ECE.SECAB.I.E.T,Vijayapur
Internship Report on Arduino & IOT
5) Read/Write: Used to read or write data. Normally grounded to write data to LCD
6) Enable: Connected to Microcontroller Pin and toggled between 1 and 0 for data
acknowledgement
7) Data Pin 0
8) Data Pin 1: Data pins 0 to 7 forms a 8-bit data line. They can be connected to Microcontroller
to send 8-bit data.
9) Data Pin 2: These LCD‟s can also operate on 4-bit mode in such case Data pin 4,5,6 and 7 will
be left free.
void setup () {
void loop () {
Lcd.noBlin ( );
Delay (3000);
lcd.blink ();
delay (3000);
Dept.ECE.SECAB.I.E.T,Vijayapur
Internship Report on Arduino & IOT
CHAPTER 4
INTRODUCTION TO ARDUINO
Arduino Uno is a microcontroller board developed by Arduino.cc which is an open-
source electronics platform mainly based on AVR microcontroller Atmega328.Arduino boards
are able to read inputs - light on a sensor, a finger on a button, or a Twitter message - and turn it
into an output - activating a motor, turning on an LED, publishing something online. You can tell
your board what to do by sending a set of instructions to the microcontroller on the board. It is
like the brain of a project.
Arduino Uno is a very valuable addition in the electronics that consists of USB interface,
14 digital I/O pins, 6 analog pins, and Atmega328 microcontroller. It also supports serial
communication using Tx and Rx pins. Arduino boards are generally based on microcontrollers
from Atmel Corporation like 8, 16 or 32 bit AVR architecture based.
Dept.ECE.SECAB.I.E.T,Vijayapur
Internship Report on Arduino & IOT
4.2 RS 232: which is a standard communication protocol mainly used for serial
communication between two devices. It was first introduced by EIA (Electronic Industries
Association) in 1960 with the aim to provide a pathway for connecting one device with other
Fig 4.2:RS232
Arduino programs
1) : Code for LED BLINKING
int ledPin=11;
void setup ( ) {
void loop ( ) {
Dept.ECE.SECAB.I.E.T,Vijayapur
Internship Report on Arduino & IOT
delay (1000);
delay (1000);
#include <liquidCrystal.h>
void setup()
lcd. Clear ( );
void loop ( )
delay (3000);
delay (4000);
Dept.ECE.SECAB.I.E.T,Vijayapur
Internship Report on Arduino & IOT
CHAPTER 5
Internet Of Things
Internet of Things or IoT is a global network of physical devices connected to the
Internet. These devices are equipped with sensors and other information transfer mechanisms.
The devices are usually combined by means of connection to a control and/or processing
units. Internet of Things theory states that inanimate equipment will be able to speak.
Dept.ECE.SECAB.I.E.T,Vijayapur
Internship Report on Arduino & IOT
CHAPTER 6
MINI PROJECT
Materials required:
1) Arduino Uno
2) 4*3 keypad
3) LCD Display
4) LED
Dept.ECE.SECAB.I.E.T,Vijayapur
Internship Report on Arduino & IOT
The concept of working of a line follower robot is based on the phenomenon of light. We know that
white colour reflects almost all of the light that falls on it, whereas black colour absorbs most of the
light. In case of a line follower robot we use IR transmitters and receivers also called photodiodes. They
are used for sending and receiving light. IR transmits infrared lights. When infrared rays falls on white
surface, it’s reflected back and catched by photodiodes which generates some voltage changes. When IR
light falls on a black surface, light is absorb by the black surface and no rays are reflected back, thus
photo diode does not receive any light or rays.
Code:
#include<SoftwareSerial.h>
int L1 = 8;
char data;
String Rx = "";
void setup() {
Serial.begin(9600);
Serial.println("SERIAL-1");
Dept.ECE.SECAB.I.E.T,Vijayapur
Internship Report on Arduino & IOT
mySerial.begin(9600);
pinMode(L1, OUTPUT);
pinMode(L2, OUTPUT);
pinMode(L3, OUTPUT);
pinMode(L4, OUTPUT);
digitalWrite(L1, LOW);
digitalWrite(L2, LOW);
digitalWrite(L3, LOW);
digitalWrite(L4, LOW);
delay(1000);
void loop() {
if (mySerial.available() > 0)
data = mySerial.read();
Rx += data
delay(1);
Serial.println(Var);
Dept.ECE.SECAB.I.E.T,Vijayapur
Internship Report on Arduino & IOT
if (-1 != Rx.indexOf("L1ON"))
digitalWrite(L1, HIGH);
Rx = "";
if (-1 != Rx.indexOf("L1OFF"))
digitalWrite(L1, LOW);
Rx = "";
if (-1 != Rx.indexOf("L2ON"))
digitalWrite(L2, HIGH);
Rx = "";
if (-1 != Rx.indexOf("L2OFF"))
digitalWrite(L2, LOW);
Rx = "";
if (-1 != Rx.indexOf("L3ON"))
Dept.ECE.SECAB.I.E.T,Vijayapur
Internship Report on Arduino & IOT
digitalWrite(L3, HIGH);
Rx = "";
if (-1 != Rx.indexOf("L3OFF"))
digitalWrite(L3, LOW);
Rx = "";
if (-1 != Rx.indexOf("L4ON"))
digitalWrite(L4, HIGH);
Rx = "";
if (-1 != Rx.indexOf("L4OFF"))
digitalWrite(L4, LOW);
Rx = "";
Dept.ECE.SECAB.I.E.T,Vijayapur
Internship Report on Arduino & IOT
RESULT:
Dept.ECE.SECAB.I.E.T,Vijayapur
Internship Report on Arduino & IOT
CHAPTER 7
CONCLUSION
Dept.ECE.SECAB.I.E.T,Vijayapur