Skip to main content

Posts

Showing posts from February, 2021

80. Interfacing the HC-06 Bluetooth module with Arduino

 Hello everyone Today I am going to give you a tutorial about interfacing the HC-06 Bluetooth module with Arduino. In this tutorial, you will be learning about the module - the basic introduction. You will also learn how to set up the module, connect and interface it. HC-06 Bluetooth module HC-06 is a Bluetooth module designed for establishing short range wireless data communication (<100 meters). It is very easy to interface and communicate. It can be interfaced with almost all microcontrollers or processors as it uses UART interface.  This module has the ability to transmit files at speed up to 2.1Mbps and works on Bluetooth 2.0 communication protocol. Unlike the HC-05 Bluetooth module, this module can only act as a slave device. Operating Voltage: 3.3V - 6V Operating Frequency range: 2.402 GHz - 2.480 GHz Pinout You will only be needing the four pins in the HC-06 Bluetooth module. RXD: Serial Data Receive Pin. Used for serial input. 3.3V logic TXD: Serial Data Transmit Pin. Used

79. Smoke Detector with MQ-2 Gas sensor

 Hello everyone, In this post, I will be explaining you about making a Smoke detector with MQ-2 Gas sensor. If you are unfamiliar with the MQ-2 Gas sensor, please read this short and simple introduction about the sensor before you move on. Hardware components Arduino Nano Solderless Breadboard - Half + MQ-2 Gas sensor LCD Display with I2C interface - 16 x 2 Active buzzer module Male/ Male Jumper wires (x3) Male/ Female Jumper wires (x4) Jumpers - to reduce the usage of wires Software Arduino IDE Tools Standard Screwdriver (Flat heat screw driver) Setup Coding For this project, you will be needing the LiquidCrystal_I2C library and the Wire library. The Wire library is in-built. You can download the LiquidCrystal_I2C library from this github repo .  You would also need the I2C scanner to get the I2C address of your device. You can get the codes for the I2C scanner from  this Arduino site . Create variable for the sensor, buzzer, reading, percentage and threshold values. The data type fo

78. MQ-2 Gas Sensor : A friendly introduction

Hello everyone Sorry I have not posted in a while. Today I am back with an interesting post. In this post, I will be explaining you about the MQ2 sensor and how to interface it with Arduino development board. This Gas sensor is suitable for sensing LPG, Smoke, Alcohol, Propane, Hydrogen, Methane and Carbon Monoxide concentrations in the air.  MQ-2 sensor MQ2 is one of the commonly used gas sensors in MQ sensor series. It is a Metal Oxide Semiconductor (MOS) type Gas Sensor also known as Chemiresistors as the detection is based upon change of resistance of the sensing material when the Gas comes in contact with the material. Using a simple voltage divider network, concentrations of gas can be detected. It can detect the gases and smoke anywhere from 200 to 10000ppm. Specifications Operating Voltage: 5V Load Resistance: 20 kΩ Heater Resistance: 33Ω ± 5% Heating consumption: <800mW Sensing Resistance: 10 kΩ – 60 kΩ Concentration Scope: 200 – 10000ppm Preheat Time: Over  24 hours Pinout