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
@andreaschen13772 жыл бұрын
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.
@davidhopkins2 ай бұрын
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.
@businesstalk3 ай бұрын
Your DIY videos are awesome!! Thanks!
@KPeyanski3 ай бұрын
Thank you! 😊
@robertaccess2 жыл бұрын
OMG, very very glad to see you posting... Hope you are welll....
@KPeyanski2 жыл бұрын
Yes, I'm fine thank you :) and many thanks for the comment. Take care!
@TimHodgesofEdinburgh2 жыл бұрын
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.
@KPeyanski2 жыл бұрын
Enjoy!
@TimHodgesofEdinburgh2 жыл бұрын
@@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
@okanerdem2 жыл бұрын
@@TimHodgesofEdinburgh How did you do this?
@ronm65852 жыл бұрын
Good job my man. I haven't set one up yet but I am planning to. Thanks.
@KPeyanski2 жыл бұрын
Thanks, that means I've released this video just in time for you ;)
@ronm65852 жыл бұрын
@@KPeyanski Lol. Yes indeed. Thanks.
@andresteyn18842 жыл бұрын
Thank you. I tried your smoke sensor and it works perfectly.
@KPeyanski2 жыл бұрын
Great to hear! Check my other sensor videos as well
@asopok2 жыл бұрын
Great video. How do I add a buzzer to it so that the buzzer sounds when smoke or gas is detected
@tristanssmartesheim2 жыл бұрын
Good idea. The issue is the Power supply, and that sou have to put it on the ceiling.
@KPeyanski2 жыл бұрын
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 Жыл бұрын
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 Жыл бұрын
Is there an analog pin?
@reffo77 Жыл бұрын
@@KPeyanski I suppose so .. seems from 32-39 are both a and d
@vegaswayne2472 жыл бұрын
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.
@KPeyanski2 жыл бұрын
That sound like a plan to me. Enjoy!
@alvinnoboa86942 жыл бұрын
Almost sure that in daylight time the reading will be higher than at night just bz of human activity
@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 Жыл бұрын
Glad you like the video and no idea abut the LED. Enjoy your sensors!
@mihaiionita3919 Жыл бұрын
Remove it with a set of pliers from the board.
@rogeriocamargo19842 жыл бұрын
Very good! I did and it works fine!
@KPeyanski2 жыл бұрын
Well done! Enjoy!
@cvasantrao Жыл бұрын
Nice and useful video. Could do it successfully . One query. Is it possible to calculate the ppm? Thanks for the great video.
@okanerdem2 жыл бұрын
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?
@jordimartin20012 жыл бұрын
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 Жыл бұрын
Great job, well done. Thanks for the idea
@KPeyanski Жыл бұрын
No problem 👍
@cristian.s94 Жыл бұрын
Is there any zigbee alternative to the D1 Mini? Thanks.
@KPeyanski Жыл бұрын
not sure about that
@NewAgeTechnologies2 жыл бұрын
Thanks for your useful video. Could you pls let me know how to install d1mini by manual download?
@AndyBerman2 жыл бұрын
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.
@KPeyanski2 жыл бұрын
I’m not sure about that. This should be researched. Maybe someone else can answer you right away.
@marioremyalmeida2 жыл бұрын
MQ-2 sensor has a digital out pin, you can adjust the sens via the onboard resistor
@botialoach12 жыл бұрын
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?
@KPeyanski2 жыл бұрын
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%
@Pietrogramma2 жыл бұрын
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
@boopeshkumarprabhakaran2 жыл бұрын
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?
@KPeyanski2 жыл бұрын
probably yes, but I guess you have to try!
@d-popov Жыл бұрын
Супер! Поздравления за хубавия материал.
@KPeyanski Жыл бұрын
Благодаря за хубавите думи! Радвам се, че ти харесва!
@kelangthangvn2 жыл бұрын
thanh you for how to!, the only problem is that I get a sensor reading of 100% and and not change why..?
@techdad61352 жыл бұрын
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.
@KPeyanski2 жыл бұрын
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!
@jitendrasonavane822 жыл бұрын
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.
@KPeyanski2 жыл бұрын
I think it will work, but I guess you have to try. Don’t forget to share the results afterwards.
@jitendrasonavane822 жыл бұрын
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 Жыл бұрын
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 Жыл бұрын
You have to change the name of the second device in the yaml code. That is all
@The_Birdman2 жыл бұрын
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.
@vegaswayne2472 жыл бұрын
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_saha8 ай бұрын
Can it detect cigarette smoke also?
@KPeyanski8 ай бұрын
not quite sure here, but I think it should detect it
@titas_saha3 ай бұрын
@@KPeyanski Thank you for the reply.
@benjamink7311 Жыл бұрын
Hi Bro, my mq2 is always showing 100% changed sensors still the same
@fotiskanellopoulos2 жыл бұрын
This video AND the temp/humidity could be one right ? Have you tried to make one sensor with temp/humidity/smoke ?
@KPeyanski2 жыл бұрын
Yes, it is possible but I didn’t try this yet
@romanklein60812 жыл бұрын
I will make it for kitchen. Hope it will not make false alarms if we are cooking on pan ;)
@KPeyanski2 жыл бұрын
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
@aaronsharp38582 жыл бұрын
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 Жыл бұрын
What is the difference between this ESPHome and Tasmota??
@KPeyanski Жыл бұрын
different software, look, interface, developers, etc, but same target devices
@schoubrian2 жыл бұрын
Maybe for my garage or outhouses.
@KPeyanski2 жыл бұрын
Yes, great idea 👍 Wish you success and don't forget to share the results here afterwards :)
@shandradm9112 жыл бұрын
I jave problem this api not connected with wemos he said api failed connect
@Chikatosama Жыл бұрын
Yes😊
@KPeyanski Жыл бұрын
Great! Thanks for sharing 🙏
@MustangBoss19732 жыл бұрын
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 ****
@KPeyanski2 жыл бұрын
Yes, insurance companies usually doesn't like to pay when that is possible they just want to sell :)
@T1ZECLOm Жыл бұрын
Спасибо брат за помощь
@easthulk992 жыл бұрын
Tq for the video
@KPeyanski2 жыл бұрын
Welcome 😊
@jasonflt Жыл бұрын
would be better with a mini speaker to make alarm sounds
@KPeyanski Жыл бұрын
yes, it is an option
@stooge3514 ай бұрын
#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 :)
@samiraslan97359 ай бұрын
A bit late maybe but #SmokeSensorOwned
@KPeyanski9 ай бұрын
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
@jitendrasonavane822 жыл бұрын
#SmokeSensorOwned
@KPeyanski2 жыл бұрын
Oh, yes 👏 that’s what I wanted to see. Congratulations mate!
@jaimemotavaz39992 жыл бұрын
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.
@iliahborg70792 жыл бұрын
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 ;)
@andreaschen13772 жыл бұрын
@@iliahborg7079 If considering other MQ sensors this concern is very valid. Some MQ sensors go beyond 3.3V very easily on the AO pins.
@jaroslavcihlar94682 жыл бұрын
#SmokeSensorOwned
@KPeyanski2 жыл бұрын
Very glad to see that Jaroslav! Enjoy!
@jaroslavcihlar94682 жыл бұрын
@@KPeyanski would it be possible to add small piezo?
@dallibabs Жыл бұрын
#SmokeSensorOwned
@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 Жыл бұрын
@@KPeyanski I will, I already subbed and have watched some other vids. Keep up the good work. Much appreciated.