0% found this document useful (0 votes)
66 views41 pages

Ilovepdf Merged

The document outlines various IoT experiments conducted in a B-Tech C.S.E program, focusing on practical applications using Arduino and Raspberry Pi. Each experiment includes coding phases, hardware and software requirements, circuit connections, and conclusions highlighting the functionality and applications of the projects. The experiments cover topics such as LED blinking, temperature and pressure measurement, IR remote interfacing, ultrasonic sensor usage, and soil moisture sensing.

Uploaded by

mranish9341
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
66 views41 pages

Ilovepdf Merged

The document outlines various IoT experiments conducted in a B-Tech C.S.E program, focusing on practical applications using Arduino and Raspberry Pi. Each experiment includes coding phases, hardware and software requirements, circuit connections, and conclusions highlighting the functionality and applications of the projects. The experiments cover topics such as LED blinking, temperature and pressure measurement, IR remote interfacing, ultrasonic sensor usage, and soil moisture sensing.

Uploaded by

mranish9341
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 41

School: School Of Engineering And Technology Campus: Paralakhemundi

Academic Year: .................Subject Name: I O T Subject Code: ………………..

Semester: 4th Program: B-Tech Branch: C.S.E Specialization: ................ST..........

Date:

(Learning by Doing and Discovery)

B l i n k i n g L E D o n b r e a d b o a rd u s i n g A r d u i n o
* Coding Phase: Pseudo Code / Flow Chart / Algorithm

// C++ code
//

int
led=12;
void
setup()
{
pinMode(led, OUTPUT);
}
void loop()
{
digitalWrite(led, HIGH);
delay(200); // Wait for 1000 millisecond(s)
digitalWrite(LED_BUILTIN, LOW);
delay(200); // Wait for 1000 millisecond(s)
}

*As applicable according to the experiment.


Two sheets per experiment (10-20) to be used.
Applied and Action Learning

* Testing Phase: Compilation of Code (error detection)


NO ERROR

* Implementation Phase: Final Output (no error)

*As applicable according to the experiment.


Two sheets per experiment (10-20) to be used.
Applied and Action Learning

* Procedure

Hardware Requirements:

➢ Arduino Board (e.g. Arduino Uno)


➢ Breadboard
➢ LED
➢ Resistor (220 ohms)
➢ Jumper Wires

Software Requirements:

➢ Arduino IDE (version 1.8.x or later)

Circuit Connection:

✅ LED Connection:
⬛ Anode (long leg) of the LED → Connected to one side of a 220 Ω resistor
⬛ Other side of the resistor → Connected to Digital Pin 13 on Arduino
⬛ Cathode (short leg) of the LED → Connected to the ground rail on the
breadboard

⬛ Power Connection:
+ rail of the breadboard → Connected to Arduino’s 5V pin
- rail of the breadboard → Connected to Arduino’s GND pin

*As applicable according to the experiment.


Two sheets per experiment (10-20) to be used.
Applied and Action Learning
*Conclusion

The LED is connected to Arduino through a resistor to limit current. The


Arduino sends HIGH and LOW signals to the LED, making it blink at regular
intervals. The delay function controls the ON and OFF time.

Applications:

1. Status Indicators – Indicate the status of a device.


2. Traffic Light Simulation – Simulate traffic lights using multiple LEDs.
3. Debugging Signals – Use blinking LEDs to confirm signal transmission.
4. Notification System – Signal errors or system status changes.
5. Gaming and Toys – Create interactive blinking patterns.

Rubrics
Concept 10
Planning and Execution/ 10
Practical Simulation/ Programming
Result and Interpretation 10
Record of Applied and Action Learning 10
Viva 10
Total 50

Signature of the Student:

Signature of the Faculty:


*As applicable according to the experiment.
Two sheets per experiment (10-20) to be used.
School: School Of Engineering And Technology Campus: Paralakhemundi

Academic Year: .................Subject Name: I O T Subject Code: ………………..

Semester: 4th Program: B-Tech Branch: C.S.E Specialization: ................ST..........

Date:

(Learning by Doing and Discovery)

Measurement of temperature & pressure value of the process using raspberry pi


* Coding Phase: Pseudo Code / Flow Chart / Algorithm

//C++ code

#include "LiquidCrystal.h"
LiquidCrystal lcd(8,7,6,5,4,3);
int sensorPin = 0;
void setup()
{
Serial.begin(9600);
lcd.begin(16,2);
}

void loop()
{

int reading = analogRead(sensorPin);

// measure the 5v with a meter for an accurate value


//In particular if your Arduino is USB powered

float voltage = reading * 4.68;


voltage /= 1024.0;

// now print out the temperature

float temperatureC = (voltage - 0.5) * 100;


Serial.print(temperatureC);
Serial.println(" degrees C");

lcd.setCursor(0,0);
lcd.print("Temperature Value ");
lcd.setCursor(0,1);
lcd.print(" degrees C");
lcd.setCursor(11,1);
lcd.print(temperatureC);

delay(100);
}

*As applicable according to the experiment.


Two sheets per experiment (10-20) to be used.
Applied and Action Learning

* Testing Phase: Compilation of Code (error detection)


NO ERROR

* Implementation Phase: Final Output (no error)

*As applicable according to the experiment.


Two sheets per experiment (10-20) to be used.
Applied and Action Learning

* Procedure

Hardware Requirements:

➢ Arduino Board (e.g. Arduino Uno)


➢ Breadboard Small
➢ LCD 16x2
➢ Temperature Sensor (e.g. LM35)
➢ Potentiometer
➢ Resistor (330 ohms)
➢ Jumper wires

Software Requirements:

➢ Tinkercad Account

Circuit Connection:

1. LM35 Temperature Sensor:

➢ VCC – Connent to Arduino +5V


➢ GND – Connect to Arduino GND
➢ OUT - Connect to Analog Pin A0

2. 16x2 LCD with 12C Adapter:

VCC – Connect to Arduino +5V


GND – Connect to Arduino GND
SDA - Connect to Arduino A4
SCL - Connect to Arduino A5
OR
16x2 LCD without 12C:
VSS – GND
VDD - +5V
V0 - Connect to the middle pin of the potentiometer
RS - Digital Pin 12
RW - GND
E - Digital Pin 11
D4, D5, D6,D7 - Digital Pins 5,4,3,2 respectively
A - +5V
K - GND
*As applicable according to the experiment.
Two sheets per experiment (10-20) to be used.
Applied and Action Learning
*Conclusion

Measuring temperature and displaying it on an LCD using a Raspberry Pi and


Tinkercad involves proper hardware setup and software configuration. After connecting the
temperature sensor and LCD, install the necessary libraries and enable I2C communication.
With the correct code and setup, you can successfully read and display real-time temperature
values. This project enhances your understanding of sensor integration and I2C communication.

➢ Applications

1. Weather Monitoring – Measure and display temperature for weather stations.


2. Industrial Automation – Monitor process temperature in manufacturing.
3. Home Automation – Control heating and cooling systems based on temperature.
4. Health Monitoring – Track environmental conditions in hospitals or labs.
5. Agriculture – Monitor greenhouse temperature for optimal crop growth.

Rubrics
Concept 10
Planning and Execution/ 10
Practical Simulation/ Programming
Result and Interpretation 10
Record of Applied and Action Learning 10
Viva 10
Total 50

Signature of the Student:

Signature of the Faculty:


*As applicable according to the experiment.
Two sheets per experiment (10-20) to be used.
School: School Of Engineering And Technology Campus: Paralakhemundi

Academic Year: .................Subject Name: I O T Subject Code: ………………..

Semester: 4th Program: B-Tech Branch: C.S.E Specialization: ................ST..........

Date:

(Learning by Doing and Discovery)

Moduls and sensor Interfacing IR Remote sensor using Arduino


* Coding Phase: Pseudo Code / Flow Chart / Algorithm

// C++ code
//
#include "LiquidCrystal.h"
LiquidCrystal lcd(8,7,6,5,4,3);

int Flex_VAL = 0;
void setup()
{
pinMode(A0, INPUT);
Serial.begin(9600);
lcd.begin(16,2);
lcd.setCursor(0,0);
lcd.print("Flex Sensor VALUE");
pinMode(10, OUTPUT);
}
void loop()
{
Flex_VAL = analogRead(A0);
Serial.println(Flex_VAL);
lcd.setCursor(0,1);
lcd.print(Flex_VAL);
if (Flex_VAL > 500)
{
digitalWrite(10, HIGH);
}
else
{
digitalWrite(10, LOW);
}
delay(10); // Delay a little bit to improve simulation performance
}

*As applicable according to the experiment.


Two sheets per experiment (10-20) to be used.
Applied and Action Learning

* Testing Phase: Compilation of Code (error detection)


NO ERROR

* Implementation Phase: Final Output (no error)

*As applicable according to the experiment.


Two sheets per experiment (10-20) to be used.
Applied and Action Learning

* Procedure

Hardware Requirements:

➢ Arduino Board (e.g. Arduino Uno)


➢ IR Sensor
➢ IR Remote
➢ Jumper Wires

Software Requirements:

➢ Arduino IDE (version 1.8.x or later)

Circuit Connection:

VCC (Red wire) – Connected to Arduino 5V Pin


GND (Black wire) - Connected to Arduino GND Pin
OUT (green wire) - Connected to Arduino Digital Pin 2

*As applicable according to the experiment.


Two sheets per experiment (10-20) to be used.
Applied and Action Learning
*Conclusion

In conclusion, the circuit connections are correct, and the code is working as
expected. The IR receiver is properly receiving signals from the remote, and the
output is being displayed in the Serial Monitor. If you want to map specific
remote buttons to control different actions, further adjustments can be made to
the code. Let me know if you need help with that!

Applications:

Home Automation → Control lights, fans, and appliances using an IR remote.


Robotics →Use an IR remote to control robot movements.
Security Systems → Detect and decode signals for access control.
Media Control → Build a custom remote-controlled media player.
Toys and Gadgets→ Use IR signals to control toy cars and other electronic devices.

Rubrics
Concept 10
Planning and Execution/ 10
Practical Simulation/ Programming
Result and Interpretation 10
Record of Applied and Action Learning 10
Viva 10
Total 50

Signature of the Student:

Signature of the Faculty:


*As applicable according to the experiment.
Two sheets per experiment (10-20) to be used.
School: School Of Engineering And Technology Campus: Paralakhemundi

Academic Year: .................Subject Name: I O T Subject Code: ………………..

Semester: 4th Program: B-Tech Branch: C.S.E Specialization: ................ST..........

Date:

(Learning by Doing and Discovery)

Moduls and sensor Interfacing Ultrasonic sensor using Arduino


* Coding Phase: Pseudo Code / Flow Chart / Algorithm

// C++ code
//
#define echoPin 2
#define trigPin 3

long duration;
int distance;

void setup()
{
pinMode(trigPin, OUTPUT);
pinMode(echoPin, INPUT);
Serial.begin(9600);
}
void loop()
{
//clears the trigPin condition
digitalWrite(trigPin, LOW);
delayMicroseconds (2);
// Sets the trigPin HIGH (ACTIVE) for 10 microseconds
digitalWrite(trigPin, HIGH);
delayMicroseconds (10);
digitalWrite(trigPin, LOW);
// Reads the echopin, returns the sound wave travel time in microseconds
duration = pulseIn(echoPin, HIGH);
// Calculating the distance
distance = duration * 0.034/2; // Speed of sound wave divided by 2 (go and back)
// Displays the distance on the Serial Monitor
Serial.print("Distance: ");
Serial.print(distance);
Serial.println("cm");
}

*As applicable according to the experiment.


Two sheets per experiment (10-20) to be used.
Applied and Action Learning

* Testing Phase: Compilation of Code (error detection)


NO ERROR

* Implementation Phase: Final Output (no error)

*As applicable according to the experiment.


Two sheets per experiment (10-20) to be used.
Applied and Action Learning

* Procedure

Hardware Requirements:

➢ Arduino Board (e.g. Arduino Uno)


➢ Ultrasonic Sensor
➢ Jumper Wires

Software Requirements:

➢ Arduino IDE (version 1.8.x or later)

Circuit Connection:
VCC (Red wire) → Connected to Arduino’s 5V pin
GND (Black wire) → Connected to Arduino’s GND pin
TRIG (Yellow wire) → Connected to Arduino’s Digital Pin 9
ECHO (White wire) → Connected to Arduino’s Digital Pin 10

*As applicable according to the experiment.


Two sheets per experiment (10-20) to be used.
Applied and Action Learning
*Conclusion

The ultrasonic sensor (HC-SR04) uses sound waves to measure the distance
between itself and an object. The Arduino processes the signal and calculates the
distance based on the time taken for the sound wave to reflect back. The result is
displayed on the Serial Monitor.

Applications:

1. Obstacle Detection – Use in robotics to avoid obstacles.


2. Parking Assistance – Measure the distance of a vehicle from a wall.
3. Level Monitoring – Measure the level of water or other materials.
4. Security Systems – Detect movement or objects in restricted areas.
5. Smart Automation – Trigger automatic doors based on distance
detection.

Rubrics
Concept 10
Planning and Execution/ 10
Practical Simulation/ Programming
Result and Interpretation 10
Record of Applied and Action Learning 10
Viva 10
Total 50

Signature of the Student:

Signature of the Faculty:


*As applicable according to the experiment.
Two sheets per experiment (10-20) to be used.
School: School Of Engineering And Technology Campus: Paralakhemundi

Academic Year: .................Subject Name: I O T Subject Code: ………………..

Semester: 4th Program: B-Tech Branch: C.S.E Specialization: ................ST..........

Date:

(Learning by Doing and Discovery)

Moduls and sensor interfacing soil moisture sensor using Arduino

* Coding Phase: Pseudo Code / Flow Chart / Algorithm

// C++ code
//
int moistureValue;
float moisture_percentage;
void setup()
{
Serial.begin(9600);
}
void loop()
{
moistureValue = analogRead(A0);
moisture_percentage = ((moistureValue/539.00)*100);
Serial.print("\nMoisture Value: ");
Serial.print(moisture_percentage);
Serial.print("%");
delay(1000);
}

*As applicable according to the experiment.


Two sheets per experiment (10-20) to be used.
Applied and Action Learning

* Testing Phase: Compilation of Code (error detection)


NO ERROR

* Implementation Phase: Final Output (no error)

*As applicable according to the experiment.


Two sheets per experiment (10-20) to be used.
Applied and Action Learning

* Procedure

Hardware Requirements:

➢ Arduino Board (e.g. Arduino Uno)


➢ Soil Moisture Sensor
➢ Jumper Wires

Software Requirements:

➢ Arduino IDE (version 1.8.x or later)

Circuit Connection:

➢ VCC – Connect to 5V on Arduino

➢ GND - Connect to GND on Arduino

➢ A0 (Analog Output) - Connect to Analog Pin A0 on Arduino

*As applicable according to the experiment.


Two sheets per experiment (10-20) to be used.
Applied and Action Learning
*Conclusion

A soil moisture sensor with an Arduino is an effective way to measure soil moisture
levels. By connecting the sensor’s VCC, GND, and A0 pins directly to the Arduino, you can
easily read moisture values using the analogRead() function. This setup helps monitor soil
health and automate irrigation systems. The simplicity of the wiring and coding makes it
ideal for beginner and advanced Arduino projects alike.

➢ Applications
o Smart Irrigation Systems – Automatically water plants when soil moisture
drops below a certain level.
o Agriculture – Monitor soil conditions to improve crop yield and reduce
water wastage.
o Greenhouse Automation – Maintain optimal soil moisture levels for plants
in controlled environments.
o Gardening – Help home gardeners keep plants healthy by alerting when
the soil is dry.
o Environmental Monitoring – Measure and log soil moisture data for
research and analysis.

Rubrics
Concept 10
Planning and Execution/ 10
Practical Simulation/ Programming
Result and Interpretation 10
Record of Applied and Action Learning 10
Viva 10
Total 50

Signature of the Student:

Signature of the Faculty:


*As applicable according to the experiment.
Two sheets per experiment (10-20) to be used.
School: School Of Engineering And Technology Campus: Paralakhemundi

Academic Year: .................Subject Name: I O T Subject Code: ………………..

Semester: 4th Program: B-Tech Branch: C.S.E Specialization: ................ST..........

Date:

(Learning by Doing and Discovery)

Uploading Real Time Data to Cloud using Tinkercad & Python


* Coding Phase: Pseudo Code / Flow Chart / Algorithm
Arduino Code in Tinkercad

int sensorPin = A0;


void setup() {
Serial.begin(9600);
}
void loop() {
int sensorValue = analogRead(sensorPin);
Serial.println(sensorValue);
delay(2000);
}

Write a Python Script to Upload Data

import requests
import time
API_KEY = "YOUR_THINGSPEAK_API_KEY"
while True:
sensor_value = input("Enter Sensor Value from Tinkercad Serial Monitor: ")
url = f"https://api.thingspeak.com/update?api_key={API_KEY}&field1={sensor_value}"
response = requests.get(url)
print(f"Sent {sensor_value}, Response: {response.text}")
time.sleep(15)

*As applicable according to the experiment.


Two sheets per experiment (10-20) to be used.
* Testing Phase: Compilation of Code (error detection)
NO ERROR

* Implementation Phase: Final Output (no error)

* As applicable according to the experiment.


Two sheets per experiment (10-20) to be used.
*Procedure
Applied and Action Learning
Hardware Requirements:
H Hardware Requirements:
➢ Arduino (via Tinkercad)
➢ Sensors (e.g. temperature, Pressure, IR sensor, etc.)
➢ USB cable (if physical Arduino)
➢ Internet connection

Software Requirements:
Tinkercad Account
Python (latest version)

Circuit Connection:

Create the circuit in Tinkercad using:


Arduino board

Sensors connected to appropriate pins (e.g., analog or digital)


Power supply and ground connections

Example:
Connect an IR sensor to the analog pin (e.g., A0)
Configure other sensors similarly

*As applicable according to the experiment.


Two sheets per experiment (10-20) to be used.
Applied and Action Learning
*Conclusion

Conclusion:

The experiment demonstrates how to read sensor data from a simulated


Tinkercad Arduino circuit and upload it to ThingSpeak using Python. This setup
enables real-time monitoring and analysis of sensor data through cloud
platforms.

Applications:

Remote monitoring of sensor data


Real-time data analysis using cloud platforms
IoT-based automation and control

Rubrics
Concept 10
Planning and Execution/ 10
Practical Simulation/ Programming
Result and Interpretation 10
Record of Applied and Action Learning 10
Viva 10
Total 50

Signature of the Student:

Signature of the Faculty:


*As applicable according to the experiment.
Two sheets per experiment (10-20) to be used.
School: School Of Engineering And Technology Campus: Paralakhemundi

Academic Year: .................Subject Name: I O T Subject Code: ………………..

Semester: 4th Program: B-Tech Branch: C.S.E Specialization: ................ST..........

Date:

(Learning by Doing and Discovery)

Day night detect with automatic fan regulate with temperature sensor
* Coding Phase: Pseudo Code / Flow Chart / Algorithm

// C++ code
//
const int fanPin = 9;
const int tempPin = A0;

void setup () {
pinMode (fanPin, OUTPUT);
}

void loop () {
int reading = analogRead (tempPin);
float voltage = reading * (5.0 / 1024.0);

// Convert the voltage into the temperature in Celsius


float temp = (voltage - 0.5) *100;

// set the fan speed based on the temperature


if (temp < 25) {
analogWrite(fanPin, 0);
} else if (temp < 30) {
analogWrite(fanPin,128);
} else if (temp < 35) {
analogWrite(fanPin,192);
} else {
analogWrite(fanPin,255);
}
}

*As applicable according to the experiment.


Two sheets per experiment (10-20) to be used.
Applied and Action Learning

* Testing Phase: Compilation of Code (error detection)


NO ERROR

* Implementation Phase: Final Output (no error)

*As applicable according to the experiment.


Two sheets per experiment (10-20) to be used.
Applied and Action Learning

* Procedure

Hardware Requirements:

➢ Arduino Board (e.g. Arduino Uno)


➢ Temperature Sensor [LM36]
➢ DC Moter
➢ H-bridge Moter Driver
➢ 9V Battery
➢ Breadboard
➢ Jumper Wires

Software Requirements:

➢ Arduino IDE (version 1.8.x or later)

Circuit Connection:

1. LM36 Temperature Sensor-


VCC Pin → Connected to Arduino 5V pin.
GND Pin → Connected to Arduino GND pin.
OUT Pin → Connected to Arduino Analog Pin A0.
2. L293D Motor Driver-
Pin 1 (Enable 1,2) → Connected to Arduino Digital Pin 10 (used for enabling the motor).
Pin 2 (Input 1) → Connected to Arduino Digital Pin 9 (used for controlling the motor direction).
Pin 3 (Output 1) → Connected to positive terminal of the fan.
Pin 4 (Ground) → Connected to GND on the breadboard.
Pin 5 (Ground) → Connected to GND on the breadboard.
Pin 6 (Output 2) → Connected to negative terminal of the fan.
Pin 7 (Input 2) → Connected to Arduino Digital Pin 8 (used for controlling motor direction).
Pin 8 (VCC) → Connected to positive terminal of the 9V battery (provides motor power).
Pin 16 (VCC for Logic) → Connected to Arduino 5V pin.
3. DC Fan-
Positive Terminal → Connected to L293D Output 1 (Pin 3).
Negative Terminal → Connected to L293D Output 2 (Pin 6).
4. 9V Battery-
Positive Terminal → Connected to L293D Pin 8.
Negative Terminal → Connected to GND on the breadboard.

*As applicable according to the experiment.


Two sheets per experiment (10-20) to be used.
Applied and Action Learning
*Conclusion

Conclusion:

The Arduino reads the temperature from the LM36 sensor.


Based on the temperature, the Arduino adjusts the PWM signal to the L293D
motor driver.
The L293D controls the fan speed according to the PWM signal, making the fan
spin faster or slower depending on the temperature.

Applications:

Home Automation→ Automatic fan control based on room temperature.


Electronics Cooling→ Used for maintaining optimal temperatures in electronic
devices.
Industrial Use→ Controlling ventilation systems in factories and workspaces.
Smart Cars→ Used for controlling the cooling fan in cars..

Rubrics
Concept 10
Planning and Execution/ 10
Practical Simulation/ Programming
Result and Interpretation 10
Record of Applied and Action Learning 10
Viva 10
Total 50

Signature of the Student:

Signature of the Faculty:


*As applicable according to the experiment.
Two sheets per experiment (10-20) to be used.
School: School Of Engineering And Technology Campus: Paralakhemundi

Academic Year: .................Subject Name: I O T Subject Code: ………………..

Semester: 4th Program: B-Tech Branch: C.S.E Specialization: ................ST..........

Date:

(Learning by Doing and Discovery)

Circuit Song Challenge

* Coding Phase: Pseudo Code / Flow Chart / Algorithm

// C++ code

// A 220
// 233.08
// 246.94
// C 261.63
// C# 277.18
// D293.66
// D#311.13
// E329.63
// F349.23
// F#369.99
// G392
// G#415.3
// A440
void setup()
{
pinMode(7,OUTPUT);
}
void loop()
{
tone(7,392,100); //G
delay(400);
tone(7,329.63,100); //E
delay(400);
tone(7,392,100);
delay(400);
delay(9000);
}

*As applicable according to the experiment.


Two sheets per experiment (10-20) to be used.
Applied and Action Learning

* Testing Phase: Compilation of Code (error detection)


NO ERROR

* Implementation Phase: Final Output (no error)

*As applicable according to the experiment.


Two sheets per experiment (10-20) to be used.
Applied and Action Learning

* Procedure

Hardware Requirements:

➢ Arduino Board (e.g. Arduino Uno)


➢ Breadboard
➢ Piezo
➢ Resistor
➢ Jumper Wires

Software Requirements:

➢ Arduino IDE (version 1.8.x or later)

Circuit Connection:
⬛ Positive terminal of the piezo → Connected to Digital Pin 8 of the Arduino
⬛ Negative terminal of the piezo → Connected to the - rail (GND) of the breadboard
⬛ - rail of the breadboard → Connected to the GND pin of the Arduino
✓ Resistor → Connected in series with the positive wire — it protects the piezo and
helps in generating the correct tone

*As applicable according to the experiment.


Two sheets per experiment (10-20) to be used.
*Conclusion

The piezo buzzer circuit with Arduino demonstrates how to generate sound using
digital signals. By connecting the piezo’s positive terminal to a digital pin and the
negative terminal to the ground, the Arduino can send signals to produce different
tones. This project helps in understanding how sound generation works using
pulse-width modulation (PWM) and can be applied in various real-world systems
like alarms, notifications, and sound-based feedback mechanisms.

Applications:

⬛ Musical Projects→ Used to create simple tunes and melodies for



learning music programming.
⬛ Games and Toys → Used in electronic toys and games to play theme
music or sound effects.
L e a r n i n g and Education → Helps students understand sound generation
and frequency modulation using Arduino.
C r e a t i v e Installations → Used in art and creative projects to add sound-
based interaction.
Alert Systems→ Can be modified to produce different tones for
notifications or alerts. Resistor → Connected in series with the positive wir

Rubrics
Concept 10
Planning and Execution/ 10
Practical Simulation/ Programming
Result and Interpretation 10
Record of Applied and Action Learning 10
Viva 10
Total 50

Signature of the Student:

Signature of the Faculty: *As applicable according to the experiment.


Two sheets per experiment (10-20) to be used.
*As applicable according to the experiment.
Two sheets per experiment (10-20) to be used.
School: School Of Engineering And Technology Campus: Paralakhemundi

Academic Year: .................Subject Name: I O T Subject Code: ………………..

Semester: 4th Program: B-Tech Branch: C.S.E Specialization: ................ST..........

Date:

(Learning by Doing and Discovery)

Smart Home kitchen using Arduino


* Coding Phase: Pseudo Code / Flow Chart / Algorithm
// C++ code
#include <Servo.h>
int Cabinet = 0;
int PIRS = 0;
int Gass = 0;
int Temps = 0;
long readUltrasonicDistance(int triggerPin, int echoPin)
{
pinMode(triggerPin, OUTPUT); // Clear the trigger
digitalWrite(triggerPin, LOW);
delayMicroseconds(2);
// Sets the trigger pin to HIGH state for 10 microseconds
digitalWrite(triggerPin, HIGH);
delayMicroseconds(10);
digitalWrite(triggerPin, LOW);
pinMode(echoPin, INPUT);
// Reads the echo pin, and returns the sound wave travel time in microseconds
return pulseIn(echoPin, HIGH);
}
Servo servo_5;
void setup()
{
Serial.begin(9600);
servo_5.attach(5, 500, 2500);
pinMode(10, INPUT);
pinMode(9, OUTPUT);
pinMode(7, OUTPUT);
pinMode(A1, INPUT);
pinMode(6, OUTPUT);
pinMode(A0, INPUT);
pinMode(4, OUTPUT);
}
void loop()
{
Cabinet = 0.01723 * readUltrasonicDistance(3, 3);
Serial.println(Cabinet);
if (Cabinet < 15) {
servo_5.write(90);
delay(5000); // Wait for 5000 millisecond(s)
} else {
servo_5.write(0);
}
PIRS = digitalRead(10);
Serial.println(PIRS);
if (PIRS == HIGH) {
digitalWrite(9, HIGH);

* As applicable according to the experiment.


Two sheets per experiment (10-20) to be used.
digitalWrite(7, HIGH);
} else {
digitalWrite(9, LOW);

digitalWrite(7, LOW);
}
Temps = (-40 + 0.488155 * (analogRead(A1) - 20));
Serial.println(Temps);
if (Temps >= 30) {
digitalWrite(6, HIGH);
} else {
digitalWrite(6, LOW);
}
Gass = analogRead(A0);
Serial.println(Gass);
if (Gass >= 220) {
digitalWrite(4, HIGH);
} else {
digitalWrite(4, LOW);
}
}

* Testing Phase: Compilation of Code (error detection)


NO ERROR

* Implementation Phase: Final Output (no error)

* As applicable according to the experiment.


Two sheets per experiment (10-20) to be used.
*Procedure
Applied and Action Learning

H Hardware
Hardware Requirements:
Requirements:
➢ Arduino Board (e.g. Arduino Uno)
➢ PIR Sensor
➢ Temperature Sensor [LM36]
➢ Ultrasonic Distance Sensor
➢ Gas Sensor
➢ DC Moter (2)
➢ Piezo
➢ Micro Servo
➢ Resistor
➢ Power Supply (15.70V , 5 Current)
➢ SlideSwitch (2)
➢ Relay SPDT (2)
➢ Light bulb (3)
➢ Jumper Wires

Software Requirements:
Arduino IDE (version 1.8.x or later)
Circuit Connection:
1. Arduino UNO – The central microcontroller managing all components.
2. PIR Motion Sensor – Connected to the Arduino to detect movement:
VCC → 5V
GND → GND
Output Pin → Digital Pin
3. Ultrasonic Sensor – For distance measurement:
VCC → 5V
GND → GND
Trigger Pin → Digital Pin
Echo Pin → Digital Pin
4. Temperature Sensor (TMP36) – For kitchen environment monitoring:
VCC → 5V
GND → GND
Data Pin → Digital Pin
5. Servo Motor – For controlling mechanical movement (possibly for opening a kitchen door):
Signal Pin → PWM Pin
VCC → 5V
GND → GND
6. Buzzer – For alert or alarm:
Positive Terminal → Digital Pin
Negative Terminal → GND
7. Relay SPDT – To control high-voltage appliances (like bulbs):
Signal Pin → Digital Pin
VCC → 5V
GND → GND
8. Light Bulbs – Connected to the relay for automatic control based on sensor readings.
10. Push Button Switches – For manual override/control:
One terminal → Digital Pin
Other terminal → GND

*As applicable according to the experiment.


Two sheets per experiment (10-20) to be used.
Applied and Action Learning
*Conclusion

Conclusion:

This Smart Home Kitchen project demonstrates the integration of multiple


sensors and actuators using Arduino. It enhances convenience, safety, and energy
efficiency by automating lighting, environment monitoring, and appliance
control. The combination of PIR, ultrasonic, and DHT11 sensors allows intelligent
decision-making, making the kitchen more efficient and user-friendly.

Applications:

Automatic Light Control – Lights turn on when motion is detected using the PIR
sensor.
Temperature and Humidity Monitoring – Provides real-time data and triggers
actions if thresholds are crossed.
Distance Measurement – Ultrasonic sensor helps in automation based on
proximity (e.g., opening a drawer).
Smart Alerts – Buzzer alerts based on sensor data.
Appliance Control – Relay module allows control of high-voltage appliances like
lights or fans.

Rubrics
Concept 10
Planning and Execution/ 10
Practical Simulation/ Programming
Result and Interpretation 10
Record of Applied and Action Learning 10
Viva 10
Total 50

Signature of the Student:

Signature of the Faculty:


*As applicable according to the experiment.
Two sheets per experiment (10-20) to be used.
School: School Of Engineering And Technology Campus: Paralakhemundi

Academic Year: .................Subject Name: I O T Subject Code: ………………..

Semester: 4th Program: B-Tech Branch: C.S.E Specialization: ................ST..........

Date:

(Learning by Doing and Discovery)

Tiny Piano – Mini breadboard


* Coding Phase: Pseudo Code / Flow Chart / Algorithm

*NO CODE FOR → Tiny Piano – Mini breadboard

No direct C++ code is required for this project since the tone generation is
handled through the RC circuit using the 555 timer in astable mode.

The 555 timer operates in astable mode, where different resistance values are
selected through push buttons.

These resistance values modify the RC time constant, which changes the
output frequency (and the tone).

*As applicable according to the experiment.


Two sheets per experiment (10-20) to be used.
* Testing Phase: Compilation of Code (error detection)
NO ERROR

* Implementation Phase: Final Output (no error)

*
As applicable according to the experiment.
Two sheets per experiment (10-20) to be used.
*Procedure
Applied and Action Learning
Hardware Requirements:
H Hardware Requirements:
➢ Breadboard Mini
➢ Piezo
➢ Timer 555
➢ SlideSwitch
➢ Resistor ( 9 )
➢ Capacitor ( 100 nF)
➢ Pushbotton ( 8 )
➢ 9V Battery

Software Requirements:
Arduino IDE (version 1.8.x or later)

Circuit Connection:

1. Power Source: 9V battery connected to the breadboard (red wire to positive rail,
black wire to negative rail).
2. 555 Timer:
Pin 1 → Ground (negative rail)
Pin 8 → +9V (positive rail)
Pin 3 → Output connected to a buzzer
Pin 2 → Connected to a series of push buttons via resistors and capacitors
Pin 4 → Connected to +9V (reset pin)
Pin 5 → Connected to a capacitor to ground
Pin 6 & 7 → Connected to resistors and capacitors for timing configuration
3. Push Buttons:
Each push button is wired with a different resistor value, changing the RC time
constant of the 555 timer, which generates different output frequencies (tones).
Common side of all push buttons connected to the ground.
4. Buzzer:
Positive terminal connected to the output of the 555 timer (Pin 3)
Negative terminal connected to ground

*As applicable according to the experiment.


Two sheets per experiment (10-20) to be used.
Applied and Action Learning
*Conclusion

Conclusion:

This Tiny Piano project successfully demonstrates how to generate different


sound frequencies using a 555 timer and varying resistor values through push
buttons. It reinforces the concept of astable multivibrator circuits and RC timing.

Applications:

1.Used for generating simple musical tones by varying resistance and


capacitance.

2. Demonstrates the working principle of an astable multivibrator using a 555


timer.

3. Useful for understanding the relationship between RC circuits and sound


frequencies.

Rubrics
Concept 10
Planning and Execution/ 10
Practical Simulation/ Programming
Result and Interpretation 10
Record of Applied and Action Learning 10
Viva 10
Total 50

Signature of the Student:

Signature of the Faculty:


*As applicable according to the experiment.
Two sheets per experiment (10-20) to be used.

You might also like