Open Ended Lab Report (Expt-9)
Open Ended Lab Report (Expt-9)
On
Open-ended Experiment (Experiment-9)
Submitted by Group:-
1
AIM OF THE OPEN-ENDED EXPERIMENT:
REQUIREMENTS
Software: Arduino IDE (Open source software)
Hardware:
● Arduino microcontroller
● Breadboard
● Flame Sensor
● Buzzer
● Red LED
● Green LED
● Male-Male & Male-Female Jumping Wires
THEORY:
A flame detection system is crucial for ensuring safety in environments prone to fire
hazards. The system utilizes a flame sensor to detect the presence of fire and triggers a
red alert and buzzer to notify of the danger. The system incorporates various hardware
components such as the Arduino microcontroller for processing, LEDs for visual
indication, and a buzzer for an audible alert. The software code written in Arduino
IDE reads the sensor's data and activates the alert mechanisms accordingly.
The components of the system are chosen for their reliability and ease of integration:
The software code developed using the Arduino IDE reads the sensor data
continuously and triggers the alert mechanisms when a flame is detected. This setup
ensures a real-time response, enhancing the safety of the monitored environment.
2
CODE DEVELOPMENT
const int buzzerPin = 12;
const int flamePin = 11;
int Flame = HIGH;
int red ed = 5;
int greenled = 6;
void setup()
{
pinMode(buzzerPin, OUTPUT);
pinMode(redled, OUTPUT);
pinMode(greenled, OUTPUT);
pinMode(flamePin, INPUT);
Serial.begin(9600);
}
void loop()
{
Flame = digitalRead(flamePin);
if (Flame== LOW)
{
digitalWrite(buzzerPin, HIGH);
digitalWrite(redled, HIGH);
digitalWrite(greenled, LOW);
}
else
{
digitalWrite(buzzerPin, LOW);
digitalWrite(greenled, HIGH);
digitalWrite(redled, LOW);
}
}
OBSERVATIONS
During the experiment, the flame detection system showed a high level of
responsiveness and accuracy in identifying the presence of a flame. Here are the key
observations:
STUDENT SIGNATURE
Date:-
Signature Date