How to Combine ALL IR Remote Controllers into Voice Commands With Alexa and Sinric Pro. Including TV

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
have you ever sat down to watch some television and to your hurry you've realized you've misplaced the remote luckily there is a solution to this today i'm going to show you how to swap this for this alexa change channel to netflix on tv the build will allow us to change channel control volume change input play pause stop power on and power off as well as many other functions to multiple devices this means you could control your surround sound tvs cd radio and many more devices from one simple tiny device this is the circuit we are going to build today please pause the video here if you wish to study this diagram further for this build we will need one esp32 or 8266 one ir receiver one ir led one npn transistor and one 330 ohm resistor first off we'll need to connect our positive and ground power rails next we are going to connect to our ir receiver there are three pins on the ir receiver going from right to left they are signal positive and ground i'm connecting the signal pin to pin 12 and the positive and ground to the respective power rails that's it for the ir receiver next we're going to be wiring in the ir led you're going to need your transistor a 330 ohm resistor and your ir led firstly grab your transistor we're going to connect the middle pin to pin 12 via a resistor and we're going to connect the pin on the left to ground and the pin on the right to the ground leg of the led which is the shorter leg of the led the longer leg is the positive leg and we're going to connect that to the positive power rail that's it for this build now let's go to the sketch for this upload we are going to need to add the esp32 or 8266 to the board manager simply go to file boards manager urls and paste the urls from the description of this video [Music] you can then go to tools boards boards manager and search for and install esp32 and then the esp8266 if you are using that [Music] next we need to install the libraries we are going to need simply go to tools manage libraries we need to search for and install the following libraries ir remote esp8266 [Music] arduino json [Music] web sockets and sinric pro libraries with these libraries installed you will next need my code which can be found in the description simply download it and open there are a fair few things that will need to be changed about the sketch in order to make it work with your tv as not every remote and tv works in the same way first of all you will probably need to change the pins to the ir receiver and ir leds as you might be different in your build below this are the credentials that you need to insert from simric pro and your wi-fi password and id but i'll come back to this the next part is fairly important as this is going to dictate what channels you want to use in the example i have three channels configured but you can have as many as you like i have netflix as the first channel this is channel 0 meaning bbc one is channel one and bbc2 is channel two etc these actual channel names are only recognized by alexa and are actually pre-defined so unfortunately you can't just put any channel name in there and expect alexa to recognize it amazon haven't officially published a list of supported channels but most mainstream channels work the best way is trial and error you can check the serial monitor and if the monitor prints out the channel name then it's supported you can also say change channel to channel 2 and this will put whichever channel was in slot 2. so bbc2 in my example next i'm going to talk about ir or infrared and how you can put your own ir codes in the sketch if you upload the sketch and have set up your ir receiver correctly you should be able to simply open the serial monitor point your tv remote at it and press any button which should print out the code to the serial monitor there are three parts of the code that we need type brand which could be sony panasonic samsung etc the actual hex code and the bit in my example the type here is nec and the bit is 32. we simply copy and paste this information to an irsn code like so now when you adjust the volume via alexa this should send whatever ir signal you put in from the esp i've actually put the same code several times so it's equivalent of pressing up on the volume several times this is basically how all the callback functions work in the sketch with some very minor differences which i'll go through for changing channels you could put in multiple button combinations this is particularly useful for things like netflix which aren't technically a channel but an app in my sketch i have it send an ir code for enter and play and various combinations in order for it to open up netflix log in and play whatever is on my home page as i might have mentioned earlier you could control multiple multimedia devices from this build and sketch for example i can turn on my surround sound speakers with simple voice command this works by simply creating two devices in symmetric pro and using an if statement in the sketch to determine what code should be sent for example in the mute section here the statement is if the device id equals tv id2 then send these codes if equals tv id then send these codes this is very useful as you can combine multiple remotes into one device effectively the callback functions section dictates what abilities you want each of your devices to have i have adjust volume mute and power for tv2 which is my surround sound system for my actual tv my tv i have them all assigned next i'm going to show you where to get your synrik pro credentials and how to sign up to simrip pro once you have gone to simric pro's website simric.pro you just need to sign up once that is done you will need to get the credentials this is where your app key and app secret are to copy and paste these into the sketch next go to devices click add device put in the name so tv or something put anything in the description change the device type to tv leave the key to default and the room to anything you like just click next and next we can now get the device id by clicking copy here and pasting it into our sketch if you want to add multiple devices like i discussed earlier say surround sound system a radio or cd player or whatever you can repeat these steps again and copy and paste as many devices as you wish into the sketch you can then upload your device and you are done you can integrate alexa into cinemic pro by simply downloading the synrik pro skill to alexa to do this click home skills and games [Music] search for cineric pro and install you will also need to log into the skill once you've done this it should automatically give you your new devices in alexa from this point you can also have a scan for new devices if it does not appear once i was happy with the build i condensed it into a much smaller design using an esp-1 board allowing me to hide this in many places in my living room thank you so much for watching my video if you enjoyed this and would like to see other tutorials please like and subscribe my channel thanks a lot take care
Info
Channel: Tech Stuff DIY
Views: 7,350
Rating: undefined out of 5
Keywords: sinric pro, ir, infra red, remote, control, controller, alexa, diy, tv, television, smart home, esp 32, esp 8266, esp 01, automation, voice control, amazon, tech, home, ideas, echo, echo dot, electrics, electronics
Id: nh5adggIJYo
Channel Id: undefined
Length: 10min 0sec (600 seconds)
Published: Sat Feb 13 2021
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.