Professional Documents
Culture Documents
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
HIGH LOW
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
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.