I. R Led Remote Bluetooth Voice Controlled

Introduction: I. R Led Remote Bluetooth Voice Controlled

OK SO IF YOU ARE ME HAVING TROBOULE

FINDING YOUR TV REMOTE OR TIRED CHANGING REMOTE BATTORY
AND FRUSTED REMEBRING CHANNEL NO THEN YOU ARE AT WRIGHT PLACE

Teacher Notes

Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.

Step 1: What Exactly We Are Going to Make??

OK so if you are like me then
You also have experience the frustration of not finding the TV remote control or are tired of remembering the channel no or
Tired of changing the batterys of remote control so we are making a solution to all of this problems



What all you can control
Any device which uses ir for transmission purpose like TV, set top box, music systems, AC, and much more



So let's get started

Step 2: How to Make It ( Intermediate Level Project)

So you decided to follow up with me
Get the following parts and you will be ready to make


1> an "arduino board" any will just work fine for me I used uno but you can use any board so if don't have one get the cheapest one
Prise depends on what you chose 0.5$ to 20$

2> you will need an " bluetooth module" I recommend to buy it locally it will be cheaper than online seller
Prise about 5$


3> you will also need an ir led which are dough cheap like 0.3$ per pice find them locally

4> battery you can use any battery voltage rating from 5v to 12v DC I recommend an li ion because they are rechargeable I use two of them in series


5> you will need an ir recover of three pins two pin will work but you will have headache I have tried so go with three pin one they are also relatively cheap like for 0.5$ each
And you can even borrow them because you will need them for only one time so as you wish


An computer for programing, some cardboard for casing if you have a 3d printer then no problem you can print a nice case out of it and an led any colour you like

Step 3: Find Your Remote Codes

Now supposing you gathered all component listed above you can get started


First of all find working remotes of devices you want to control you can confirm they are working by looking at them by your phones camera because they can see ir wavelengths

Then,
Install the following library in your arduino software

http://z3t0.github.io/Arduino-IRremote/


If you installed the library then go to examples
And and choose "ir receive dump v2"


And after uploading the code you can use the following scam antics to connect the ir
Receiver like give in image given below and it is also mentioned in example sketch.
You will receive an output when you click any button on your remote make sure it is correct by
Confirming two or three times
Then note the her code and write for which button it is for
Replete the steps for every button you want to control and then you can go to
Examples - - > ir send demo and use your code and type instead of default and then upload the code and test if the remote button is working
If one of key is working means you are good to go and most probably others will also do work

one you wrote all the hex no

like so,

FCABFFBE for menu

C0005C for select button

C00009 for 9

C00000 for 0

C00001 for 1

C00005 for vloum up

C00006 for vloum dow

DIFFERENT FOR EVERY REMOTE SO DONT COPY

now, in the code you can add as many channels you want to add and any command you want to speack for perticlar action

then copy this code and change the values for your remote

CHANGE WHAT IS TOLD CHANGE AND DONT MESS IT UP
IF GOT STUCKED MAIL ME AT manthanmji@gmail.com AND SEND ALL DETAILS I WILL HEP

CODE

#include
#include #include

String voice;

#define GREEN 6 #define BLUE 11 #define RED 9 IRsend irsend;

void setup() { // put your setup code here, to run once: Serial.begin(9600); pinMode(GREEN, OUTPUT); digitalWrite(GREEN ,LOW);

}

int redVal; int greenVal; int blueVal;

void loop() { //DONT MESSS HERE while (Serial.available()) //Check if there is an available byte to read { delay(10); //Delay added to make thing stable char c = Serial.read(); //Conduct a serial read if (c == '#') {break;} //Exit the loop when the # is detected after the word voice += c; //Shorthand for voice = voice + c }

if (voice.length() > 0) { Serial.println(voice); //----------Control Multiple Pins/ LEDs----------// } if(voice == "green one")// FOR GREEN COLOUR OF THE LED ! { digitalWrite(6,HIGH); } if(voice == "off one")// FOR TURNING OFF LED ! { digitalWrite(6,LOW); } if(voice == "dim")// FOR TURNING OFF LED ! { analogWrite(6,150); }

if(voice == "discovery")// FOR discovry science ! // CANGE FOR CHANNEL YOU WANT { for (int i = 0; i < 3; i++) { irsend.sendRC6(0xC00009, 24); delay(40);} //COD EFOR FIRST NO OF CHANNEL NO YOU WANT delay(500) ; for (int i = 0; i < 3; i++) { irsend.sendRC6(0xC00000, 24); delay(40);} delay(500) ; for (int i = 0; i < 3; i++) { irsend.sendRC6(0xC00009, 24); delay(40);} //COD EFOR SECOND NO OF CHANNEL NO YOU WANT delay(3000) ; irsend.sendRC6(0xC00083, 24); delay(40);} //CODe EFO third NO OF CHANNEL NO YOU WANT delay(500) ; if (voice == "volume up") // FOR volume up ! { for (int i = 0; i < 3; i++) { irsend.sendRC6(0xC00010, 24); delay(40);} delay(500) ; }

if(voice == "volume down")// FOR volume down ! { for (int i = 0; i < 3; i++) { irsend.sendRC6(0xC00011, 24); delay(40);} delay(500) ; }

if(voice == "tarak mehta ka oolta chasma" || voice == "soney sab")// FOR discovry science ! // CANGE FOR CHANNEL YOU WANT { for (int i = 0; i < 3; i++) { irsend.sendRC6(0xC00009, 24); delay(40);} //COD EFOR FIRST NO OF CHANNEL NO YOU WANT delay(500) ; for (int i = 0; i < 3; i++) { irsend.sendRC6(0xC00000, 24); delay(40);} //---------------||--------SECOND delay(500) ; for (int i = 0; i < 3; i++) { irsend.sendRC6(0xC00005, 24); delay(40);} delay(3000) ; irsend.sendRC6(0xC00083, 24); delay(40);} //----------------------||-----------THIRD delay(500) ;

if(voice == "kids")// FOR kids ! { for (int i = 0; i < 3; i++) { irsend.sendRC6(0xC000CC, 24); delay(40);} //menu butoon change the COOOCC to your remotes val delay(500) ; for (int i = 0; i < 3; i++) { irsend.sendRC6(0xC00059, 24); delay(40);} // FOR down key""" change with yours:"""" delay(500) ; for (int i = 0; i < 3; i++) { irsend.sendRC6(0xC00059, 24); delay(40);} //as many as you want to go down delay(500) ; for (int i = 0; i < 3; i++) { irsend.sendRC6(0xC00059, 24); delay(40);} //as many as you want to go down delay(500) ; for (int i = 0; i < 3; i++) { irsend.sendRC6(0xC00059, 24); delay(40);} //as many as you want to go down delay(500) ; for (int i = 0; i < 3; i++) { irsend.sendRC6(0xC00059, 24); delay(40);} //as many as you want to go down delay(500) ; for (int i = 0; i < 3; i++) { irsend.sendRC6(0xC00059, 24); delay(40);} //as many as you want to go down delay(500) ; for (int i = 0; i < 3; i++) { irsend.sendRC6(0xC00059, 24); delay(40);} //as many as you want to go down delay(500) ; for (int i = 0; i < 3; i++) { irsend.sendRC6(0xC0005C, 24); delay(40);} delay(500) ; // FOr select butoon if ireached }

if (voice == "up") // FOR up ! { for (int i = 0; i < 3; i++) { irsend.sendRC6(0xC00058, 24); delay(40);} // change with yours same for all delay(500) ; } if (voice == "down") // FOR down ! { for (int i = 0; i < 3; i++) { irsend.sendRC6(0xC00059, 24); delay(40);} delay(500) ; }

if (voice == "back") // FOR volume up ! { for (int i = 0; i < 3; i++) { irsend.sendRC6(0xC00083, 24); delay(40);} delay(500) ; }

if (voice == "select") // FOR select ! { for (int i = 0; i < 3; i++) { irsend.sendRC6(0xC0005C, 24); delay(40);} delay(500) ; }

if (voice == "menu") // FOR select ! { for (int i = 0; i < 3; i++) { irsend.sendRC6(0xC000CC, 24); delay(40);} delay(500) ; }

if (voice == "epic") // FOR epic ! { for (int i = 0; i < 3; i++) { irsend.sendRC6(0xC00007, 24); delay(40);} delay(500) ; for (int i = 0; i < 3; i++) { irsend.sendRC6(0xC00003, 24); delay(40);} delay(500) ; for (int i = 0; i < 3; i++) { irsend.sendRC6(0xC00005, 24); delay(40);} delay(500) ; }

if (voice == "nat geo") // FOR nat geo ! { for (int i = 0; i < 3; i++) { irsend.sendRC6(0xC00007, 24); delay(40);} delay(500) ; for (int i = 0; i < 3; i++) { irsend.sendRC6(0xC00003, 24); delay(40);} delay(500) ; for (int i = 0; i < 3; i++) { irsend.sendRC6(0xC00005, 24); delay(40);} delay(500) ; }

if (voice == "gesture") // FOR gesture ! { delay(100); Serial.println(1); int x=Serial.read();

if (x > 1 || x < -1){ delay(100); Serial.println(2); int y=Serial.read();

if (y > 1 || x < -1){ delay(100); Serial.println(3); int z=Serial.read(); }}}

voice=""; //Reset the variable after initiating }

OK FIRST

CONNECT ALL PARTS LIKE GIVEN ABOVE

Step 4: TEST TIME

OK NOW YOU SCCESFULLY MADE YOUR OWN BLUTOOTH VOICE CONTROLLED INFRARED LED REMODE JUST PUT IT IN A CASE

AND

INSTALL MY APP FOR VOICE CONTROLLING

download https://www.mediafire.com/file/8bsodak2ekwm2ct/man...

THEN CLICK FIRST BUTTON AND SPEACK COMMAND TO SET IN PROGRAM AND ENJOY

Make it Glow Contest

This is an entry in the
Make it Glow Contest

Be the First to Share

    Recommendations

    • Magnets Challenge

      Magnets Challenge
    • Raspberry Pi Contest 2020

      Raspberry Pi Contest 2020
    • Wearables Contest

      Wearables Contest

    Discussions