0% found this document useful (0 votes)
12 views20 pages

Iot Lab Revision

Intro to use arduino with codes

Uploaded by

kareemdola132
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)
12 views20 pages

Iot Lab Revision

Intro to use arduino with codes

Uploaded by

kareemdola132
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/ 20

Creating a smart home system through the Internet of

Things

In this project, you will learn to interface a PIR sensor in smart home by IOT.

Hardware Components:
1. Arduino Uno:
board is used for interfacing the input-output elements to construct a
project. It is an open-source microcontroller board that can be
programmed according to user requirements.

What is Arduino?

2. Passive Infrared Sensor(PIR):


PIR sensor detects and measures the infrared radiation emitting from
the objects present in its range of application. PIRsensor is commonly
used in motion detection applications.
3. LED:
Light Emitting Diode (LED) is a semiconductor device that emits light when the
current flows through it. The color of the light emitted by the LED depends on the
bandgap the electrons need to cross to recombine with the holes in the
semiconductor.
4. Resistor-220Ω:
The resistor is a passive electronic component that offers resistance to the current
flowing through it. In this project, we use 220Ω resistors to reduce the current
flowing through the LED.

Circuit Connections:

• Connect the power pin of the PIR sensor to the 5V of the Arduino via a breadboard.
• Connect the ground of the PIR sensor to the ground of the Arduino.
• Connect the signal pin of the PIR sensor to D13 of the Arduino.
• Connect the Anode of the LED pin to D12 of the Arduino through a 220Ω resistor.
• Connect the cathode of the Arduino to the ground rail on the breadboard.
Code:
Establishing a plant watering system using the Internet of
Things

Hardware Components:
• Arduino Uno:
board is used for interfacing the input-output elements to construct a
project. It is an open-source microcontroller board that can be
programmed according to user requirements.
What is Arduino?

• breadboard:
is a construction base used to build semi-permanent
prototypes of electronic circuits.
• soil moisture sensor:
is a simple breakout for measuring the moisture in soil and similar
materials
• temperature sensor:
is a device that detects and measures hotness and
coolness and converts it into an electrical signal.

• DC Motor:
is any of a class of rotary electrical motors that converts direct current
(DC) electrical energy into mechanical energy.
Circuit Connections:
Code:
Establishing a gas leakage system using the Internet of
Things
Hardware Components:
• Arduino Uno:
board is used for interfacing the input-output elements to construct a
project. It is an open-source microcontroller board that can be
programmed according to user requirements.
What is Arduino?

• breadboard:
is a construction base used to build semi-permanent
prototypes of electronic circuits.
• Gas sensor:
is defined as a device able to detect the presence of certain
gases in a controlled volume.
• Piezo:
is a Greek root meaning pressure or push. It's combined
with some other words to make new nouns and adjectives.
• LED:
Light Emitting Diode (LED) is a semiconductor device that emits light when the
current flows through it. The color of the light emitted by the LED depends on the
bandgap the electrons need to cross to recombine with the holes in the
semiconductor.

• Resistor-220Ω:
The resistor is a passive electronic component that offers resistance to the current
flowing through it. In this project, we use 220Ω resistors to reduce the current
flowing through the LED.
Circuit Connections:
Code:
IoT Smart Gate Design for Smart Home

Hardware Components:
• Arduino Uno:
board is used for interfacing the input-output elements to construct a
project. It is an open-source microcontroller board that can be
programmed according to user requirements.
What is Arduino?

• breadboard:
is a construction base used to build semi-permanent
prototypes of electronic circuits.
• Ultrasonic Sensors:

measure the distance to the target by measuring the time


between the emission and reception. An optical sensor has
a transmitter and receiver, whereas an ultrasonic sensor
uses a single ultrasonic element for both emission and
reception.
• Micro Servo:
is one of the lightest servos we carry, weighing just 3.7 g
(0.13 oz) without the lead. It is intended for use between 4.8
and 6 V (i.e. with 4- or 5-cell NiMH or NiCD battery packs).
Servo horns and associated hardware are included.
Circuit Connections:
Code:

You might also like