Skip to main content

adsense

ARDUINO IR REMOTE (USE YOUR OLD REMOTE TO CONTROLL HOME APPLIANCES)

In this project you can choose any remote or a TV remote which you are using and you will notice that some keys are useless for your tv for that you can use that keys for controlling the home appliences like powering your TV,FAN,LIGHTS etc...
you need to follow the simple procedure from the video so that you can record hexa values for that particular key and put into the program of the arduino

Step 1: WATCH THE VIDEO

 


Step 2: THINGS NEEDED

     
   

The things needed for the following project are
1.ARDUINO UNO OR CLONE
2.IR RECIVER
3.ANY OLD REMOTE
4.RELAY MODULE
5.JUMPER WIRES
6.ARDUINO IDE
7.SOME LED'S
IF YOU WANT TO MAKE A RELAY MODULE BY YOURSELF YOU COULD NEED (OPTIONAL)
1.RELAY
2.BC547 TRANSISTOR
3. 1K OHM RESISTOR
4.COPPER DOT PCB

Step 3: RECIVING THE IR CODE FROM REMOTE BUTTON

 RECIVING THE IR CODE FROM REMOTE BUTTON

This is the test to recieve the hexadecimal code of the remote button
1.install the ir remote library form the following link in the arduino / library folder
https://github.com/z3t0/Arduino-IRremote
if you already have the library installed follow the next step
2.open the arduino ide and open example/IRrecvDemo sketch into the arduino ide
3.upload the code to the arduino.
4.now connect the ir reciver to the arduino as shown in the video.
5.open the serial monitor in the arduino ide.
6.press any button on the remote and note the hexadecimal value of the button pressed
7.now you have the code of the button you can follow the next step

Step 4: MODIFYING THE ARDUINO CODE

MODIFYING THE ARDUINO CODE

YOU COULD USE THE FOLLOWING SKETCH TO MAKE 1 APPLICATION CONTROL
#include<IRremote.h>
int RECV_PIN = 11;
int state;
int led=13;
IRrecv irrecv(RECV_PIN);
decode_results results;
void setup()
{
Serial.begin(9600);
pinMode(led,OUTPUT);
state=0;
irrecv.enableIRIn(); // Start the receiver
}
void loop()
{
if (irrecv.decode(&results))
{
if(results.value==(0xpaste your hexadecimal code for example "0xF730F4" )
{
if(state==0);
{
digitalWrite(led,HIGH);
state=1;
}
else
{
digitalWrite(led,LOW);
state=0;
}
Serial.println(results.value, HEX);
irrecv.resume(); // Receive the next value
}
delay(100);
}
AFTER UPLOADING THE FOLLOWING SKETCH TO THE ARDUINO CONNECT THE LED TO THE PIN 13 OF ARDUINO AND IR RECIVER OUTPUT TO 11 PIN OF ARDUINO TEST IT USING THE SAME REMOTE BUTTON WHOSE HEXADECIMAL CODE YOU HAVE COPIED.
IF YOU WANT TO INCREASE THE NUMBER OF CONTROLS
THEN YOU CAN USE THE MORE NUMBER OF DIFFERENT INT FUCTIONS FOR EXAMPLE
int light=13;
int fan=12;
int tablefan=11;
int tubelight=10;
and similarly the pinmode in the void setup as
pinMode(light,OUTPUT);
etc..
similarly in the void loop section include the hexadecimal code of the button and repeat the loop as many time your number of controls

Step 5: ADDING RELAY MODULE


YOU COULD BUY A 5V RELAY MODULE FROM ONLINE AND CONNECT IN THE FOLLOWING WAY
ARDUINO RELAY MODULE
+5V------------------------->+5V
GND------------------------>GND
13--------------------------->IN1
12--------------------------->IN2
11--------------------------->IN3
10--------------------------->IN4
AND THE SAME PROCESS REPEATS FOR THE NUMBER OF CONTROLS YOU HAVE
CONNECT THE NEUTRAL WIRE OF THE MAINS POWER SUPPLY(AC) TO THE NORMALLY OPEN SIDE OF THE RELAY AND THE LINE WIRE TO HOME APPLIANCE(BULB) THE THE SECOND WIRE FROM THE BULB WILL GO TO THE CENTER PIN OF THE RELAY
[ WARNING:: PLEASE DO NOT TRY TO PLAY WITH THE 240V AC POWER SUPPLY THAT CAN KILL YOU IMMEDIATELY ]
BEFORE CONNECTING THE RELAY MODULE DIRECTLY TO AC SOURCE CHECK THE CONNECTIONS TWICE AND MAKE SURE EVERYTHING IS CORRECT

Step 6: MAKING THE RELAY MODULE(OPTIONAL)

https://cdn.instructables.com/F35/OTPK/IWWFFCDX/F35OTPKIWWFFCDX.MEDIUM.jpg?width=614

IF YOU WANT TO MAKE A RELAY MODULE BY YOURSELF THE YOU CAN FOLLOW THE GIVEN SCHEMATIC AND CREATE YOUR MODULE 

Step 7: THANKS FOR WATCHING

THANKS FOR WATCHING THE FOLLOWING INSTRUCTABLES IF YOU DO LIKE THE PROJECT AND HAVE ANY QUESTION PLEASE LEAVE THE COMMENT BELOW
DON'T FORGET TO VIEW MY OTHER VIDEOS ON THE YOUTUBE CHANNEL
Click here to visit KJ's electronics

 

 

 

 

Comments

Popular posts from this blog

VU METER (Music Visualizer) #1 With Arduino

This is the part one of the music visualizer series and In the following tutorial we are going to make a music visualizer AKA the volume meter or the uv meter from an arduino mega . The build process is very simple and easy and the program of arduino is also not that hard. Step 1: Watch the Video Step 2: Parts List             The parts needed for this build are 1.ARDUINO MEGA 2.COPPER DOT PCB 3.BREAD BOARD 4.JUMPER WIRES 5.LED (RED ,BLUE ,GREEN) 6.TOOLS(SOLDERING IRON ,SOLDER WIRE) 7.AUDIO SPLITER WITH A JACK 8.HEADER PINS Step 3: Testing on Bread Board( 1.LED's and ARDUINO ) Start by inserting the led on the bread board with the negative leg of the led to a common ground rail of the bread board (led count =20) the positive leg of the led will be there at any empty rail of the bread board as shown in the video and following pictures Then connect the ground of the arduino to the common ground rail of the l...

VU METER (Part-2) Using LM-3914 & LM-3915

This is the second part of the music visualization series and in the video above i have shown how you can make a simple VU meter by using the ic called LM-3914 or LM-3915. The part 1 is basically about how you can make the simple and cool looking VU meter by using the arduino microcontroller link to that is given as and now we will see the step by step construction of the VU meter STEP 1: Watch the Video   STEP 2: PARTS LIST     To make this cool looking UV meter we need these following things 1.LM-3914 IC 2.Breadboard 3.Copper dot PCB 4.18 pin IC Holder 5.Resistor(1.2k & 4k ohm) 6.Potentiometer (1K ohm) & Knob 7.Audio jack 8.Dc jack 9.LED (6-Green & 2-Blue & 2-Red) 10.some connecting wires   TOOLS REQUIRED 1.soldering iron 2.wire cutter 3.soldering wire etc... STEP 3: SPECIFICATION OF LM-3914 & DATASHEET When looking at the LM-3914 ic datasheet these are some important feat...