IOT-1
IOT-1
b) Software Required:
• Tinkercad (Online Simulation Tool)
1
e) Circuit Diagram:
Jumper Wires
Arduino Uno Breadboard
USB Cable
Resistor
Red LED
2. Circuit Connections:
i. LED Connections:
• The long leg (anode, +) of the LED is connected to one end of the 220Ω resistor.
• The other end of the resistor is connected to pin 7 of the Arduino (digital output).
• The short leg (cathode, -) of the LED is connected to the ground (GND) of the
Arduino.
2
• The positive rail of the breadboard is not used in this circuit but is available for
additional components if needed.
g) Expected Output:
• The LED should blink ON for 1 second and OFF for 2 seconds repeatedly in the Tinkercad
simulation.
h) Observations:
• The LED successfully blinks as per the programmed delay intervals.
• The circuit simulation in Tinkercad functions correctly as per the design.
3
EXPERIMENT NUMBER: 02
AIM: - To design and simulate a Push Button LED Circuit using Arduino.
a) Components Required:
Sr.No. Quantity Component
1. 1 Arduino Uno R3
2. 1 Red LED (Light Emitting Diode)
3. 1 Resistor (1kΩ)
4. 1 Breadboard Small
5. Several Jumper Wires
6. 1 USB Cable
7. 1 Push Button
b) Software Required:
• Tinkercad (Online Simulation Tool)
4
d) Code for Push Button LED:
e) Circuit Diagram:
Arduino Uno
USB Cable
Jumper Wires
Resistor Breadboard
PUSH Button
Red LED
2. Circuit Connections:
i. Power Supply: Connect the 5V pin of the Arduino Uno to the positive rail of the
breadboard.
ii. Ground Connection: Connect the GND pin of the Arduino Uno to the negative rail of
the breadboard.
iii. Resistor Placement: Place a 1kΩ resistor from the negative rail of the breadboard to an
adjacent row.
v. Push Button Placement: Place the push button on the breadboard so that:
• One terminal is connected to the cathode (-) of the LED.
• The other terminal is connected to the negative rail of the breadboard.
vi. Final Ground Connection: Connect the negative rail of the breadboard to the GND pin
of the Arduino Uno.
g) Expected Output:
• When the push button is pressed, the LED turns ON for 1 second.
• After 1 second, the LED turns OFF automatically.
• This process continues in a loop as defined in the program.
h) Observations:
• When the push button is not pressed, the LED remains OFF.
• When the push button is pressed, the LED turns ON as per the programmed logic.
• The LED remains ON only while the button is held down.
• The circuit successfully simulates the working of a push button-controlled LED in Tinkercad.
• The resistor effectively limits the current, preventing damage to the LED.
6
EXPERIMENT NUMBER: 03
AIM: - To design and simulate LED Pattern with Push Button Control using
Arduino.
a) Components Required:
Sr.No. Quantity Component
1. 1 Arduino Uno R3
2. 1 Red LED (Light Emitting Diode)
5. 3 Resistor (100Ω)
6. 1 Resistor (1kΩ)
7. 1 Breadboard Small
8. Several Jumper Wires
9. 1 USB Cable
b) Software Required:
• Tinkercad (Online Simulation Tool)
7
d) Code for LED Blinking:
8
e) Circuit Diagram:
Breadboard
Green, Yellow and Red LED
uino Uno
Resistor
USB Cable
Jumper Wire
Arduino UNO
2. Circuit Connections:
i. LED Connections:
• The long leg (anode, +) of the LED is connected to one end of the 220Ω resistor.
• The other end of the resistor is connected to pin 7 of the Arduino (digital output).
• The short leg (cathode, -) of the LED is connected to the ground (GND) of the
Arduino.
g) Expected Output:
i. Initial State:
• When the circuit is powered on, all LEDs remain OFF.
h) Observations:
i. Initial Condition:
▪ When the circuit is powered on, none of the LEDs light up.
▪ The push button remains inactive until pressed.
v. Repeating Behavior:
• Every time the button is pressed, the same LED pattern is observed.
• If the button is not pressed, no LED turns ON.
10
EXPERIMENT NUMBER: 04
AIM: - To design and simulate 7 Segment Display System using Arduino.
a) Components Required:
1. 1 Arduino Uno R3
2. 1 Cathode 7 Segment Display
3. 2 Resistor (500Ω)
4. 1 Breadboard Mini
5. Several Jumper Wires
6. 1 USB Cable
b) Software Required:
• Tinkercad (Online Simulation Tool)
11
d) Code for 7 Segment Display System:
12
13
14
e) Circuit Diagram:
Jumper Wires
Arduino UNO
Breadboard
USB Cable
Resistor
7 Segment Display
2. Circuit Connections:
i. 7-Segment Display Connections:
• The common cathode pins of the 7-segment display are connected to GND on the
breadboard.
• Each segment (A to G) and the decimal point (DP) are connected to Arduino digital pins
as follows:
· Segment A → Pin 7
· Segment B → Pin 6
· Segment C → Pin 5
· Segment D → Pin 4
· Segment E → Pin 3
· Segment F → Pin 9
· Segment G → Pin 8
15
· DP (Decimal Point) is not used in this circuit.
• Resistors (220Ω) are added in series with some of the segments to prevent excessive
current flow.
g) Expected Output:
• The 7-segment display will show numbers based on the Arduino program.
• In the circuit, the display is showing the digit "2" by lighting up specific segments.
• If programmed, the display can count from 0 to 9 in sequence.
• The 500Ω resistors help control brightness and protect the display.
• The displayed number will be clear and stable.
• The Arduino controls which number appears based on the written code.
h) Observations:
• The 7-segment display successfully lights up and displays numbers as per the Arduino code.
• The correct segments illuminate to form the desired digit (e.g., "2" in the image).
• The brightness of the display is regulated by the 500Ω resistors, preventing damage.
• The connections between the Arduino and the display are working correctly, ensuring smooth
data transmission.
• If there are incorrect segment activations, they may be due to wrong wiring or programming
errors.
• The circuit operates as expected when the Arduino is powered on and running the code.
16
EXPERIMENT NUMBER: 05
AIM: - To design and simulate a Sensor-Based Security System using
Arduino.
a) Components Required:
1. 1 Arduino Uno R3
2. 1 Piezo
3. 1 Red LED
4. 1 PIR Sensor
5. 1 Resistor (1kΩ)
6. 1 Breadboard Small
7. Several Jumper Wires
8. 1 USB Cable
b) Software Required:
• Tinkercad (Online Simulation Tool).
17
d) Code for sensor-based security system:
e) Circuit Diagram:
Object
Piezo
Red LED PIR Sensor
Resistor
Jumper Wires
2. Circuit Connections:
i. Power Supply:
• Connect 5V from Arduino to the positive rail of the breadboard.
• Connect GND from Arduino to the negative rail of the breadboard.
g) Expected Output:
• When no motion is detected, the LED remains off, and the buzzer is silent.
• When motion is detected, the LED turns on, and the buzzer sounds for 2 seconds.
• After the delay, the system resets and continues detecting motion.
h) Observations:
• The PIR sensor successfully detects motion within its range.
• The LED and buzzer activate immediately when movement is detected.
• The buzzer stops after 2 seconds, as programmed.
19
EXPERIMENT NUMBER: 06
AIM: - To design and simulate a Night Light Control System using Arduino.
a) Components Required:
1. 1 Arduino Uno R3
2. 1 NeoPixel Strip 8
4. 1 PIR Sensor
5. 1 Resistor (470Ω)
6. 1 Breadboard Small
7. Several Jumper Wires
8. 1 USB Cable
b) Software Required:
• Tinkercad (Online Simulation Tool).
20
d) Code for sensor-based security system:
21
e) Circuit Diagram:
NeoPixel Strip 8
Jumper Wires
Arduino UNO Breadboard
USB Cable
Polarized Capacitor
NPN Transistor
PIR Sensor
Object
2. Circuit Connections:
i. Arduino Power:
• The Arduino is powered via USB or an external 9V adapter.
• GND of Arduino → Common ground for all components.
• 5V of Arduino → Power supply to PIR sensor and circuit components.
g) Expected Output:
• When motion is detected by the PIR sensor, the Arduino receives a HIGH signal.
• The NeoPixel LED strip turns ON, providing illumination in the dark.
23
• If no motion is detected for a predefined time (e.g., 10 seconds), the LED strip turns OFF
automatically.
• The 1µF capacitor ensures smooth power delivery, preventing flickering or voltage fluctuations in
the LED strip.
• The system operates efficiently with stable lighting, responding accurately to motion detection.
h) Observations:
• The PIR sensor successfully detects motion and triggers the LED strip to turn ON.
• The LED strip remains ON as long as motion is detected and turns OFF after the predefined delay
when no motion is sensed.
• The transistor/MOSFET efficiently controls the power to the LED strip, ensuring stable operation.
• The 1µF capacitor helps in reducing voltage fluctuations, preventing flickering in the LED strip.
• The system operates as expected, providing automatic illumination in low-light conditions.
• The response time of the PIR sensor and LED activation is quick, ensuring real-time detection.
• Power consumption is optimized as the light is only activated when required, making the system
energy-efficient.
24
EXPERIMENT NUMBER: 07
AIM: - To design and simulate a Push Button-Controlled Buzzer System
using Arduino.
a) Components Required:
1. 1 Arduino Uno R3
2. 4 Push Button
3. 1 Piezo
4. 4 Resistor (1200Ω)
5. 1 Breadboard Small
6. Several Jumper Wires
7. 1 USB Cable
b) Software Required:
• Tinkercad (Online Simulation Tool).
25
d) Code for sensor-based security system:
26
e) Circuit Diagram:
Piezo
PUSH Button
Resistor
Breadboard
USB Cable
Arduino UNO
Jumper Wires
• Arduino Uno – The microcontroller to process button inputs and control the buzzer.
• Buzzer – Produces sound when activated.
• Push Buttons (4) – Used to trigger the buzzer.
• Resistors – Pull-down resistors (typically 10kΩ) to ensure proper button functionality.
• Breadboard & Jumper Wires – For easy circuit assembly and connections.
2. Circuit Connections:
• One terminal of each push button is connected to GND via a pull-down resistor.
• The other terminal of each push button is connected to a digital input pin on the Arduino.
• The buzzer's positive terminal is connected to Arduino digital pin 7.
• The buzzer's negative terminal is connected to GND.
• Power connections: The Arduino is powered via USB, and the breadboard is connected to
Arduino’s 5V and GND.
g) Expected Output:
• When any push button is pressed, the buzzer will produce a sound.
• The buzzer will remain ON as long as the button is held down.
• Once the button is released, the buzzer stops sounding.
• Each button can independently trigger the buzzer.
h) Observations:
• The buzzer successfully sounds when a push button is pressed.
• The buzzer remains active only while the button is held down and stops immediately when
released.
• If no button is pressed, the buzzer remains OFF by default.
• All connected push buttons function independently to activate the buzzer.
• The circuit works as expected without any delay or false triggering.
28
EXPERIMENT NUMBER: 08
AIM: - To design and simulate a Smart Door Lock System using Arduino.
a) Components Required:
1. 1 Arduino Uno R3
2. 1 Potentiometer
3. 1 Keypad 4x4
4. 4 Micro Servo
5. 1 LCD 16x2
6. 1 Breadboard Small
7. Several Jumper Wires
8. 1 USB Cable
b) Software Required:
• Tinkercad (Online Simulation Tool).
29
d) Code for Smart Door Lock System:
30
e) Circuit Diagram:
Jumper Wires
Arduino UNO
USB Cable
Potentiometer Breadboard
Keypad 4x4
Micro Servo
LCD 16x2
31
f) Explanation of Connections in the Smart Door Lock System
1. Components Used:
• Arduino Uno – The microcontroller that processes the input and controls the system.
• 4x4 Keypad – Used to input the password for authentication.
• 16x2 LCD Display – Displays messages like "Enter Password" and access status.
• Servo Motor – Acts as the door lock mechanism, rotating when the correct password is
entered.
• Potentiometer – Adjusts the contrast of the LCD display.
• Breadboard & Jumper Wires – Used for circuit connections and wiring.
2. Circuit Connections:
i. Keypad Connections:
• The 8 pins of the keypad are connected to Arduino digital pins (2-9).
• Rows and columns of the keypad are mapped accordingly.
g) Expected Output:
1. When the system starts:
• The LCD displays: "Input Password".
33
EXPERIMENT NUMBER: 09
AIM: - To design and simulate an Intrusion detection system with Arduino
and Ultrasonic Sensor.
a) Introduction:
An intrusion detection system (IDS) is a device or software application that monitors a network or
systems for malicious activity.
• Ultrasonic Sensors: The HC-SR04 ultrasonic sensor uses SONAR to determine the distance of an
object, similar to how bats navigate. It offers excellent non-contact range detection with high accuracy
and stable readings, measuring distances from 2 cm to 400 cm (1" to 13 feet).
• It consists of an ultrasonic transmitter and receiver module. The sensor calculates distance using the
time difference between the emitted and reflected sound waves, using the speed of sound in air (340
m/s).
• The ultrasonic sensor is used here for intruder detection. When an intrusion is detected, a buzzer
sounds as an alert.
b) Components Required:
1. 1 Arduino Uno R3
2. 1 Red LED
4. 1 Buzzer
5. 1 Resistor
6. 1 Breadboard Small
7. Several Jumper Wires
8. 1 USB Cable
34
c) Connection Diagram:
Object
Ultrasonic Sensor
Piezo
Jumper Wires
Arduino UNO
USB Cable
Resistor
Breadboard
35
d) Steps of Working
1. Insert the ultrasonic sensor into your breadboard and connect its Echo pin to digital pin 2 and the
Trigger pin to digital pin 3 of the Arduino.
2. Insert the RED and GREEN LEDs into the breadboard. Attach the positive leg (longer leg) of the
RED LED to the signal pin of the buzzer via a 220-ohm resistor. Connect the negative leg of the
RED LED to GND. The GREEN LED is connected to digital pin 8 of the Arduino.
3. Upload the code.
4. Observe the LEDs and take an object in front of the ultrasonic sensor.
5. Observe the changes in the LED and buzzer sound.
e) The Sketch:
This sketch works by setting pin 2 for the ultrasonic sensor and pins 8, 9, and 10 as OUTPUT to power
the LEDs and buzzer. After that, a loop continuously reads the value from the echo pin and sends that
value as voltage to the LEDs. The color of the LED that glows will vary according to the detection of
an object in the given range.
36
f) Observations:
➢ Explanation:
• If an object is detected within the intruder distance (10 cm), the Red LED turns ON, and the buzzer
sounds to indicate an intrusion.
• If no object is detected beyond the set distance, the Green LED turns ON, and the buzzer remains
OFF, signaling a safe condition.
37