Uploaded July 2014 | Updated September 2026, 3 weeks ago
In this tutorial I'm demonstrating how to use MQ-2/MQ-5 gas sensors with Arduino. These little devices may be used in gas leakage detectors.
The MQ-2 is suitable for detecting LPG, i-butane, propane, methane, hydrogen and even smoke.
The MQ-5 detects LPG, natural gas and town gas.
Many other gas sensors can be used in exactly the same way, e.g. MQ-3, MQ-6 or MQ-135. Just read the datasheet, use the appropriate load resistor and experiment with the "sensorValue" in my Arduino code.
Project page - you can download Arduino code and see schematic used in this video here:
ElectronFun.com/project_2.php
Datasheets:
MQ-2: pololu.com/file/0J309/MQ2.pdf
MQ-5: parallax.com/sites/default/files/downloads/605-00009-MQ-5-Datasheet.pdf
See how to calibrate an MQ-2 gas sensor:
youtube.com/watch?v=QYSDSKn2Vf8
See all my Arduino tutorials here:
https://www.youtube.com/playlist?list...
Subscribe to get notified about my new videos:
http://www.youtube.com/subscription_c...
----------------------------------------------------------------------------------------------
YouTube channel: https://www.youtube.com/user/electron...
Google+: plus.google.com/+Electronfuncom
Facebook: facebook.com/ElectronFunPage
Twitter: twitter.com/ElectronFun
Website: ElectronFun.com
----------------------------------------------------------------------------------------------
Video, edit, voice by Chris Lorkowski
Music composed and performed by Bensound - Happiness
bensound.com
Sound effects recorded by Mark DiAngelo - Blop
soundbible.com
In this tutorial I'm demonstrating how to use MQ-2/MQ-5 gas sensors with Arduino. These little devices may be used in gas leakage detectors.
The MQ-2 is suitable for detecting LPG, i-butane, propane, methane, hydrogen and even smoke.
The MQ-5 detects LPG, natural gas and town gas.
Many other gas sensors can be used in exactly the same way, e.g. MQ-3, MQ-6 or MQ-135. Just read the datasheet, use the appropriate load resistor and experiment with the "sensorValue" in my Arduino code.
Project page - you can download Arduino code and see schematic used in this video here:
ElectronFun.com/project_2.php
Datasheets:
MQ-2: pololu.com/file/0J309/MQ2.pdf
MQ-5: parallax.com/sites/default/files/downloads/605-00009-MQ-5-Datasheet.pdf
See how to calibrate an MQ-2 gas sensor:
youtube.com/watch?v=QYSDSKn2Vf8
See all my Arduino tutorials here:
https://www.youtube.com/playlist?list...
Subscribe to get notified about my new videos:
http://www.youtube.com/subscription_c...
----------------------------------------------------------------------------------------------
YouTube channel: https://www.youtube.com/user/electron...
Google+: plus.google.com/+Electronfuncom
Facebook: facebook.com/ElectronFunPage
Twitter: twitter.com/ElectronFun
Website: ElectronFun.com
----------------------------------------------------------------------------------------------
Video, edit, voice by Chris Lorkowski
Music composed and performed by Bensound - Happiness
bensound.com
Sound effects recorded by Mark DiAngelo - Blop
soundbible.com
![How to solder header pins to 2x16 LCD
In this super quick video Im demonstrating how to solder header pins to a 2x16 LCD and make them perfectly straight. The alphanumeric liquid-crystal display used in this tutorial is a Hitachi HD44780.
Subscribe to get notified about my new videos:
http://www.youtube.com/subscription_center?add_user=electronfuncom
YouTube channel: https://www.youtube.com/user/electronfuncom
Google+: https://plus.google.com/+Electronfuncom
Facebook: https://www.facebook.com/ElectronFunPage
Twitter: https://twitter.com/ElectronFun
Website: http://ElectronFun.com
Video, edit, voice by Chris Lorkowski
Music by RataxesUK - So Sleepy [No Vocal Edit]
https://soundcloud.com/rataxesuk/rataxes-so-sleepy-no-vocal-edit How to solder header pins to 2x16 LCD](https://i.ytimg.com/vi/E9NIN49iiCc/mqdefault.jpg)

![How to unbrick a TP-Link TL-WR1043ND router (re-uploaded) || How-to-fix tutorial
In this video Im demonstrating how to unbrick (recover) a TP-Link TL-WR1043ND router after an unsuccessful firmware upgrade. Im showing the whole process from opening the case to installing firmware files through the serial console.
The whole story happened a few weeks ago when I decided to download and install the latest firmware for my TP-Link TL-WR1043ND router. Theoretically everything went fine, the installation finished and I got the Rebooting message. Unfortunately the router was rebooting over and over again. I realized something went wrong and my TP-Link became an expensive brick with blinking LEDs on it. I tried every non-invasive method I could find to reset the device and bring it back to life. Nothing worked for me, so I had to open the case, solder a gold pin connector and hook it up to my computer. Then I could manually upload a new firmware image to the router and install it.
DISCLAIMER:
If you decide to follow any procedure shown in this tutorial, youre doing it at your own risk. This may void your warranty and/or in rare cases damage your device.
Commands used in this video:
tpl [ENTER]
setenv ipaddr 192.168.0.3 [ENTER]
setenv serverip 192.168.0.5 [ENTER]
printenv [ENTER]
erase 0xbf020000 +7c0000 [ENTER]
tftpboot 0x81000000 firmware.bin [ENTER]
cp.b 0x81000000 0xbf020000 0x7c0000 [ENTER]
bootm 0xbf020000 [ENTER]
Download PuTTY here:
http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
Download Tftpd server here:
http://tftpd32.jounin.net/tftpd32_download.html
More info about TP-Link TL-WR1043ND:
http://wiki.openwrt.org/toh/tp-link/tl-wr1043nd
Unbricking procedure from OpenWrt forum:
https://forum.openwrt.org/viewtopic.php?id=38424
Originally I uploaded this video on April 10, 2014, under this link:
http://www.youtube.com/watch?v=zrArf9iTMv4
On October 10, 2014 I accidentally deleted it from my channel. Boy, was I mad at myself!
If you want to see how it happened, go here:
https://www.youtube.com/watch?v=qU5OQs68iJI
Subscribe to get notified about my new videos:
http://www.youtube.com/subscription_center?add_user=electronfuncom
YouTube channel: https://www.youtube.com/user/electronfuncom
Google+: https://plus.google.com/+Electronfuncom
Facebook: https://www.facebook.com/ElectronFunPage
Twitter: https://twitter.com/ElectronFun
Website: http://ElectronFun.com
Video, edit, voice by Chris Lorkowski
Music by Jason Shaw - Medium Rock, Pilots Of Stone, Real Bad Girl
http://www.audionautix.com How to unbrick a TP-Link TL-WR1043ND router (re-uploaded) || How-to-fix tutorial](https://i.ytimg.com/vi/IHNrnLnLakE/mqdefault.jpg)
![How to calibrate an MQ-2 gas sensor || Arduino tutorial
In this short tutorial Im demonstrating how to calibrate an MQ-2 gas sensor and get your readings in ppm units. Im assuming you dont want to spend hundreds of dollars for a calibration kit. The method shown in this video is based on a piece of Arduino code created and shared for free by a company called Sandbox Electronics.
See the original video - How to use gas sensors with Arduino:
https://www.youtube.com/watch?v=BIf_mpnsZvY
Subscribe to get notified about my new videos:
http://www.youtube.com/subscription_c...
YouTube channel: https://www.youtube.com/user/electron...
Google+: https://plus.google.com/+Electronfuncom
Facebook: https://www.facebook.com/ElectronFunPage
Twitter: https://twitter.com/ElectronFun
Website: http://ElectronFun.com
Video, edit, voice by Chris Lorkowski
Music by RataxesUK - Everything [No Samples Edit]
https://soundcloud.com/rataxesuk/rataxes-everything-no-samples How to calibrate an MQ-2 gas sensor || Arduino tutorial](https://i.ytimg.com/vi/QYSDSKn2Vf8/mqdefault.jpg)






