Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. My Project
  3. LG TV controller

LG TV controller

Scheduled Pinned Locked Moved My Project
25 Posts 10 Posters 20.6k Views 14 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • mfalkviddM Offline
    mfalkviddM Offline
    mfalkvidd
    Mod
    wrote on last edited by
    #2

    Very cool, thanks for sharing!

    1 Reply Last reply
    0
    • hekH Offline
      hekH Offline
      hek
      Admin
      wrote on last edited by
      #3

      Nice!

      Make sure to add your project to OpenHardware.io and tag it with "MySensors" and "Contest2016" :)

      SmurphenS 1 Reply Last reply
      0
      • hekH hek

        Nice!

        Make sure to add your project to OpenHardware.io and tag it with "MySensors" and "Contest2016" :)

        SmurphenS Offline
        SmurphenS Offline
        Smurphen
        wrote on last edited by
        #4

        @hek said:

        Nice!

        Make sure to add your project to OpenHardware.io and tag it with "MySensors" and "Contest2016" :)

        Thanks, I will do that!

        1 Reply Last reply
        0
        • sundberg84S Offline
          sundberg84S Offline
          sundberg84
          Hardware Contributor
          wrote on last edited by
          #5

          Nice! I will check my Samsung if I can do that!
          Great job.

          Controller: Proxmox VM - Home Assistant
          MySensors GW: Arduino Uno - W5100 Ethernet, Gw Shield Nrf24l01+ 2,4Ghz
          MySensors GW: Arduino Uno - Gw Shield RFM69, 433mhz
          RFLink GW - Arduino Mega + RFLink Shield, 433mhz

          SmurphenS 1 Reply Last reply
          0
          • sundberg84S sundberg84

            Nice! I will check my Samsung if I can do that!
            Great job.

            SmurphenS Offline
            SmurphenS Offline
            Smurphen
            wrote on last edited by
            #6

            @sundberg84 said:

            Nice! I will check my Samsung if I can do that!
            Great job.

            Thanks!

            In my "research" I found out that some Samsung TV's and other manufactors have a serial port that can be controlled like this.

            1 Reply Last reply
            1
            • scalzS Offline
              scalzS Offline
              scalz
              Hardware Contributor
              wrote on last edited by
              #7

              very cool idea :thumbsup:

              1 Reply Last reply
              0
              • tbowmoT Offline
                tbowmoT Offline
                tbowmo
                Admin
                wrote on last edited by
                #8

                @Smurphen

                Now, that's cool.. I have thought about doing something similar, to detect if my tv (also an LG) is turned on. And use that to control some lightning in the living room. But as so many other things, it's only on the idea stage at the moment..

                SmurphenS 1 Reply Last reply
                0
                • tbowmoT tbowmo

                  @Smurphen

                  Now, that's cool.. I have thought about doing something similar, to detect if my tv (also an LG) is turned on. And use that to control some lightning in the living room. But as so many other things, it's only on the idea stage at the moment..

                  SmurphenS Offline
                  SmurphenS Offline
                  Smurphen
                  wrote on last edited by
                  #9

                  @tbowmo said:

                  @Smurphen

                  Now, that's cool.. I have thought about doing something similar, to detect if my tv (also an LG) is turned on. And use that to control some lightning in the living room. But as so many other things, it's only on the idea stage at the moment..

                  Thanks!

                  I'm currently doing that. When my TV turns on, the light behind my TV also turns on. But because I don't want to spam my TV with requests, there can be up to 30 seconds delay before Domoticz knows that the TV is on or not. But there is also a USB port behind my TV. I have noticed that there is only power in the USB when the TV is on. So I thinking of connecting the USB port to my Arduino to check if the power is on or not.

                  TRS-80T 1 Reply Last reply
                  0
                  • sundberg84S Offline
                    sundberg84S Offline
                    sundberg84
                    Hardware Contributor
                    wrote on last edited by sundberg84
                    #10

                    Sooo... after some waiting i recieved my RS232 to TTL... but soon found out that my Samsung does not use the RS232... but a 3.5mm stereo as a service port... seems like its the same protocoll so it should be able to do everything from changing channel to volyme, source and other cool stuff...

                    Build Plans:
                    0_1457642388647_1.jpg

                    A great weekend project... :) I will be back!

                    Controller: Proxmox VM - Home Assistant
                    MySensors GW: Arduino Uno - W5100 Ethernet, Gw Shield Nrf24l01+ 2,4Ghz
                    MySensors GW: Arduino Uno - Gw Shield RFM69, 433mhz
                    RFLink GW - Arduino Mega + RFLink Shield, 433mhz

                    SmurphenS 1 Reply Last reply
                    2
                    • sundberg84S sundberg84

                      Sooo... after some waiting i recieved my RS232 to TTL... but soon found out that my Samsung does not use the RS232... but a 3.5mm stereo as a service port... seems like its the same protocoll so it should be able to do everything from changing channel to volyme, source and other cool stuff...

                      Build Plans:
                      0_1457642388647_1.jpg

                      A great weekend project... :) I will be back!

                      SmurphenS Offline
                      SmurphenS Offline
                      Smurphen
                      wrote on last edited by
                      #11

                      @sundberg84 Sounds like it would work! Looking forward too see the result! :smiley:

                      1 Reply Last reply
                      0
                      • sundberg84S Offline
                        sundberg84S Offline
                        sundberg84
                        Hardware Contributor
                        wrote on last edited by sundberg84
                        #12

                        Im not having any luck with this project. I have made my Arduno->RS232 to TTL -> 3.5 plug and it seems to work when im testing. Connecting it to my Samsung does nothing. TV does not seem like its able to send any status... What i have read its possible to send command in hex to do different thing but at this point im pausing this project... I need a new TV as well so i might solve it with bying a LG ;)

                        Controller: Proxmox VM - Home Assistant
                        MySensors GW: Arduino Uno - W5100 Ethernet, Gw Shield Nrf24l01+ 2,4Ghz
                        MySensors GW: Arduino Uno - Gw Shield RFM69, 433mhz
                        RFLink GW - Arduino Mega + RFLink Shield, 433mhz

                        SparkmanS SmurphenS 2 Replies Last reply
                        0
                        • sundberg84S sundberg84

                          Im not having any luck with this project. I have made my Arduno->RS232 to TTL -> 3.5 plug and it seems to work when im testing. Connecting it to my Samsung does nothing. TV does not seem like its able to send any status... What i have read its possible to send command in hex to do different thing but at this point im pausing this project... I need a new TV as well so i might solve it with bying a LG ;)

                          SparkmanS Offline
                          SparkmanS Offline
                          Sparkman
                          Hero Member
                          wrote on last edited by
                          #13

                          @sundberg84 I'm not sure if any of the current LG TV's have an RS232 port anymore. Most new ones (at least the "smart" ones) are now running WebOS and can in theory be controlled through it over IP. I have two LG TV's, one is a 2010 and it has a serial port, but my 2012 Smart TV does not.

                          Cheers
                          Al

                          1 Reply Last reply
                          1
                          • sundberg84S sundberg84

                            Im not having any luck with this project. I have made my Arduno->RS232 to TTL -> 3.5 plug and it seems to work when im testing. Connecting it to my Samsung does nothing. TV does not seem like its able to send any status... What i have read its possible to send command in hex to do different thing but at this point im pausing this project... I need a new TV as well so i might solve it with bying a LG ;)

                            SmurphenS Offline
                            SmurphenS Offline
                            Smurphen
                            wrote on last edited by
                            #14

                            @sundberg84 That´s too bad! I thought it would work with the 3.5 mm plug.
                            It would be funny to see the salespersons reaction when you are in the store and asks after a TV with a RS232 port!

                            1 Reply Last reply
                            1
                            • SmurphenS Smurphen

                              @tbowmo said:

                              @Smurphen

                              Now, that's cool.. I have thought about doing something similar, to detect if my tv (also an LG) is turned on. And use that to control some lightning in the living room. But as so many other things, it's only on the idea stage at the moment..

                              Thanks!

                              I'm currently doing that. When my TV turns on, the light behind my TV also turns on. But because I don't want to spam my TV with requests, there can be up to 30 seconds delay before Domoticz knows that the TV is on or not. But there is also a USB port behind my TV. I have noticed that there is only power in the USB when the TV is on. So I thinking of connecting the USB port to my Arduino to check if the power is on or not.

                              TRS-80T Offline
                              TRS-80T Offline
                              TRS-80
                              wrote on last edited by TRS-80
                              #15

                              @Smurphen said:

                              I'm currently doing that. When my TV turns on, the light behind my TV also turns on. But because I don't want to spam my TV with requests, there can be up to 30 seconds delay before Domoticz knows that the TV is on or not. But there is also a USB port behind my TV. I have noticed that there is only power in the USB when the TV is on. So I thinking of connecting the USB port to my Arduino to check if the power is on or not.

                              Why not have the Arduino keep polling the TV to see if it's on, and then only when it is on, then send some signal to your controller (Domotics) that the TV just came on. Then Domotics could do whatever (turn on/off other lights, etc...)? Power (battery) is not a concern on this node, as it's powered by USB.

                              SmurphenS 1 Reply Last reply
                              1
                              • TRS-80T TRS-80

                                @Smurphen said:

                                I'm currently doing that. When my TV turns on, the light behind my TV also turns on. But because I don't want to spam my TV with requests, there can be up to 30 seconds delay before Domoticz knows that the TV is on or not. But there is also a USB port behind my TV. I have noticed that there is only power in the USB when the TV is on. So I thinking of connecting the USB port to my Arduino to check if the power is on or not.

                                Why not have the Arduino keep polling the TV to see if it's on, and then only when it is on, then send some signal to your controller (Domotics) that the TV just came on. Then Domotics could do whatever (turn on/off other lights, etc...)? Power (battery) is not a concern on this node, as it's powered by USB.

                                SmurphenS Offline
                                SmurphenS Offline
                                Smurphen
                                wrote on last edited by
                                #16

                                @TRS-80 For some reason, if i'm sending request too frequently the response from the TV get mixed up and unreadible. Sometimes it takes few seconds for the responses too arrive.

                                If I'm also changing volume or maybe channel via arduino and that is happening at the same time as arduino is checking power status, it will get som weird response. But this is only a problem when the TV is on, so you have point. I should be able to change the frequens when the power is off to maybe 5 seconds and keep 30 seconds when the power is on.

                                TRS-80T 1 Reply Last reply
                                0
                                • SmurphenS Smurphen

                                  @TRS-80 For some reason, if i'm sending request too frequently the response from the TV get mixed up and unreadible. Sometimes it takes few seconds for the responses too arrive.

                                  If I'm also changing volume or maybe channel via arduino and that is happening at the same time as arduino is checking power status, it will get som weird response. But this is only a problem when the TV is on, so you have point. I should be able to change the frequens when the power is off to maybe 5 seconds and keep 30 seconds when the power is on.

                                  TRS-80T Offline
                                  TRS-80T Offline
                                  TRS-80
                                  wrote on last edited by
                                  #17

                                  @Smurphen said:

                                  @TRS-80 For some reason, if i'm sending request too frequently the response from the TV get mixed up and unreadible. Sometimes it takes few seconds for the responses too arrive.

                                  If I'm also changing volume or maybe channel via arduino and that is happening at the same time as arduino is checking power status, it will get som weird response. But this is only a problem when the TV is on, so you have point. I should be able to change the frequens when the power is off to maybe 5 seconds and keep 30 seconds when the power is on.

                                  Perhaps further debugging and/or careful programming and error trapping between Arduino and TV could alleviate some of those problems? And/or, once TV is set to on, have Arduino check less frequently?

                                  I still would prefer the former solution over the latter, to make it more nice, faster response, and higher WAF as well as "show off to friends" factor. I mean, let's get our priorities straight, that is at least partly why we do this, right? :)

                                  1 Reply Last reply
                                  1
                                  • Jeroen van PeltJ Offline
                                    Jeroen van PeltJ Offline
                                    Jeroen van Pelt
                                    wrote on last edited by
                                    #18

                                    It seems the link to the RS232 to TTL converter went stale. I am ordering this one instead: https://www.aliexpress.com/item/RS232-To-TTL-Converter-Module-COM-Serial-Board-MAX3232-MAX232CSE-Transfer-Chip-atmega16/1920204765.html?ws_ab_test=searchweb0_0,searchweb201602_2_10037_10077,searchweb201603_1&btsid=af8a76b1-c9b5-4ea7-9c5b-209cdc11d1f1

                                    1 Reply Last reply
                                    1
                                    • dbemowskD Offline
                                      dbemowskD Offline
                                      dbemowsk
                                      wrote on last edited by
                                      #19

                                      I am going to have to try this. I have a 60 inch Sharp Aquos TV that has a 9 pin serial port. I have ordered one of these: RS232 TTL converter It is a china version, but I couldn't beat it at $0.73 with free shipping. The other nice thing is that in the manual for my TV on page 51 it shows the complete serial protocol and command set. If I can in some way combine this with the IR sender and receiver project to control my cable box too, this would be a well rounded solution.

                                      Vera Plus running UI7 with MySensors, Sonoffs and 1-Wire devices
                                      Visit my website for more Bits, Bytes and Ramblings from me: http://dan.bemowski.info/

                                      1 Reply Last reply
                                      2
                                      • dbemowskD Offline
                                        dbemowskD Offline
                                        dbemowsk
                                        wrote on last edited by
                                        #20

                                        So I received my serial converter the other day and did some testing. I connected the converter to one of my FTDI adapters and to the TV. I found out how to send the commands to the TV. The TV will respond with OK if the command was successful or ERR if it wasn't. The one thing I can't get from the TV is feedback such as power on and other commands. It would be nice to be able to tell when it is turned on and off manually, but I will work with what I have.

                                        Vera Plus running UI7 with MySensors, Sonoffs and 1-Wire devices
                                        Visit my website for more Bits, Bytes and Ramblings from me: http://dan.bemowski.info/

                                        SmurphenS 1 Reply Last reply
                                        1
                                        • dbemowskD dbemowsk

                                          So I received my serial converter the other day and did some testing. I connected the converter to one of my FTDI adapters and to the TV. I found out how to send the commands to the TV. The TV will respond with OK if the command was successful or ERR if it wasn't. The one thing I can't get from the TV is feedback such as power on and other commands. It would be nice to be able to tell when it is turned on and off manually, but I will work with what I have.

                                          SmurphenS Offline
                                          SmurphenS Offline
                                          Smurphen
                                          wrote on last edited by
                                          #21

                                          @dbemowsk Nice to see that you got it working! Behinde my tv there is a USB port that is powered only when the TV is on. Maybe its the same on your tv and that way you could check if the TV is on it not.

                                          1 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          18

                                          Online

                                          11.7k

                                          Users

                                          11.2k

                                          Topics

                                          113.1k

                                          Posts


                                          Copyright 2025 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • MySensors
                                          • OpenHardware.io
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular