Iot EDITING
Iot EDITING
NO: 1
STUDY THE ESSENTIALS OF IoT
DATE:17.02.25
PROBLEM STATEMENT
Study the essentials of Internet of Things.
DESIGN APPROACH
IoT
Internet of Things (IoT) is also known as the "Connected World" or "Smart Network." The
Internet of Things (IoT) refers to a network of interconnected devices that collect and share data
over the internet. These devices include sensors, actuators, smart appliances, and industrial
machines.
Connected Devices
Smart Network
Intelligent Systems
M2M vs IoT
Feature M2M IoT
Connectivity Uses cellular networks Uses internet, cloud
Human Interaction No Yes
Data Storage Local storage Cloud-based storage
Scalability Limited Highly scalable
Is M2M the same as IoT?
No, but IoT is an evolution of M2M, integrating internet and cloud technologies for more
advanced automation.
Arduino
Arduino is an open-source microcontroller platform used for electronics and IoT projects.
Fig 1.5 ARDUINO
Pin Diagram
Digital I/O Pins: Used for input/output operations.
Analog Pins: Read sensor values.
PWM Pins: Provide analog-like output.
Power Pins: 3.3V, 5V, and GND supply power.
Raspberry Pi
Raspberry Pi is a small, powerful single-board computer capable of running an operating system.
Fig 1.6 Raspberry Pi
Pin Diagram
GPIO Pins: Used to control devices.
Power Pins: 3.3V, 5V, and GND.
Communication Pins: I2C, SPI, UART for external devices.
EXAMPLE:
DEVELOPING AN APPLICATION FOR LED BLINK USING ARDUINO
DESIGN APPROACH
HARDWARE REQUIREMENTS:
1. 1 X LED
2. Breadboard
3. Arduino UNO R4 or earlier versions
COMPONENTS DESCRIPTION:
1. 1 X LED: We are controlling only one LED in this program.
2. Breadboard: A breadboard is a fundamental tool used in electronics and prototyping
to build and test circuits without soldering.
3. Arduino UNO R4 or earlier versions.
CONNECTIONS:
1. LED Connections: Connect the LED to the breadboard. The LED has two legs, the
longer of which is the anode (positive) and the shorter of which is the cathode
(negative).
2. Ground (GND) Connection: Connect a jumper wire from the same row as the LED’s
cathode to any Arduino board GND (Ground) pin. This connects the circuit to the
ground of the Arduino.
PROGRAM:
int LEDpin = 13;
int delayT = 1000;
void setup() {
// put your setup code here, to run once:
pinMode(LEDpin, OUTPUT);
}
void loop() {
// put your main code here, to run repeatedly:
digitalWrite(LEDpin, HIGH);
delay(delayT);
digitalWrite(LEDpin, LOW);
delay(delayT);
}
STEPS TO UPLOAD THE CODE:
1. Install Arduino IDE – Download and install from the Arduino website.
2. Connect Arduino Board – Plug in the Arduino using a USB cable.
3. Select Board – Go to Tools > Board and choose the correct Arduino model.
4. Select Port – Go to Tools > Port and select the correct COM port.
5. Write or Open Code – Write a new sketch or open an existing one.
6. Verify Code – Click the ✔ (Checkmark) button to compile the code.
7. Upload Code – Click the ➡ (Arrow) button to upload the code to the board.
8. Check Output – Open the Serial Monitor (Tools > Serial Monitor) if needed.
SAMPLE INPUT/OUTPUT:
CONCLUSION
Essentials of Internet of Things are studied with the sample application is executed and
verified.
EX.NO:2 DEVELOP AN APPLICATION FOR LM35
TEMPERATURE SENSOR TO DISPLAY
DATE:
TEMPERATURE VALUES USING ARDUINO OR
RASPBERRY PI
Aim:
To develop an application for LM35 Temperature Sensor to display temperature values
using Arduino.
Components Required
1 × Breadboard
1 × Arduino Uno
1 × LM35 Temperature Sensor
4 × Jumper
Circuit Diagram:
Procedure:
1. Give Connections as per the circuit diagram.
2. Open the Arduino IDE.
3. Write the code.
4. Set the Arduino board and port in Tools -> Board and Tools -> Port.
5. Compile the code by clicking verify in the upper left corner.
6. Upload the code by just clicking the right arrow present just next to verify.
7. Once uploading is complete, the code automatically runs on the Arduino and the LED
is turned on.
PROGRAM:
const int lm35_pin = A1; /* LM35 O/P pin */
void setup() {
Serial.begin(9600);
}
void loop() {
int temp_adc_val; float temp_val;
temp_adc_val = analogRead(lm35_pin); /* Read Temperature */
temp_val = (temp_adc_val * 4.88); /* Convert adc value to equivalent voltage */
temp_val = (temp_val/10); /* LM35 gives output of 10mv/°C */
Serial.print("Temperature = ");
Serial.print(temp_val);
Serial.print(" Degree Celsius\n");
delay(1000);
}
OUTPUT:
Result:
Thus the application was developed to monitor the temperature using LM35 temperature
sensor.
EX.NO: 3 DEVELOP AN APPLICATION FOR FOREST FIRE
DETECTION END NODE USING RASPBERRY PIDEVICE
DATE:
AND SENSOR
Aim:
To develop an application for forest fire detection using Arduino.
Components Required
1 × Breadboard
1 × Arduino Uno
1 × Flame Sensor Module
1 × Buzzer
2 × Jumper
Fire Sensor:
Buzzer:
Circuit Diagram:
Procedure:
1. Give Connections as per the circuit diagram.
2. Open the Arduino IDE.
3. Write the code.
4. Set the Arduino board and port in Tools -> Board and Tools -> Port.
5. Compile the code by clicking verify in the upper left corner.
6. Upload the code by just clicking the right arrow present just next to verify.
7. As soon as the flame is detected , the alert will be given
Coding:
const int buzzerPin = 5;
const int flamePin = 2;
int Flame = HIGH;
void setup()
{
pinMode(buzzerPin, OUTPUT);
pinMode(flamePin, INPUT);
Serial.begin(9600);
}
void loop()
{
Flame = digitalRead(flamePin); if
(Flame== LOW)
{
Serial.println("Fire is Detected");
digitalWrite(buzzerPin, HIGH);
}
{
else
{
Serial.println("No Fire is Detected");
digitalWrite(buzzerPin, LOW);
}
OUTPUT:
Result:
Thus the application was developed for the detection of forest fire.