- Популярные видео
- Авто
- Видео-блоги
- ДТП, аварии
- Для маленьких
- Еда, напитки
- Животные
- Закон и право
- Знаменитости
- Игры
- Искусство
- Комедии
- Красота, мода
- Кулинария, рецепты
- Люди
- Мото
- Музыка
- Мультфильмы
- Наука, технологии
- Новости
- Образование
- Политика
- Праздники
- Приколы
- Природа
- Происшествия
- Путешествия
- Развлечения
- Ржач
- Семья
- Сериалы
- Спорт
- Стиль жизни
- ТВ передачи
- Танцы
- Технологии
- Товары
- Ужасы
- Фильмы
- Шоу-бизнес
- Юмор
Episode 28 || Part 1 || All About flame sensor withesp32
#explore #arduino #arduinoproject #esp32 #esp32project #esp32projects #viral #viralvideo #video #viralvideos
// jaha bhi library include ki hai waha per angle bracket laga dena
#define AO_PIN 36 // ESP32's pin GPIO36
connected to AO pin of the flame sensor
void setup() {
// initialize serial communication
Serial.begin(9600);
// set the ADC attenuation to 11 dB (up to ~3.3V
input)
analogSetAttenuation(ADC_11db);
}
void loop() {
int infrared_value = analogRead(AO_PIN);
Serial.print("The AO value: ");
Serial.println(infrared_value);
}
#define DO_PIN 13 // ESP32's pin GPIO13
connected to DO pin of the flame sensor
void setup() {
// initialize serial communication
Serial.begin(9600);
// initialize the ESP32's pin as an input
pinMode(DO_PIN, INPUT);
}
void loop() {
int flame_state = digitalRead(DO_PIN);
if (flame_state == HIGH)
Serial.println("No flame dected = The fire is
NOT detected");
else
Serial.println("Flame dected = The fire is
detected");
}
Видео Episode 28 || Part 1 || All About flame sensor withesp32 канала YOGELECTRONICS_HUB
// jaha bhi library include ki hai waha per angle bracket laga dena
#define AO_PIN 36 // ESP32's pin GPIO36
connected to AO pin of the flame sensor
void setup() {
// initialize serial communication
Serial.begin(9600);
// set the ADC attenuation to 11 dB (up to ~3.3V
input)
analogSetAttenuation(ADC_11db);
}
void loop() {
int infrared_value = analogRead(AO_PIN);
Serial.print("The AO value: ");
Serial.println(infrared_value);
}
#define DO_PIN 13 // ESP32's pin GPIO13
connected to DO pin of the flame sensor
void setup() {
// initialize serial communication
Serial.begin(9600);
// initialize the ESP32's pin as an input
pinMode(DO_PIN, INPUT);
}
void loop() {
int flame_state = digitalRead(DO_PIN);
if (flame_state == HIGH)
Serial.println("No flame dected = The fire is
NOT detected");
else
Serial.println("Flame dected = The fire is
detected");
}
Видео Episode 28 || Part 1 || All About flame sensor withesp32 канала YOGELECTRONICS_HUB
Комментарии отсутствуют
Информация о видео
16 ч. 36 мин. назад
00:09:59
Другие видео канала





















