You are on page 1of 15

BASICS OF IOT

Objectives:
Exercise C5.1: Making a longest conductor for 4-5 light/fan as an output
Exercise C5.2: Creating your own sensor-based circuit
- LDR Sensor
- Light Sensor
- Gas Sensor

CFP
Vedika Chakraborty U23256
Shriya Kakar U23230
Exercise C5.1: Making conductive circuit

It was observed that to provide enough current for the bulb to


work and not burn, a number of items with coating helped
increase resistance within the circuit. The pencil case greatly
impacted, and the scale and key came following that. This was
due to the amount of coating, length and area the current had to
also pass through.
Exercise C5.2 Creating your own sensor-based circuit
C5.2(A) - LDR Sensor
C5.2(B) - IR Sensor
C5.2(C) - Gas Sensor
Exercise C5.2(A): LDR SENSOR
Logic Algorithm
Start the Loop

Read The Light


Intensity

HIGH LOW

The Light Wont The Light Will


Glow Up Glow Up
Exercise C5.2(A): LDR SENSOR
Circuit
LED

ARDUINO

BREADBOX

LDR SENSOR
Exercise C5.2(A): LDR SENSOR
Code
Exercise C5.2(A): LDR SENSOR
Working
It was observed that
by tapping on the LDR
sensor the light was
switch on and off.
Exercise C5.2(B): GAS SENSOR WITH SERVO MOTER
Logic Algorithm
Start the Loop

If
Sensor False
Value
> 65

True
Rotate the servo Else, Rotate the
to 180 degrees Servo to 0
for 5 seconds degrees
Exercise C5.2(B): GAS SENSOR WITH SERVO MOTER
Circuit

ARDUINO

GAS SENSOR

BREADBOX
Servo Motor
Exercise C5.2 (B): GAS SENSOR
WITH SERVO MOTER
Code
Exercise C5.2(B): GAS SENSOR WITH SERVO MOTOR
Working
It was observed that the
motor turned 180
degrees or 0 degrees
with detected smoke as
mentioned in the code.
Exercise C5.2(C): IR SENSOR WITH LED
Logic Algorithm
Start the Loop

Read The
Sensor

HIGH LOW

Light Switches Light Switches


On Off
Exercise C5.2(C): IR SENSOR WITH LED
Circuit

LED

BREADBOX ARDUINO

IR SENSOR
Exercise C5.2(C): IR SENSOR WITH LED
Code
Exercise C5.2(C): IR SENSOR WITH LED
Working
It was observed that the
IR sensor worked with
obstructed light, the
LED switched on and
without obstruction it
was kept Off. Without
any contact the IR
sensor worked.

You might also like