Replies: 1 comment 1 reply
-
Hi |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi awawa-dev,
Some time ago, I saw a question on the openlgtv discord channel about switching off power to the LEDs when not being used e.g. watching TV during the daytime. The suggested solutions included using a smart socket or an in-line lamp rocker switch in the SMPS DC output, which will do the job, but I thought there may be a better way, as both of these still caused some power draw, albeit small. So I set out to find one.
Note: this is really only for those building their own power supply enclosures using a cage type SMPS (e.g. Meanwell) and not for those using plug-in DC power bricks (although Option 2 or 3 could be adapted for this).
I am in the testing/analysing/re-testing before finalising my build, stage at present. I am trying to get the materials to build a suitable LED frame to fit the back of my 65OLEDC1 TV before final deployment.
FYI, since I also watch TV during the day, my HyperHDR is configured so that the 206 SK6812RGBW 5v LEDs in my test setup stay off at TV power on and I manually enable them via the HyperHDR web interface when I want to use the LEDs. I am using a generic RP2040 Zero connected to the TV via USB for testing, which seems to work very well with HyperSerialPico/HyperHDR.
There are a number of possible solutions, but all require one or two 3.3v opto-coupled relays (which I have been testing) and toggling of one or two GPIO pins via HyperHDR. I had a look at the "compile your own" instructions, but (and I could be wrong) I could not find a way to add the functionality required to activate/deactivate one or two GPIO pins either with the LED enable/disable button or separately.
Options:
Option 1. Use a 3.3v opto-coupled relay module to connect/disconnect the mains power live wire to the SMPS when the LEDs are enabled/disabled in HyperHDR. The relay module would be powered by the RP2040's 3.3v output (relay module requires less than 100mA - when connected to the TV's USB the RP2040 can provide 3.3v 300mA max) and would require a GPIO pin to be toggled high to activate the relay when the LEDs are enabled and toggled low when they are disabled.
Option 2. Add a dedicated button in HyperHDR to toggle the above relay. With the addition of one or more DC barrel sockets and/or USB-C sockets to the enclosure case, during the day this allows the power supply to be used to power other external items requiring 5v (e.g. powered USB hub, Raspberry Pi etc) without triggering the LEDs. The Meanwell SMPS power supply has an excess of unused capacity that could be utilized in this way, even when the LEDs are active.
Option 3. As above, but add two dedicated buttons to toggle two GPIO pins and relays. Allows separate control of the SMPS and of an added mains socket fitted to the enclosure case, controlled via HyperHDR. Useful for controlling power to a bluray player or other device e.g. one that uses a plug-in DC power supply, to ensure zero power usage when not required.
My preference would be for Option 3, as it enables more flexibility.
I have attached two (very poor) layout drawings to hopefully clarify the above. I have only included connections required between the relays, RP2040 and Live In/Out options. There will of course be a connection from the RP2040 to the LEDs. If further clarification is required I will be happy to oblige.
If this is something doable via GitHub action, please advise how and I am happy to have a go. I did have a look but could not figure out how to do it.
I appreciate you are probably very busy.
If it is something you have to add, is it fairly straightforward to do? I am happy to do all testing of a new beta version and do a write up for all of the above options for others that may be interested in making their HyperSerialPico set up completely zero waste energy when not in use.
What are your thoughts?
Option 1 & 2:
Option 3:
Beta Was this translation helpful? Give feedback.
All reactions