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