You are on page 1of 37

MADAN MOHAN MALAVIYA UNIVERSITY OF

TECHNOLOGY GORAKHPUR - 273016

“Internet Of Things”
MASTER OF COMPUTER APPLICATION

Submitted by:

Name: Roll No.:

KM ANSHIKA SHUKLA [2020104032]

DEPARTMENT OF INFORMATION TECHNOLOGY &


COMPUTER APPLICATION

MADAN MOHAN MALAVIYA UNIVERSITY OF TECHNOLOGY


GORAKHPUR-273016

1
INDEX
Name: KM Anshika Shukla Roll No: 2020104032
Department: ITCA
Branch: MCA Semester: Final Year
Session: 2020-22 Subject: Internet of Things

S. Date Topic Page Grade Signature


No. no.
1. Program1: Blinking LED 02-05

2. Program2: Push Button 06-08

3. Program3: Pattern Display System 09-11

4. Program4: LED Pattern with Push Button 12-15


Control
5. Program5: 7 segment display system 16-21

6. Program6: Fire alarm system 22-25

7. Program7: Remote Control system for 26-30


Home Appliances
8. Program8: Night Light Control system 31-34

9. Program9: Sensor based security system 35-37

2
Program 1: Blinking LED

1. Navigate to Tinkercad > Create the following circuit > Circuit > Create a New
Circuit > Rename to Blinking LED > Create the following Circuit

Circuit:

3
2. Component List

Name Quantity Component

U1 1 Arduino Uno R3

D1 1 Red LED

R1 1 200 Ω Resistor

3. Wire the following Circuit


a. Start Digital Pin 7: The digital pins act as a switch to turn on/off the flow of
electricity to the circuit. On the Arduino Board is a 5V and 3.3V Port that can
be used to apply direct electricity to a circuit without

b. Drag Wire to + Row on Breadboard

c. Place Resistor = 220 Ω starting from + row on breadboard to adjacent row


Notice: The end of the Resistor is not touching the Red Wire from Arduino.
Once a wire is in either the + or – row the whole row is charged with
electricity

d. Place LED with the pins in different columns. NOTE: Anode (Bent Wire)
should be on the Resistor Side and the Cathode (Straight Wire) should be
leading towards the – on the board. Notice: The end of the Resistor is not
touching the end of the LED. Once a wire is placed in the column a-e or f-j the
whole column (vertically) is charged with electricity

e. Drag a wire from Cathode side of the LED to the – Row on breadboard

4
f. Drag a wire from – row on breadboard to GND (Ground) on the Arduino
(NOTE: the Arduino Board has 3 GND (Ground Ports). It does not matter
which of these ports the user places the wire

4. Type the following code

5. Explanation:
Running the Code > Press Start Simulation > Notice the following
i. Power cord plugs into the Arduino providing electricity to the board.
ii. LED turns ON for 1000ms or 1s.
iii. LED turns OFF for 2000ms or 2s.
iv. Then void loop () repeats itself.

5
Program 2: Push Button

1. Navigate to Tinkercad > Create the following circuit > Circuit > Create a New
Circuit > Rename to Push Button > Create the following Circuit

Circuit:

6
2. Component List

Name Quantity Component

U1 1 Arduino Uno R3

D1 1 Red LED

R1 1 1 kΩ Resistor

S1 1 Pushbutton

3. Wire the following Circuit


a. Drag a wire from + row on breadboard to 5V (Power) on the Arduino.

b. Place Resistor = 1KΩ starting from - row on breadboard to adjacent row.

c. Place LED with the pins in different columns.

d. Drag a push button and add it to the Cathode side of the LED.

e. Connect other side of the push button to the – Row on breadboard.

f. Drag a wire from – row on breadboard to GND (Ground) on the Arduino

7
4. Type the following code

5. Explanation:
Running the Code> Press Start Simulation > Notice the following
i. Power cord plugs into the Arduino providing electricity to the board.
ii. LED turns ON for 1000ms or 1s when we press the PUSH BUTTON.
iii. After 1000ms or 1s LED turns OFF.
iv. Then void loop () repeats itself.

8
Program 3: Pattern Display System

1. Navigate to Tinkercad > Create the following circuit > Circuit > Create a New
Circuit > Rename to Pattern Display System > Create the following Circuit

Circuit:

9
2. Component List

Name Quantity Component

U1 1 Arduino Uno R3

DLED1 1 Red LED

DLED2 1 Yellow LED

DLED3 1 Green LED

RR1
RR2 3 100 Ω Resistor
RR3

3. Wire the following Circuit


a. Drag a wire from + row on breadboard to 5V (Power) on the Arduino.

b. Drag a wire from – row on breadboard to GND (Ground) on the Arduino

c. Place three resistor R1, R2, R3 = 100Ω adjacent to each other.

d. Place all the three different LED (red, green, and yellow) with the pins in
different columns with respect to the R1, R2, R3.

e. Connect all the component with each other as shown in figure.

10
4. Type the following code

5. Explanation:
Running the Code> Press Start Simulation > Notice the following
i. Power cord plugs into the Arduino providing electricity to the board.
iii. All the LED turns ON one by one for 500ms or 0.5s in a pattern.
iv. Then void loop () repeats itself.

11
Program 4: LED Pattern with Push Button
Control

1. Navigate to Tinkercad > Create the following circuit > Circuit > Create a New
Circuit > Rename to LED Pattern with Push Button Control > Create the
following Circuit

Circuit:

12
2. Component List

Name Quantity Component

UMyUno 1 Arduino Uno R3

D1 1 Green LED

D2 1 Red LED

D3 1 Orange LED

RR2
RR1 3 100 Ω Resistor
RR3

SPsh_btn 1 Pushbutton

R1 1 1 kΩ Resistor

3. Wire the following Circuit


a. Drag a wire from + row on breadboard to 5V (Power) on the Arduino.

b. Drag a wire from – row on breadboard to GND (Ground) on the Arduino

c. Place Resistor = 1KΩ starting from - row on breadboard to adjacent row.

d. Place push button to the adjacent row to the resistor(1KΩ).

e. Place three resistor R1, R2, R3 = 100Ω adjacent to each other.

f. Place all the three different LED (red, green, and yellow) with the pins in
different columns with respect to the R1, R2, R3.

g. Connect all the component with each other as shown in figure.

13
4. Type the following code

14
5. Explanation:
Running the Code> Press Start Simulation > Notice the following
i. Power cord plugs into the Arduino providing electricity to the board.
ii. Press the PUSH BUTTON.
iii. All the LED turns ON one by one for 500ms or 0.5s.
iv. Then void loop () repeats itself.

15
Program 5: 7 Segment Display System

1. Navigate to Tinkercad > Create the following circuit > Circuit > Create a New
Circuit > Rename to 7 segment display system > Create the following Circuit

Circuit:

2. Component List

Name Quantity Component

UArduino UNO R3 1 Arduino Uno R3

Digit1 1 Cathode 7 Segment Display

R1
2 500 Ω Resistor
R2

16
3. Wire the following Circuit
a. Drag seven segment displays on Breadboard

b. Connect all its seven segments with the digital pins 7, 8, 9, 10, 11, 12, 13, 14

c. Drag Wire to + Row on Breadboard

d. Place two resistors (R1, R2) = 500 Ω as shown in figure

e. Connect all the components as shown in figure

f. Drag a wire from – row on breadboard to GND (Ground) on the Arduino

4. Type the following code

17
18
19
20
5. Explanation:
Running the Code > Press Start Simulation > Notice the following
i. Power cord plugs into the Arduino providing electricity to the board.
ii. Seven segment display started displaying number from 0-9.
iii. Then void loop () repeats itself.

21
Program 6: Fire Alarm System

1. Navigate to Tinkercad > Create the following circuit > Circuit > Create a New
Circuit > Rename to Fire alarm system > Create the following Circuit

Circuit:

22
2. Component List

Name Quantity Component

U1 1 Arduino Uno R3

PIEZO1 1 Piezo

U2 1 Temperature Sensor [TMP36]

GAS1 1 Gas Sensor

D1 1 Red LED

R1
2 1 kΩ Resistor
R2

3. Wire the following Circuit


a. Drag Piezo and connect its one end with the Digital pin 7 on Arduino and the
other end with the – Row on Breadboard

b. Drag Temperature sensor and connect it with the – Row, + Row on


Breadboard and Analog pin (A1) on Arduino.

c. Drag a Gas sensor and connect it with the -Row, +Row on Breadboard and
Analog pin (A0) on Arduino.

d. Drag Wire to + Row on Breadboard from Power 5V as shown in figure

e. Place a resistor (R1) = 1 KΩ and connect it with gas sensor

f. Add another LED and resistor (R3) with Digital Pin 13 and ground on Arduino

g. Drag a wire from – row on breadboard to GND (Ground) on the Arduino

23
4. Type the following code

24
5. Explanation:
Running the Code. Press Start Simulation > Notice the following
i. Power cord plugs into the Arduino providing electricity to the board.
ii. LED turns ON till power cord plug-in.
iii. Temperature sensor and gas sensor starts reading the analog signal.
iv. Piezo starts producing sound once analog signal exceeds its limit value.
v. Then void loop () repeats itself.

25
Program 7: Remote Control System for Home
Appliances

1. Navigate to Tinkercad > Create the following circuit > Circuit > Create a New
Circuit > Rename to Remote Control system for Home Appliances > Create the
following Circuit

Circuit:

26
2. Component List

Name Quantity Component

U1 1 Arduino Uno R3

D1
D2
4 Red LED
D3
D4

R1
R2
R3 5 1 kΩ Resistor
R4
R5

U2 1 IR sensor

Rpot3 1 250 kΩ Potentiometer

U3 1 LCD 16 x 2

3. Wire the following Circuit


a. Drag LCD (16X2) and connect it with Arduino with different wires as shown in
figure.

b. Drag a potentiometer (250 KΩ) and connect it with the contrast on LCD and
the -Row, +Row on Breadboard as shown in figure.

c. Drag IR sensor and connect it with the -Row, +Row on Breadboard and
Analog pin (A0) on Arduino.

27
d. Drag four LED bulb and four resistors = 1 KΩ, connect one end of LED with the
resistors R1, R2, R3, R4 respectively and the other one with -Row on
Breadboard as shown in figure.

e. Connect second end of the resistor with the digital pins D3, D4, D5, D6
respectively.

f. Add another resistor (1 KΩ) and connect it with +Row on Breadboard.

g. Drag IR remote and complete the circuit as shown in figure

4. Type the following code

28
29
5. Explanation:
Running the Code > Press Start Simulation > Notice the following
i. Power cord plugs into the Arduino providing electricity to the board.
ii. LCD display message “ALL APLIANCES 0” when we turn ON IR remote.
iii. When we press 1 with IR remote, Fan is on.
iv. When we press 2 with IR remote, Bulb is on.
v. When we press 3 with IR remote, AC is on.
vi. When we press 4 with IR remote, TV is on.
vii. Then void loop () repeats itself.

30
Program 8: Night Light Control System

1. Navigate to Tinkercad > Create the following circuit > Circuit > Create a New
Circuit > Rename to Night Light Control system > Create the following Circuit

Circuit:

31
2. Component List

Name Quantity Component

U1 1 Arduino Uno R3

9.391886841681583 , -128.17883595875116 , -
PIR1 1
217.71951667742724 , -212.9180401714308 PIR Sensor

R1 1 470 Ω Resistor

C1 1 1 uF, 16 V Polarized Capacitor

LED2 1 NeoPixel Strip 8

T1 1 NPN Transistor (BJT)

3. Wire the following Circuit


a. Drag PIR sensor and set the value as X=9.39, Y= -128.18, Z= -217.72 and
connect it with – Row, +Row on Breadboard.

b. Drag a NPN Transistor (BJT) and connect it with – Row on Breadboard, Analog
pin (A0) on Arduino, and with PIR sensor.

c. Drag Polarized Capacitor and set the value of capacitance as 1µF and voltage
rating as 16V. Connect it with the +Row on Breadboard and with GND
(Ground) on Arduino.

d. Drag a Neo Pixel Strip 8 and connect it with Polarized Capacitor as shown in
figure.

e. Connect a resistor of 470 Ω with the Neo Pixel Strip 8 and digital pins D7 on
Arduino.
f. Connect 5V Power and GND (ground) on Arduino with +Row and – Row on
Breadboard.

32
4. Type the following code

33
5. Explanation:
Running the Code > Press Start Simulation > Notice the following
i. Power cord plugs into the Arduino providing electricity to the board.
ii. When PIR sensor senses any movement near it, then the Neo Pixel Strip 8
turns ON slowly one by one.
iii. LED will be turned OFF after 10s, when it doesn’t sense any movement.
iv. Then void loop () repeats itself.

34
Program 9: Sensor Based Security System

1. Navigate to Tinkercad > Create the following circuit > Circuit > Create a New
Circuit > Rename to Sensor based security system > Create the following Circuit

Circuit:

35
2. Component List

Name Quantity Component

U1 1 Arduino Uno R3

PIEZO1 1 Piezo

D1 1 Red LED

R1 1 1 kΩ Resistor

-20.25 , -191.07734217143306 , -199.02235487964901 PIR


PIR1 1
Sensor

3. Wire the following Circuit


a. Drag Piezo and connect its one end with the Digital pin 10 on Arduino and the
other end with the – Row on Breadboard.

b. Drag a Wire to - Row on Breadboard from 5V power on Arduino on as shown


in figure.

c. Drag a PIR sensor and set its values as: X = -20.25, Y = -191.08 & Y = -199.02.
Connect it with the -Row, +Row on Breadboard and Digital pin 2 on Arduino.

d. Drag Wire to - Row on Breadboard from GND (ground) on Arduino as shown


in figure.

e. Place a LED and resistor (R1) = 1 KΩ. Connect LED with – Row on Breadboard
and resistor, then connect resistor with Digital Pin 6 on Arduino.

f. Add another LED and resistor (R3) with Digital Pin 13 and GND (ground) on
Arduino.

36
4. Type the following code

5. Explanation:
Running the Code > Press Start Simulation > Notice the following
i. Power cord plugs into the Arduino providing electricity to the board.
ii. When some comes in the range of PIR sensor, then it senses the presence of
outsider.
iii. Thus, Piezo starts producing sound once PIR sensor sends the signal.
iv. It stops after 2ms or 2000sec.
v. Then void loop () repeats itself.

37

You might also like