3

So I've been beginning to play with my Raspberry Pi, and have decided to make my "dumb" TV into a smart TV. I'm looking into setting the PI up to do this, but one feature I would like to use is to turn the TV on using the Raspberry Pi. Unfortunately my TV does not seem to have CEC capabilities.

Is there anyway to cause the Pi to turn on a TV without CEC capabilities? Ideally this would not involve taking apart the TV, but I'd be open to creating some sort of switch between the TV and the power source.

Greenonline
  • 2,740
  • 4
  • 23
  • 36
DonyorM
  • 181
  • 1
  • 4
  • 1
    Hello and welcome. Related: https://raspberrypi.stackexchange.com/questions/28808/tv-probably-doesnt-have-hdmi-cec-unable-to-control-osmc-on-pi-2-thru-tv-remot and https://raspberrypi.stackexchange.com/questions/22433/what-hardware-do-i-need-to-turn-raspberry-pi-into-a-tv-remote-controller – Ghanima Feb 01 '16 at 15:24
  • If you're not into electronics (aka driving the IR LED on a low level with the Pi itself), this is probably the best shot: http://raspberrypi.stackexchange.com/a/22434/19949 – Ghanima Feb 01 '16 at 15:48
  • Does the TV have a serial or Ethernet port with the ability for control? Just because it's not a "smart" tv doesn't mean it lacks either of those. However, if it's a consumer TV, it probably is lacking other control ports. Your only option will probably be IR; but you may luck out and find something else. – YetAnotherRandomUser Apr 05 '16 at 03:23
  • @allanonmage I don't think it has any of those. Cloest thing is the USB port I believe. There is a serial port I need to look into. – DonyorM Apr 05 '16 at 03:31
  • Look on the manufacturer's site for a protocol/control document. You'll have to do some programming to make it work, but it's simple stuff. – YetAnotherRandomUser Apr 05 '16 at 03:33

3 Answers3

2

Since your TV does not have CEC capabilities, and you do not wish to take your TV apart, your options are rather limited. Because, often, your "dumb TV" only has USB ports for debugging and for media such as images on a flash drive and commonly will not be capable of turning on the TV. As the microcontroller that controls the USB interface will often power down to reduce power consumption and reduce the amount of ghost power used by the TV when off. Your alternative solutions are listed below.

  1. My personal recommendation, also recommended by @Ghanima, is to use a USB infrared blaster. I have also seen this done by dissassembling a TV remote and soldering the GPIO pins of the Pi to the remote to simulate a button press.
  2. Depending on your TV model, you may be able to turn it on by using a controlled outlet, as some TVs will always turn on automatically when power is applied. This involves temporarily cutting, and then restoring, the mains power to your TV. I do not personally recommend this as it may dramatically reduce the lifespan of your tv - the internal power supply would be facing extended stress because its capacitors would always be drained just before the television is turned on. I have personally seen this done with an infrared remote and a controlled outlet when someone I know had their TV IR receiver fail on them and it was out of warranty. It's been running solid like that for over 2 years now. If this is something that you are considering you may go about this using a controlled outlet such as https://www.sparkfun.com/products/10747? which will reduce your exposure to dangerous voltages and allow your Raspberry Pi to control the flow of power by sending a signal to the "power switch". An added side benefit of this method is that you may save power by preventing your tv from consuming ghost power (electricity that is used on idle searching for an IR signal and keeping the power supply capacitors topped up).
goobering
  • 10,730
  • 4
  • 39
  • 64
Mohammad Ali
  • 2,383
  • 1
  • 11
  • 18
0

I would just use one of those IR blasters and connect it to your Raspberry Pi or a Broadlink hub (unless you need the Raspberry Pi to control it) and for the first option you would need an IR receiver to find the IR frequency.

Hope this helped

  • Your answer could be improved with additional supporting information. Please [edit] to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers in the help center. – Community Jan 03 '23 at 18:48
0

I made a script to turn my TV on.

check it out:

https://gist.github.com/gocarlos/64acb8d8ce2e7032e62bdb243dbe507b

kmartinho
  • 1
  • 1
  • The poster mentioned that his to was "dumb" which kind of implies that his tv is not even modern enough to connect to the Internet – Mohammad Ali May 07 '16 at 21:41