loading
For my first ible I just wanted to give everyone a quick tutorial on how to use the HDMI-CEC protocol to control your Pi with your Tv's remote control.

This is very useful because is saves you from having to buy a remote just for your Pi and also leaves you with an open usb that you would have needed for your wireless keyboard and mouse.

Step 1: Do You Have CEC?

Every manufacturer has a different trade name for CEC,

Samsung - Anynet+
Sony - BRAVIA Link or BRAVIA Sync
Sharp - Aquos Link
Hitachi - HDMI-CECAOC - E-link
Pioneer - Kuro Link
Toshiba - Regza Link or CE-Link
LG - SimpLink
Panasonic - VIERA Link or HDAVI Control or EZ-Sync
Philips - EasyLink

If your TV has a button, logo, or menu with one of these names or similar, congratulations you have CEC!

Step 2: Getting Set Up

I'm going to be using an LG - 42LD450 and a Panasonic TC - P50X2 as examples. My Raspberry Pi is a type B and is running Raspbmc. Most of the steps will be very similar in most Tv's. If your lucky you might only have to plug in your Pi without any additional steps!

Get your Raspberry Pi hooked up using HDMI (obviously to use HDMI -CEC you have to use and HDMI cable for video)

Step 3: LG TV

For my LG tv these are the steps.
1. Turn on the tv and go to the Raspberry Pi input.

2. Boot up the Pi and wait for it to get to the Raspbmc home screen.

3. Press 'SimpLink' on your tv's remote.

4. Turn it on

5. ENJOY!

The tv and the Pi are now 'paired' and the tv remote will control the basic functions in Raspbmc. Play, pause, directional arrows, ok etc.

Step 4: Panasonic TV

Same as before,

1. Turn on tv to the Pi's input, boot Pi.

2. On the tv, menu - > setup - > Viera link setting - > ON

3. Done!

This tv will even turn on and off when you boot and shutdown Raspbmc.

Step 5: Extra Tips for Home Theater Set Up

1. Use your tv's usb port to power your Pi. This will save you a power outlet and phone charger.

2. Use an Ethernet cable and save all your movies on a network drive. Now you don't need a powered hub or hard drives behind your TV.

3. Consider overclocking and using a simpler skin to give a quicker response.
Please Vote!
<p>Thanks! I have a Raspberry Pi 2 running Plex Media Player connected to a Dicksmith 40&quot; TV. I turned on HDMI CEC and I am now able to use the TV remote to control Plex on the Raspberry Pi 2! Thanks very much for this guide.</p>
<p>did this yesterday , worked great, took me 5 minutes on a Toshiba TV</p>
<p>Thanks a bunch pal! Saved me so much time and bother!</p>
<p>A big thank you!</p><p>If you have a problem detecting you raspberry pi with your TV, swap the HDMI cable! This instructable worked for me in mere seconds after I swapped in a <i>better quality HDMI cable</i> than the one that came in the Vilros &quot;Raspberry Pi 2 Model B (1GB) Complete Starter Kit&quot; sold by Prestige Milano via amazon.ca.</p>
<p>yup, seconded. swapped for a better hdmi cable and it works again!</p>
hey i have a starter kit with everything on sd so i try this and my controller doesnt work. do i have to hace everything installed before i do this?
<p>In Sony its called &quot;BRAVIA Sync&quot; and is found at the top of the remote with all the control buttons inside a box</p>
<p>Excelled Article!!!</p>
Tip of the month!!
<p>This works amazing with a Samsung TV. I didn't even have to pick anything just pointed my remote at the TV and every single button worked. Number pad, playback controls, everything. Thank you!</p>
<p>Thank you so much! It works like a charm.</p>
<p>Recently I tried to use CEC with an RPI to check the status of a TV, Bluray player, and media player. I was hoping to make my home automation system smarter so that it would know if a device was on or off or set the the correct input when the user presses a button to send an IR code to the device. That way you could create IR macros that won't turn the TV off if it is already on. If anyone is interested, I created a board to make it really easy to turn the RPI into a universal remote. You can buy the kit here: <a href="http://www.slimbots.com" rel="nofollow">http://www.slimbots.com</a></p><p>I ended up running into a dead end with CEC because the RPI could not control or poll all of the devices on the network. I could only get it to poll the TV which kind of defeated the purpose.</p>
<p>This is genius! Worked perfectly on my LG! Thank you very much!</p>
<p>Dang.. this rocks. you made my day!</p>
<p>and alot of the buttons dont work on hdmi -cec. i prefer to use a first gen xbox dvdkit on my pi</p>
<p>On XBMC/Kodi, you can also use KeyMap Editor add-on to add actions on buttons that do not work !</p>
<p>works fine, except I cannot find a button to exit the xbmc's menu's.</p><p>Probably my remote, though......</p>
<p>@3of5 All TVs do not have this option.</p><p> I have a philips and it works perfectly.</p>
how's this down on a Samsung TV? can't find anything.
<p>just did it and am now able to use anynet with my xbmc running on my raspberry pi model B</p>
@craigw22 it may be possible that LG is using the same remote on lower end TV's that don't support it. Also when in xmbc you should see a notification indication that the HDMI-cec has been found.
@Ho Lee Shiet, when I turn off my TV it sends a shutdown command of the pi and when I shut down my pi it sends a shut down command to the TV. I haven't bricked the pi yet but I didn't even think of that thanks for the comment
<p>Hi,</p><p>I have a LG 42LD450 Tv and my remote looks the same as yours except the Simplink button is in a different position. However when I turn Simplink on it does not allow me to control the Pi. Any ideas why this is?</p><p>Thanks,</p><p>Craig</p>
1. Use your tv's usb port to power your Pi. This will save you a power outlet and phone charger. <br><br>When using TV usb power and turn off TV will that brick the pi?
<p>This is awesome. Thanks. I set up XBMC on my Pi and had no idea. it works with my Sony smart TV remote. </p>
I have a Samsung series 5. No setup required. I found out when I by accident hit the arrow keys on my remote. <br>

About This Instructable

364,881views

376favorites

License:

More by Robepper:Raspberry Pi Remote For Free!  
Add instructable to: