ycliper

Популярное

Музыка Кино и Анимация Автомобили Животные Спорт Путешествия Игры Юмор

Интересные видео

2025 Сериалы Трейлеры Новости Как сделать Видеоуроки Diy своими руками

Топ запросов

смотреть а4 schoolboy runaway турецкий сериал смотреть мультфильмы эдисон
Скачать

DIY Flame sensor circuit(IOT) with buzzer using Rasberry Pi

Dynamic Veer

IOT

Flame Detector

Rasberry PI

Автор: Dynamic Veer

Загружено: 2018-08-12

Просмотров: 1063

Описание: In this experiment, we will use a far-infrared flame sensor along with Rasberry Pi and a Buzzer. We can also use IOT buzzer here.
Our circuit can detect infrared light with a wavelength ranging from 80cm.
A far-infrared flame probe converts the strength changes of the external infrared light into current changes. And then it converts analog quantities into digital ones.
In this experiment, connect pin DO of flame sensor module & Buzzer to a GPIO of Raspberry Pi to detect flame existence & produce sound by python programming.
Experimental Procedures
Step 1: Build the circuit Raspberry Pi Flame Sensor GPIO17 (pin 11) to DO
Buzzer (DO) to 7(GPIO)
3.3V to +
GND to ground.
Run the python Program
Ignite a lighter in the range of 80 cm near the module and a string “Detected Flame! Run Save your Life” will be displayed on the screen and loud beep sound from buzzer indicating danger.

#Python Program for Flame Sensor circuit using Rasberry PI 3 and Buzzer

import RPi.GPIO as GPIO
import time
import os

FlamePin = 11

Define Buzzer pin
Buzzer = 7

def beep(x):
GPIO.output(Buzzer, 0)
time.sleep(x)
GPIO.output(Buzzer, 1)
time.sleep(x)

def init():
GPIO.setmode(GPIO.BOARD)
GPIO.setup(FlamePin, GPIO.IN, pull_up_down=GPIO.PUD_UP)
Buzzer setup:
GPIO.setup(Buzzer, GPIO.OUT)
GPIO.output(Buzzer, 1)

def myISR(ev=None):
for i in range(0, 5):
beep(0.2)
print ("Flame is detected ..Run!go and save your life")

def loop():
GPIO.add_event_detect(FlamePin, GPIO.FALLING, callback=myISR)

while True:
pass


def destroy():
GPIO.output(Buzzer, 1)
GPIO.cleanup()


if _name_ == '__main__':
init()
try:
loop()
except KeyboardInterrupt:
destroy()
print ("The End......")

Hope you liked my vedios.
Thankyou
Veer

Не удается загрузить Youtube-плеер. Проверьте блокировку Youtube в вашей сети.
Повторяем попытку...
DIY Flame sensor circuit(IOT) with buzzer using Rasberry Pi

Поделиться в:

Доступные форматы для скачивания:

Скачать видео

  • Информация по загрузке:

Скачать аудио

Похожие видео

© 2025 ycliper. Все права защищены.



  • Контакты
  • О нас
  • Политика конфиденциальности



Контакты для правообладателей: [email protected]