Professional Documents
Culture Documents
“Internet Of Things”
MASTER OF COMPUTER APPLICATION
Submitted by:
1
INDEX
Name: KM Anshika Shukla Roll No: 2020104032
Department: ITCA
Branch: MCA Semester: Final Year
Session: 2020-22 Subject: Internet of Things
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
U1 1 Arduino Uno R3
D1 1 Red LED
R1 1 200 Ω Resistor
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
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
U1 1 Arduino Uno R3
D1 1 Red LED
R1 1 1 kΩ Resistor
S1 1 Pushbutton
d. Drag a push button and add it to the Cathode side of the LED.
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
U1 1 Arduino Uno R3
RR1
RR2 3 100 Ω Resistor
RR3
d. Place all the three different LED (red, green, and yellow) with the pins in
different columns with respect to the R1, R2, R3.
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
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
f. Place all the three different LED (red, green, and yellow) with the pins in
different columns with respect to the R1, R2, R3.
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
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
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
U1 1 Arduino Uno R3
PIEZO1 1 Piezo
D1 1 Red LED
R1
2 1 kΩ Resistor
R2
c. Drag a Gas sensor and connect it with the -Row, +Row on Breadboard and
Analog pin (A0) on Arduino.
f. Add another LED and resistor (R3) with Digital Pin 13 and ground on 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
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
U3 1 LCD 16 x 2
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.
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
U1 1 Arduino Uno R3
9.391886841681583 , -128.17883595875116 , -
PIR1 1
217.71951667742724 , -212.9180401714308 PIR Sensor
R1 1 470 Ω Resistor
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
U1 1 Arduino Uno R3
PIEZO1 1 Piezo
D1 1 Red LED
R1 1 1 kΩ Resistor
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.
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