Posts

Showing posts from 2016

MQ-6 Gas Sensor Interfacing with Arduino UNO and LCD

Image
Hello friends , this is my 4th post in blog and today we will learn about "How To Interface Gas Sensor with Arduino UNO and LCD." Before starting we will first understand "What is Gas Sensor ?" Gas sensor is a type of sensor which is capable to sense LPG gases and can give output HIGH or LOW logic signal to Arduino. In this project I am using MQ6 GAS SENSOR but we can use other also so don't worry. OK, lets look circuit in bread-board. By the way you can use pin-13 as output you can connect buzzer or led to alert. I forget to join buzzer in pin-13. Better to put buzzer. For video click the following link:- https://www.youtube.com/watch?v=BH0F8IuXSnw CODE: #include <LiquidCrystal.h> LiquidCrystal lcd(12, 11, 5, 4, 3, 2); int LED = 13;  int GAS_DO = 7;  int STATE = 0;  void setup() {   lcd.begin(16,2);   lcd.print("LPG LEAK SYSTEM");   delay(1500);   lcd.clear();   pinMode(LED,

Reed-switch Interfacing with Arduino UNO and LCD

Image
Hello friends , In this short tutorial I will give you knowledge about "How to interface reed switch with Arduino UNO and LCD."  Instead of reed switch we can use any other switches like tilt switch, push button, PIR sensor or something that gives output as PIR sensor gives( IR Proximity sensor ) and so on. Ok, Lets start, At first we have to learn about "What is reed switch." Reed-switch is a type of switch which is controlled by magnetic field i.e (Magnet). When magnet comes near the reed switch, it will works as close switch and vice-versa. But it is not like a " Hall Effect Sensor " Ok, take a look of this circuit:- We can use buzzer or LED in pin 13. VIDEO:   https://www.youtube.com/watch?v=PxTf_ru6LdM&t=2s CODE: #include <LiquidCrystal.h> LiquidCrystal lcd(12, 11, 5, 4, 3, 2); int LED = 13;   //pin for the LED int SWITCH = 7;   //INPUT pin where the REED-SWITCH is connected int BUTTON_STATE = 0;   //whether s

Bluetooth Interfacing with Arduino UNO and LCD

Image
Hello friends this is my second post in the blog. In this tutorial I will show you how you can control or interface Bluetooth with Arduino UNO and LCD to make home automation. Ok lets start, For this project you will need the following components: * 4.7 k ohm resistor * 2 k ohm resistor * Arduino UNO * 16x2 LCD * Bluetooth module etc. * ST Terminal app Ok lets look the circuit in bread-board: I have used resistor in this circuit to divide the voltage because not all but few Bluetooth module needs 3.3 v  for rx pin. Arduino can receive 3.3 v data coming from Bluetooth tx pin so we are not using any external circuit for it. Ok after looking this circuit you think that wheres the Bluetooth module and relay to control the load as a output. Sorry, for not including Bluetooth module and relay to control AC loads by the way  I have some problem to include Bluetooth module and output load for this. Hope you understand... By the way to control this you need app to send d

Passive Infra-Red sensor with LCD

Image
This is my first project in blog and i am gonna so you how to interface Passive Infra-Red (PIR) sensor with Arduino UNO R3 and 16*2 LCD . Hope you know whats PIR sensor is because i am not discussing  about PIR sensor, LCD and the main brain of this project the Arduino. Ok lets start from pin to pin. LCD PIN TO ARDUINO PINS:  * LCD RS pin to digital pin 12  * LCD Enable pin to digital pin 11  * LCD D4 pin to digital pin 5  * LCD D5 pin to digital pin 4  * LCD D6 pin to digital pin 3  * LCD D7 pin to digital pin 2  * LCD R/W pin to ground  * LCD VSS pin to ground  * LCD VCC pin to 5V  * 10K resistor:  * ends to +5V and ground  * wiper to LCD VO pin (pin 3) NEXT PIR PIN TO ARDUINO PINS:  *VCC TO 5V  *GND TO GND  *OUTPUT(OUT) TO digital pin 7 Ok lets look the circuit in bread-board. CODE: #include <LiquidCrystal.h> LiquidCrystal lcd(12, 11, 5, 4, 3, 2); const int LED = 13; const int PIR = 7; int state = 0; int calibrationTime = 0;         void set