DIY Smoke Sensor for Home Assistant with D1 Mini, MQ-2 & ESPHome

  Рет қаралды 15,429

KPeyanski

KPeyanski

Күн бұрын

Пікірлер: 97
@videosPGA
@videosPGA 2 жыл бұрын
Thanks for the excellent explanation. I would like to put a buzzer that is activated when the lower limit is exceeded, could you tell me how to do it? Thank you
@andreaschen1377
@andreaschen1377 2 жыл бұрын
Thank you for your instructions. I'm wondering if this application applies to ESP32 boards b/c there is a difference for the ADC pin voltage tolerance. The MQ sensors are driven by 5V so under high PPM the sensor output can go well beyond 3.3V, the absolute maximum for ESP32 GPIOs. This posts a threat to fry ESP32 boards if my understanding is correct. The solution is discarding the MQ sensor board and wiring from the 6pin module, dividing the onboard RL (1k Ohm, code 102) into two resistors e.g. 330 Ohm and 470 Ohm (to GND), then applying ADC around the 470 Ohm resistor we get a perfectly safe 0V-2.94V input range to ESP32 GPIOs. Kindly share your thoughts.
@davidhopkins
@davidhopkins 2 ай бұрын
Great question! Not answered after 2 years??!!Poster has answered most comments. Do you need to toss the mq board? Cant we wire the sensor though a level shifter? This is the frustration with these esp boards. So many sensors are designed for 5v.
@businesstalk
@businesstalk 3 ай бұрын
Your DIY videos are awesome!! Thanks!
@KPeyanski
@KPeyanski 3 ай бұрын
Thank you! 😊
@robertaccess
@robertaccess 2 жыл бұрын
OMG, very very glad to see you posting... Hope you are welll....
@KPeyanski
@KPeyanski 2 жыл бұрын
Yes, I'm fine thank you :) and many thanks for the comment. Take care!
@TimHodgesofEdinburgh
@TimHodgesofEdinburgh 2 жыл бұрын
Thank you. Been meaning to add a smoke alarm in the loft where I keep the Home Assistant Pi. This will do the job perfectly.
@KPeyanski
@KPeyanski 2 жыл бұрын
Enjoy!
@TimHodgesofEdinburgh
@TimHodgesofEdinburgh 2 жыл бұрын
@@KPeyanski finished it. Only snag was when I tried to do the firmware install onto the esp8266 whilst connected to the home assistant pi. ESPhome couldn't see the Pi port that the d1 was plugged into. After a bit more research I did a manual install using the windows firmware installer. It then connected over WiFi straight away and automations easily setup. Thanks
@okanerdem
@okanerdem 2 жыл бұрын
@@TimHodgesofEdinburgh How did you do this?
@ronm6585
@ronm6585 2 жыл бұрын
Good job my man. I haven't set one up yet but I am planning to. Thanks.
@KPeyanski
@KPeyanski 2 жыл бұрын
Thanks, that means I've released this video just in time for you ;)
@ronm6585
@ronm6585 2 жыл бұрын
@@KPeyanski Lol. Yes indeed. Thanks.
@andresteyn1884
@andresteyn1884 2 жыл бұрын
Thank you. I tried your smoke sensor and it works perfectly.
@KPeyanski
@KPeyanski 2 жыл бұрын
Great to hear! Check my other sensor videos as well
@asopok
@asopok 2 жыл бұрын
Great video. How do I add a buzzer to it so that the buzzer sounds when smoke or gas is detected
@tristanssmartesheim
@tristanssmartesheim 2 жыл бұрын
Good idea. The issue is the Power supply, and that sou have to put it on the ceiling.
@KPeyanski
@KPeyanski 2 жыл бұрын
Yes, that could be an issue if your place is already finished and pretty. Some cables going to the ceiling will not be a pretty sight.
@reffo77
@reffo77 Жыл бұрын
Hi, I have a question .. on my Esp32 Wroom - I do not have marked A0 Pin -. where should I connect ? thanks for help great video btw
@KPeyanski
@KPeyanski Жыл бұрын
Is there an analog pin?
@reffo77
@reffo77 Жыл бұрын
@@KPeyanski I suppose so .. seems from 32-39 are both a and d
@vegaswayne247
@vegaswayne247 2 жыл бұрын
I got a 6 pack of these from Amazon. I need to figure out where to use all of them. I noticed that my percent level went from 55% when I first hooked it up to a fairly stable 25% after a day. I think I will use them where natural gas is used, such as the furnace in my attic and the water heater in the garage.
@KPeyanski
@KPeyanski 2 жыл бұрын
That sound like a plan to me. Enjoy!
@alvinnoboa8694
@alvinnoboa8694 2 жыл бұрын
Almost sure that in daylight time the reading will be higher than at night just bz of human activity
@louisviciedo
@louisviciedo Жыл бұрын
Great video Kiril! Very clear instructions. I was able to set up 5 smoke sensors successfully, however how can we disable the red LED light?
@KPeyanski
@KPeyanski Жыл бұрын
Glad you like the video and no idea abut the LED. Enjoy your sensors!
@mihaiionita3919
@mihaiionita3919 Жыл бұрын
Remove it with a set of pliers from the board.
@rogeriocamargo1984
@rogeriocamargo1984 2 жыл бұрын
Very good! I did and it works fine!
@KPeyanski
@KPeyanski 2 жыл бұрын
Well done! Enjoy!
@cvasantrao
@cvasantrao Жыл бұрын
Nice and useful video. Could do it successfully . One query. Is it possible to calculate the ppm? Thanks for the great video.
@okanerdem
@okanerdem 2 жыл бұрын
If we are using HA on the VM, how can we connect to configure ? Is it possible to connect by wifi for first config or we need to use a raspberry pi for this?
@jordimartin2001
@jordimartin2001 2 жыл бұрын
I am following your online articule but using an esp32. I connected the A0 to pin GPIO36. In home assistant, I am getting a static reading of 102.60. Any ideas?
@waelzayed
@waelzayed Жыл бұрын
Great job, well done. Thanks for the idea
@KPeyanski
@KPeyanski Жыл бұрын
No problem 👍
@cristian.s94
@cristian.s94 Жыл бұрын
Is there any zigbee alternative to the D1 Mini? Thanks.
@KPeyanski
@KPeyanski Жыл бұрын
not sure about that
@NewAgeTechnologies
@NewAgeTechnologies 2 жыл бұрын
Thanks for your useful video. Could you pls let me know how to install d1mini by manual download?
@AndyBerman
@AndyBerman 2 жыл бұрын
Great video! I’m already using AO on my D1 Mini. What would need to change to use the digital out of MQ2 instead of the analog out? Thanks.
@KPeyanski
@KPeyanski 2 жыл бұрын
I’m not sure about that. This should be researched. Maybe someone else can answer you right away.
@marioremyalmeida
@marioremyalmeida 2 жыл бұрын
MQ-2 sensor has a digital out pin, you can adjust the sens via the onboard resistor
@botialoach1
@botialoach1 2 жыл бұрын
You video are always very informative keep them coming, I have a question have set up everything, the only problem is that I get a sensor reading of 4.199% and and not 52% why?
@KPeyanski
@KPeyanski 2 жыл бұрын
That should be OK. Test yours with some smoke and if it reacts then you are good to go. Maybe you are living in the Alps and your Air is very clear :) Mine sensor started from the 40-50% and after a day they are going to 10-15%
@Pietrogramma
@Pietrogramma 2 жыл бұрын
Complimenti per il video, come sempre perfetto. Come ti hanno già chiesto altri, sarebbe perfetto aggiungere un cicalino ed un led rosso che si accendono superando un determinato valore; considerato, però, che non hai risptto suppongo non si possa fare, vero? Ciao e complimenti
@boopeshkumarprabhakaran
@boopeshkumarprabhakaran 2 жыл бұрын
Can i use mq6 lpg sensor to check gas leaks? And integrate that with esphome? Does it work the same way yu used mq2 sensor?
@KPeyanski
@KPeyanski 2 жыл бұрын
probably yes, but I guess you have to try!
@d-popov
@d-popov Жыл бұрын
Супер! Поздравления за хубавия материал.
@KPeyanski
@KPeyanski Жыл бұрын
Благодаря за хубавите думи! Радвам се, че ти харесва!
@kelangthangvn
@kelangthangvn 2 жыл бұрын
thanh you for how to!, the only problem is that I get a sensor reading of 100% and and not change why..?
@techdad6135
@techdad6135 2 жыл бұрын
Thank you for this how-to! Definitely will be a future project for me. I was wondering if you could do a video for a bed occupancy sensor using a force sensitive resistor? tom_i did a good write up on the home assistant community forums but I have not found a good home assistant /esphome video for this project. Just a suggestion for a possible future video. Take care and keep up the good work. Love the videos.
@KPeyanski
@KPeyanski 2 жыл бұрын
Many thanks for the good and positive comment and many thanks for the idea 💡 I will check it out. Good luck with your future project!
@jitendrasonavane82
@jitendrasonavane82 2 жыл бұрын
Waiting for such videos since couple months. Many Thanks for sharing. Just need to confirm can we use above code for sensor MQ135 or not.
@KPeyanski
@KPeyanski 2 жыл бұрын
I think it will work, but I guess you have to try. Don’t forget to share the results afterwards.
@jitendrasonavane82
@jitendrasonavane82 2 жыл бұрын
Yes Sir, it is working perfectly for sensor MQ135. Again thanks for acknowledging my question.
3 ай бұрын
I want to add MQ02 and buzzer to esp8266 and trigger the buzzer when esp8266 gas value exceeds 20%. But I was not successful. :(
@waelzayed
@waelzayed Жыл бұрын
The 1st Smoke detector got detected & installed with no issue, but when I try to add another smoke detector, it couldn't be detected by the USB port. Any idea why? Any change in the procedure for the second board?
@KPeyanski
@KPeyanski Жыл бұрын
You have to change the name of the second device in the yaml code. That is all
@The_Birdman
@The_Birdman 2 жыл бұрын
Does anyone know how many devices can be powered from the 5v PIN of a D1 Mini? Im sure the answer isn't straight forward. For example, it would be nice to power a PIR, Temp/Humidify and also the Smoke sensor all from the same D1 Mini.
@vegaswayne247
@vegaswayne247 2 жыл бұрын
The power doesn't have to go through the D1 Mini. You can hook up a power supply to a power rail and hook up as much as the power supply can handle. I did this with an ESP32 that didn't pass through the 5V.
@titas_saha
@titas_saha 8 ай бұрын
Can it detect cigarette smoke also?
@KPeyanski
@KPeyanski 8 ай бұрын
not quite sure here, but I think it should detect it
@titas_saha
@titas_saha 3 ай бұрын
@@KPeyanski Thank you for the reply.
@benjamink7311
@benjamink7311 Жыл бұрын
Hi Bro, my mq2 is always showing 100% changed sensors still the same
@fotiskanellopoulos
@fotiskanellopoulos 2 жыл бұрын
This video AND the temp/humidity could be one right ? Have you tried to make one sensor with temp/humidity/smoke ?
@KPeyanski
@KPeyanski 2 жыл бұрын
Yes, it is possible but I didn’t try this yet
@romanklein6081
@romanklein6081 2 жыл бұрын
I will make it for kitchen. Hope it will not make false alarms if we are cooking on pan ;)
@KPeyanski
@KPeyanski 2 жыл бұрын
Great, you have options to set the sensitivity of the sensor as well as to fine tune the automation, so I think you will not have problems
@aaronsharp3858
@aaronsharp3858 2 жыл бұрын
I'm all for smart home tech have it everywhere but do not base your safety off prototype devices This is great as an addition too main smoke alarms
@Mario_SMR
@Mario_SMR Жыл бұрын
What is the difference between this ESPHome and Tasmota??
@KPeyanski
@KPeyanski Жыл бұрын
different software, look, interface, developers, etc, but same target devices
@schoubrian
@schoubrian 2 жыл бұрын
Maybe for my garage or outhouses.
@KPeyanski
@KPeyanski 2 жыл бұрын
Yes, great idea 👍 Wish you success and don't forget to share the results here afterwards :)
@shandradm911
@shandradm911 2 жыл бұрын
I jave problem this api not connected with wemos he said api failed connect
@Chikatosama
@Chikatosama Жыл бұрын
Yes😊
@KPeyanski
@KPeyanski Жыл бұрын
Great! Thanks for sharing 🙏
@MustangBoss1973
@MustangBoss1973 2 жыл бұрын
Yes, As i'm not messing with a of the shelf smoke alarm as an insurance company (worm) would use it as an excuse to not payout. But by using this its totally separate and the insurance company can continue about the day with head up ****
@KPeyanski
@KPeyanski 2 жыл бұрын
Yes, insurance companies usually doesn't like to pay when that is possible they just want to sell :)
@T1ZECLOm
@T1ZECLOm Жыл бұрын
Спасибо брат за помощь
@easthulk99
@easthulk99 2 жыл бұрын
Tq for the video
@KPeyanski
@KPeyanski 2 жыл бұрын
Welcome 😊
@jasonflt
@jasonflt Жыл бұрын
would be better with a mini speaker to make alarm sounds
@KPeyanski
@KPeyanski Жыл бұрын
yes, it is an option
@stooge351
@stooge351 4 ай бұрын
#SmokeSensorOwner - i'm also late to the party, i've actuay had an MQ-2 smoke sensor for ages, but never implemented it untill last week where i have made my own multi sensor because i'm too cheap to buy 'ready made ones' hahaha - i do not rely on this as my stand-a-lone smoke detector, as i have ones already installed in my home, this is just a nice little addition for a notification, however, has anyone found the best '%' detection for a notification? like...what percentage increase are people using for notifications? 20% ? 30% ? i still havent found the right setting yet.....just curioous... btw kiri ...awesome yt video.....keep it up :)
@samiraslan9735
@samiraslan9735 9 ай бұрын
A bit late maybe but #SmokeSensorOwned
@KPeyanski
@KPeyanski 9 ай бұрын
No you are just in time. Nobody is late here for this great DIY Smoke Sensor. Enjoy it and don't forget to check my other DIY Smart Sensor videos as well
@jitendrasonavane82
@jitendrasonavane82 2 жыл бұрын
#SmokeSensorOwned
@KPeyanski
@KPeyanski 2 жыл бұрын
Oh, yes 👏 that’s what I wanted to see. Congratulations mate!
@jaimemotavaz3999
@jaimemotavaz3999 2 жыл бұрын
I think your project has a huge problem. Mq2 sensor outputs 5v in the analog port when the smoke reaches his maximum value. This means that at that point your d1 mini will fry because the maximum allowed value for a original d1 mini is 3.2v (it has a voltage divider for the esp8266 port, which only supports max 1v) At some point of time, if you have a fire your d1 mini could die at some point.
@iliahborg7079
@iliahborg7079 2 жыл бұрын
Basically, you are right; analog output from MQ-2 is 0 ~ 4.2V. However it reaches above 3V only at extreme concentrations, so there are more chances that the fire will fry the setup than first ;)
@andreaschen1377
@andreaschen1377 2 жыл бұрын
@@iliahborg7079 If considering other MQ sensors this concern is very valid. Some MQ sensors go beyond 3.3V very easily on the AO pins.
@jaroslavcihlar9468
@jaroslavcihlar9468 2 жыл бұрын
#SmokeSensorOwned
@KPeyanski
@KPeyanski 2 жыл бұрын
Very glad to see that Jaroslav! Enjoy!
@jaroslavcihlar9468
@jaroslavcihlar9468 2 жыл бұрын
@@KPeyanski would it be possible to add small piezo?
@dallibabs
@dallibabs Жыл бұрын
#SmokeSensorOwned
@KPeyanski
@KPeyanski Жыл бұрын
Great work John! Enjoy and don't forget to check my other DIY smart sensor videos. I have a whole playlist about them.
@dallibabs
@dallibabs Жыл бұрын
@@KPeyanski I will, I already subbed and have watched some other vids. Keep up the good work. Much appreciated.
@cvasantrao
@cvasantrao Жыл бұрын
#SmokeSensorOwned
黑天使被操控了#short #angel #clown
00:40
Super Beauty team
Рет қаралды 61 МЛН
Каха и дочка
00:28
К-Media
Рет қаралды 3,4 МЛН
My scorpion was taken away from me 😢
00:55
TyphoonFast 5
Рет қаралды 2,7 МЛН
Gas meter - Receive magnetic pulses with an ESP8266
12:57
MakerMeik
Рет қаралды 69 М.
Every Apartment needs this Upgrade! (WhatsApp/Telegram Notifications)
10:05
The Best DIY Human Presence Sensor?
6:40
KPeyanski
Рет қаралды 47 М.
ESP8266 as Window Sensor with years of battery life
17:57
MakerMeik
Рет қаралды 181 М.
Home Assistant Dashboard Remote | Tutorial
13:26
Paul Hibbert (Hibbert Home Tech)
Рет қаралды 70 М.
Monitoring Voltage with ESPHome, D1 Mini ADC, and Home Assistant
23:07
黑天使被操控了#short #angel #clown
00:40
Super Beauty team
Рет қаралды 61 МЛН