Posts

Showing posts from June, 2015

Alcohol sensor (MQ3) interfacing..¡¡¡

Image
Heyyy..now am here to explain the "interfacing of alcohol sensor to popular ARDUINO. It's very easy. Alcohol sensor simply mq3 sensor is analog sensor which outputs the voltage.o/p of the sensor is fed to analog pin of ARDUINO.. Here Is the pic how the sensor looks It contains six pins so we to work for sometime to make this six pins as three pins i.e VCC,GND,Vout.below fig shows how to connect this sensor To ARDUINO board Now we have 3 pins for the sensor,connect VCC to 5V,GND to GND pin of ARDUINO and data to any analog pin of arduino Just dump the below Sketch to ur board and observe the output of the sensor in serial moniter Here is the code void  setup ( )   {    // initialize serial communication at 9600 bits per second:    Serial . begin ( 9600 ) ; } // the loop routine runs over and over again forever: void   loop ( )   {    // read the input on analog pin 0:    int  sensorValue  =   analogRead ( A0 ) ;    // Convert the analog readin

Making your own arduino...!!!

Image
Hiiiii...    Now we are going build a arduino board..before knowing this WHAT IS ARDUINO..??? it a combination of some hardware (say microcontroller)along with compatible software(ARDUINO Ide) Above pic shows the basic ARDUINO board with atmega328p as its heart.so,now in this post I will tell u how to make your own board.for doing this you should require Atmega328p ic with base 16 MHZ crystal oscillator 22pf capacitors 7805 Male headers etc....  If you buy a atmega328p,initially it is not ARDUINO Ide compatible microcontroller. So to make it a ARDUINO compatible mc you must burnboot loader to that ic..it's very easy and simple procedure for that process is explained below  To burn bootloder u must have an ARDUINO board and breadboard with required components. ARDUINO to breadboard connections is shown in below pic Burning the Bootloader If you have a new  ATmega328  (or  ATmega168 ), you'll need to burn the bootloader onto it. You can do this using an A

Controlling home appliances wireless......!!!

Image
Hiiiii frnds ...today iam with new prototype . i.e remote controlling of home appliances..this can control almost all electrical appliances using some common wireless technologies like IR remote control DTMF based controlling.. Tools I used here for developing this project is arduino ide.. Components for this project are Atmega328p ic's( one for IR and other for DTMF) Tsop sensor DTMF decoder which I used in earlier post Relays (as many appliances) 16x2 lcd's (optional) Below is the code for both IR and DTMF //for DTMF #include <LiquidCrystal.h> // initialize the library with the numbers of the interface pins LiquidCrystal lcd(6, 7, 5, 4, 3, 2); void setup() { pinMode(9,INPUT); pinMode(10,INPUT); pinMode(11,INPUT); pinMode(12,INPUT); pinMode(A5,OUTPUT); pinMode(A4,OUTPUT); pinMode(A3,OUTPUT); pinMode(A2,OUTPUT); // set up the LCD's number of columns and rows: lcd.begin(16, 2);

line follower robot

Image
line follower robots work on basic concept of reflection of light, we use light sensors usually available in the market as a pair of photo diode and an LED. The concept is the LED keeps emitting light and if any obstacle comes in its way , then the obstacle will reflect the light and that reflected light falls on the photodiode. Now as we all know the property of photo diode is that it conducts when light falls on it...now the photo diode is connected to a "D" pin , usually known as data pin/signal pin...so now according to process we get a HIGH or logic of 5V when obstacle is there and "0V" when nothing. Now in the above diagram we can see that 3 pins are popping out of the sensor, namely + -D ..the "+" pin needs to be connected to 5V of arduino or any microcontroller you will be using. Now connect the black color wire to GND pin of your arduino or known as ground...or simply one can declare a pin as LOW and connect the black wire to it a