5V 10%
5V 10%
10mA (typical)
Analog, 0-5V
1-10 mV/C
1-2 seconds
-20C to 120C
-40C to 150C
10mm x 10mm x 5mm (L x W x H)
Applications
Conclusion
The Heat Flame Sensor is a reliable and accurate component designed to detect heat and flames in various environments. Its high sensitivity, fast response time, and low power consumption make it an ideal choice for fire detection systems, smoke detectors, and industrial safety applications.
Heat Flame Sensor Documentation
Overview
The Heat Flame Sensor is an IoT component designed to detect heat, flames, or sparks in various applications. It is commonly used in fire alarm systems, industrial monitoring, and robotics. This sensor provides a digital output indicating the presence or absence of heat or flames.
Specifications
Operating Voltage: 5V
Operating Current: 10mA
Detection Range: 0.5m to 5m
Detection Angle: 60
Response Time: 2 seconds
Digital Output: High (logic 1) when heat/flame detected, Low (logic 0) when no heat/flame detected
Code Examples
### Example 1: Arduino-based Fire Alarm System
In this example, we'll use the Heat Flame Sensor to create a basic fire alarm system with a buzzer and an LED indicator.
Hardware Requirements
Arduino Uno or compatible board
Heat Flame Sensor
Buzzer
LED
Resistor (1k)
Software Code
```c
const int heatFlamePin = 2; // Digital input pin for Heat Flame Sensor
const int buzzerPin = 9; // Digital output pin for Buzzer
const int ledPin = 13; // Digital output pin for LED
void setup() {
pinMode(heatFlamePin, INPUT);
pinMode(buzzerPin, OUTPUT);
pinMode(ledPin, OUTPUT);
}
void loop() {
int heatFlameState = digitalRead(heatFlamePin);
if (heatFlameState == HIGH) {
digitalWrite(buzzerPin, HIGH);
digitalWrite(ledPin, HIGH);
} else {
digitalWrite(buzzerPin, LOW);
digitalWrite(ledPin, LOW);
}
delay(50);
}
```
### Example 2: Raspberry Pi-based Industrial Monitoring System
In this example, we'll use the Heat Flame Sensor to monitor for heat or flames in an industrial setting and send alerts via email using a Raspberry Pi.
Hardware Requirements
Raspberry Pi 3 or later
Heat Flame Sensor
Breadboard and jumper wires
Software Code
```python
import RPi.GPIO as GPIO
import smtplib
from email.mime.text import MIMEText
GPIO.setmode(GPIO.BCM)
heat_flame_pin = 17 # GPIO pin for Heat Flame Sensor
def send_alert(subject, message):
# Email configuration
sender_email = "your_email@example.com"
recipient_email = "recipient_email@example.com"
smtp_server = "smtp.example.com"
smtp_port = 587
msg = MIMEText(message)
msg['Subject'] = subject
msg['From'] = sender_email
msg['To'] = recipient_email
server = smtplib.SMTP(smtp_server, smtp_port)
server.starttls()
server.login(sender_email, "your_password")
server.sendmail(sender_email, recipient_email, msg.as_string())
server.quit()
while True:
heat_flame_state = GPIO.input(heat_flame_pin)
if heat_flame_state:
subject = "Heat/Flame Detected"
message = "Heat or flame detected in the industrial area. Please investigate."
send_alert(subject, message)
time.sleep(1)
```
Note: Ensure to replace the email configuration with your actual email settings.
These examples demonstrate how to use the Heat Flame Sensor in various contexts, including Arduino-based projects and Raspberry Pi-based industrial monitoring systems. By incorporating this sensor into your projects, you can create reliable and efficient systems for detecting heat and flames.