Download as pdf or txt
Download as pdf or txt
You are on page 1of 41

SECAB INSTITUTE OF ENGINEERING AND TECHNOLOGY

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

Dr. Noorullah Shariff

.
Visvesvaraya Technological University,Belagavi-

SECAB INSTITUTE OF ENGINEERING AND TECHNOLOGY


VIJAYAPUR
DEPARTMENT OF ELECTRONICS & COMMUNICATION ENGINEERING
(Accredited By NBA, New Delhi)

An Internship Report

“An Application Development Using Arduino and IOT”

Submitted By

SYEDA SHAHISTA USN:2SA17EC030

Internship Carried Out At

NEX-G Automation ,Hubli

.
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 wish to place our deepest gratitude to our beloved principal Dr.


Sayed Zakir Ali, SECAB Institute of Engineering and Technology Vijayapur, for all
infrastructure and facilities provided during my study in this institution.

I sincerely thank Dr. Noorullah Shariff, Head, Department of Electronics and


Communication Engineering, SECAB .I.E.T, Vijayapur for his valuable suggestions and
Support for completion of our internship.

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.

I express our sincere gratitude to the Teaching and Non-Teaching staff of


Electronics and Communication Engineering department and all our friends and classmates
who helped us for the successful completion of the work.

Finally, I would like to thank our Parents for supporting us in hundred little ways
that has mean a lot to me.

Miss. SYEDA SHAHISTA


(2SA17EC030)
ABOUT UNIVERSITY

Visvesvaraya Technological University (VTU) is one of the largest Technological


Universities in India with 16 years of Tradition of excellence in Engineering & Technical
Education, Research and Innovations. It came into existence in the year 1998 to cater the
needs of Indian industries for trained technical manpower with practical experience and
sound theoretical knowledge. University has very successfully achieved the tremendous
task of bringing various colleges affiliated earlier to different Universities, with different
syllabi, different procedures and different traditions under one umbrella. The university
having 218 affiliated colleges, 1 constituent college and 17 Autonomous colleges with
undergraduate courses in 35 disciplines, PG program in 94 disciplines and Ph.D & M.sc(
Engg.) with research programs in 592 departments, over4 lakhs Engineering Students study
in the various institutes affiliated to the University.

The University has 13 Quality Improvement Programme (QIP) centers in various


affiliated colleges and 16 extension centers for offering PG programs. The University has
revised the syllabus for UG and PG from the academic year 2014-15.It has four regional
centers across the State of Karnataka in Belagavi,Bengaluru, Kalaburagi and Mysuru
respectively. University is comprised of a multi-disciplinary and multi-level institution
offering wide ranging programmes in engineering, technology and Management. The
University is making steady progress in developing and providing best technical
environment for education and will continue to serve the nation in coming years.

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.

1. VTU Bio-Fuel Information and Demonstration center at Belagavi.


2. VTU center for Nanotechnology at Bengaluru
3. VTU National Academy for Skill Development at Dandeli in Uttar Kannada District
4. Parisar Chair at Belagavi
5. VTU Innovation Clubs at VTU and in Affiliated Engineering Colleges.
6. VTU Institute of Advanced Technologies at Muddenahalli
7. E-Learning Center at Mysuru, and
8. VTU Bosch Center of Competence at
ABOUT THE COLLEGE

SECAB Institute of Engineering and Technology (SIET) is the


brainchild of the visionary and founder of the Institute Sri S.A
Punekar. It was established in 2002 and then onwards its fame and
name ameliorated to multitudes, making it a prestigious engineering
college affiliated to Visvesvaraya Technological University (VTU)
and approved by AICTE. Over the years, SIET evolved and achieved
recognition as a notable School of Engineering. The competent and
committed faculty, high-quality infrastructure, latest teaching aids
are infused together to meet International Standards. The smart
classrooms and modern infrastructure provide an appealing
ambience for academics with no compromise on the facilities.
ABOUT THE Department

Department of Electronics & Communication Engineering of


S.I.E.T was established in the year 2002 with an intake of 60.

Department of Electronics and Communication Engineering strives


for increasing the knowledge, enhancing the critical thinking, ability
to change information into knowledge and power of analyzing the
things technically of each and every student in the ever changing
society.We also intend to impart knowledge through a closed knit
family of highly competent faculty. Our Laboratories have been very
well established not only to cover complete syllabus but to motivate
students to learn beyond the syllabus which definitely develops
complete knowledge of the subject (both the practical and
theoretical) and develop skill sets of students to become promising
engineers in future.

The department organizes Seminars, workshops/colloquia, guest


lectures on recent trends & Technology. The department also
organizes industrial visits for students periodically to provide an
opportunity for the students to interact with working professionals
from industry. We send students for internship programs which
provides an opportunity to the students to have a feel of real on sight
situations in the industries and how to handle them. It is firmly
believed that the prestigious position of this department will be
maintained and upheld by our students along with whole hearted and
sincere efforts of all the members of the department.
1

Vision:

To develop professionally competent and socially responsible


Electronics and Communication Engineers.

Mission:

We, the Department of Electronics and Communication


Engineering are committed to achieve our vision by:

 Strengthening core competencies among the learners through


outcome-based education.

 Imparting technical skills by conducting hands-on training


programs/workshops on Emerging technologies.

 Producing graduates with societal responsibilities.

 To Involving stakeholders in development of the department.


Company profile:

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

CHAPTER NO. CHAPTER NAME PAGE NO.

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

3.1 Block diagram of 14


Microcontroller

3.2 Liquid crytal display 16

4.1 ARDUINO Board 20

4.2 RS232 21

6.1 Block diagram of Mini project 24

6.2 Result 26
Internship Report on Arduino & IOT

CHAPTER 1

INTRODUCTION

1.1 Basic electronics

We discussed about logic gates, resisters, capacitors, transistors, diodes, LED

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

dielectric substance. Dielectric used can be air or any other substance.

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.

Figure 1) NPN and PNP Transistor Schematic Symbols

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.

LED: Light Emitting Diode


 A light-emitting diode (LED) is a semiconductor light source that emits light
when current flows through it.

 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

 The C programming language is a structure oriented programming language, developed at


Bell Laboratories in 1972 by Dennis Ritchie…Structure of C-programming includes
Header, main function, global declaration, Body, Return function..

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

Syntax: for (initialization; test condition ; increment/decrement)

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.

Syntax: while (test_ condition true)

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.

Syntax: type arrayName [arraySize];

This is called a single-dimensional array. The arraySize must be an integer constant greater than

zero and type can be any valid C data type.

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

determines the scope of variable , There are four storage classes in C.

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

static variables ams in C language.

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.

The general form of a function definition in C programming language is as follows


return _ type function_ name (parameter list) {
body of the function
}
Types of functions:

There are two types of functions 1) Pass by reference

2) Pass by value

Dept.ECE.SECAB.I.E.T,Vijayapur
Internship Report on Arduino & IOT

2.4 . C Programming:

1) Program to add two numbers using functions

2) Program to find the largest number among three numbers

using if else statement.

3) Program to check the prime number.

4) Program to find the odd and even numbers.

5) Program to determine the palindrome.

6) Program to find whether the number is positive and negative

7) Program for swapping of two numbers.

8) Program for swapping of two numbers using pointer.

9) Program to determine the alphabet.

10) Program to add two numbers using function.

11) Program to print factorial of a number.

12) Program to print Fibonacci series.

Dept.ECE.SECAB.I.E.T,Vijayapur
Internship Report on Arduino & IOT

CHAPTER 3

Embedded Microcontroller

An embedded system is a computer system, made from a combination of hardware and


software , that is used to perform a specific task. It may or not be programmable, depending on
the application

Examples:

Examples of embedded systems include washing machines, printers, automobiles, cameras,


industrial machines and more. Mobile phones and tablet are also considered embedded systems.
Embedded systems are named as such because they‟re part of a larger device, providing a special
function. They use both microcontrollers and microprocessors, as well as specially designed
processors such as digital signal processors (DSP).

Advantages:

 They are task specific


 They cover a wide variety of environments and can cope with demanding conditions.
 They are less likely to encore errors
 Their system hardware is simplified, which reduces costs overall.
 They can have a have a fanless design
 The use of less power than desktop systems ensures there is no need for cooling.

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

3.1 Introduction to microcontroller:

8051 microcontroller is designed by Intel in 1981. It is an 8-bit microcontroller. It is built


with 40 pins DIP (dual inline package), 4kb of ROM storage and 128 bytes of RAM storage, 2
16-bit timers. It consists of are four parallel 8-bit ports, which are programmable as well as
addressable as per the requirement. An on-chip crystal oscillator is integrated in the
microcontroller having crystal frequency of 12 MHz‟s..Below figure shows the Architecture of
microcontroller..

Fig 3.1:Block diagram of Microcontroller

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

SFR register, the address for SFR register is 89th.

GATE C/T M1 M0 GATE C/T M1 M0


TIMER 1 TIMER 0

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.

TF1 TR1 TF0 TR0 IE1 IT1 IE0 IT0

Interrupts: An interrupt is an event that occurs randomly in the flow of continuity.

Types of interrupts

There are two types of interrupts: 1) Hardware interrupts 2) software interrupts

1) Hardware interrupts: there are two types of hardware interrupts

a) Maskable
b) Non maskable

Dept.ECE.SECAB.I.E.T,Vijayapur
Internship Report on Arduino & IOT

1) Maskable interrupt : An interrupt that can be disabled or ignored by the instructions of


CPU are called as maskable interrupt.

2) Non Maskable interrupt: interrupt that cannot be disabled or ignored by the instructions
of CPU are called as Non maskable interrupt.

3.2 LCD (Liquid Crystal Display):

 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.

Fig 3.2:Liquid crytal display

Pin Configuration:

1) Vss ( Ground ): Ground pin connected to system ground

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

4) Register Select: Connected to Microcontroller to shit between command/data register

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.

10) Data Pin 3

11) Data pin 4

12) Data Pin 5

13) Data Pin 6

14) Data Pin 7

15) LED Positive: Backlight LED pin positive terminal

16) LED Negative: Backlight LED pin negative terminal.

Program to Blink LED:

#include <Liquid Crystal. h>

// initialize the library by associating any needed LCD interface pin

// with the arduino pin number it is connected to

const int rs = 12, en = 11, d4 = 5, d5 = 4, d6 = 3, d7 = 2;


Dept.ECE.SECAB.I.E.T,Vijayapur
Internship Report on Arduino & IOT

Liquid Crystal lcd ( rs,en, d4, d5, d6, d7);

void setup () {

// set up the LCD's number of columns and rows:

Lcd .begin (16, 2);

// Print a message to the LCD.

lcd.print ("hello, world!");

void loop () {

// Turn off the blinking cursor:

Lcd.noBlin ( );

Delay (3000);

// Turn on the blinking cursor:

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.

4.1 Arduino Uno Board:

Fig 4.1: ARDUINO Board

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

peripheral devices for flawless digital communication .

Fig 4.2:RS232

Arduino programs
1) : Code for LED BLINKING

int ledPin=11;

void setup ( ) {

PinMode (11, OUTPUT);

void loop ( ) {

Dept.ECE.SECAB.I.E.T,Vijayapur
Internship Report on Arduino & IOT

digitalWrite ( ledPin, HIGH);

delay (1000);

digitalWrite (ledPin, LOW);

delay (1000);

2) : Code to Display Two values or Numbers

#include <liquidCrystal.h>

liquidCrystal led (12, 11, 5, 4, 3, 2)

void setup()

lcd. begin (-16, 2);

lcd. Clear ( );

void loop ( )

{lcd. setCursor (0, 0);

lcd. Print ( “Secabiet” );

delay (3000);

lcd. setCursor (3, 1);

lcd. Print ( “Vijaypur” );

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.

Fig 5: Internet of Things

Dept.ECE.SECAB.I.E.T,Vijayapur
Internship Report on Arduino & IOT

CHAPTER 6

MINI PROJECT

Project Title: Line Follower Robot

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

Working of Mini Project:

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.

Here in this we are using Arduino, led display and lcd.


The lcd display is connected to Arduino and Arduino is connected to led lights. Here we are using four
led lights.

Code:

#include<SoftwareSerial.h>

SoftwareSerial mySerial(2, 3); //TX,RX

String Var = "";

int L1 = 8;

int L2 = 9, L3 = 10, L4 = 11;

char data;

String Rx = "";

void setup() {

// put your setup code here, to run once:

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() {

// put your main code here, to run repeatedly:

if (mySerial.available() > 0)

while (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:

Fig 6.2: Result

Dept.ECE.SECAB.I.E.T,Vijayapur
Internship Report on Arduino & IOT

CHAPTER 7

CONCLUSION

Throughout my internship, I could understand more about definition of an Embedded


system like Arduino. By MINI PROJECT I have learnt to design a code for line follower
Robot

Dept.ECE.SECAB.I.E.T,Vijayapur

You might also like