Page 1 of 1

[APP] Ambi-Light

Posted: Mon Mar 27, 2017 11:17 pm
by aenniw
Hi all

I would like to share with you simple application for ambient lightning of TV (tested on LE46B650)
App works with TV channels, DLNA and files from usb drives. It cannot handle dynamic scenes smoothly but for normal TV shows it is enought.

To build it you need ESP8266 that is connected to the same network as TV, +-4m individually addressable led strip and powersupply.
In config file of ambi app update ip-addres of ESP8266, number of leds and its port. Green button on remote turns on abmi and yellow turns it off.

Hope that someone finds it usefull.

>>> Examples <<<

TV show
File on USB drive

>>> APP and ESP8266 sketch <<<

Re: [APP] Ambi-Light

Posted: Wed Mar 29, 2017 8:21 am
by asiersan
Could it work on f/h series?


Enviado desde mi iPhone utilizando Tapatalk

Re: [APP] Ambi-Light

Posted: Sun Apr 02, 2017 1:09 pm
by matthewk
Cool. Can you share how you did the part in the TV? You need to extract the color information at the edges of the image, so I wonder how you accessed the image and did the processing for the color extraction. Thanks.

Re: [APP] Ambi-Light

Posted: Sat Apr 08, 2017 1:55 pm
by aenniw
asiersan wrote:
Wed Mar 29, 2017 8:21 am
Could it work on f/h series?


Enviado desde mi iPhone utilizando Tapatalk
If there is any way to access memory containing current frame that is showed than it could work,
but should look for more info regarding this in their forum as my knowledge of f/h series very limited.

Re: [APP] Ambi-Light

Posted: Sat Apr 08, 2017 2:19 pm
by aenniw
matthewk wrote:
Sun Apr 02, 2017 1:09 pm
Cool. Can you share how you did the part in the TV? You need to extract the color information at the edges of the image, so I wonder how you accessed the image and did the processing for the color extraction. Thanks.
Bellow you can find sources for this App and also simple simulator so that you can develop without using any hardware (led-strip or esp)

The extraction of color is based on old sources of PVR that I found online.
The whole proccess of sampling is based on averaging R,G,B parst of color on areas around edges of display and sending it via UDP to remote host for rendering. Note that it is very time consuming proccess without using any SIMD instructions (I am not aware that they are exposed somehow in B650) and thus App is skipping some pixels to compensate for it ... and this leads to problems that sometimes color sampled is diferent that color that is displayed on TV. The HW part especialy ESP-8266 do some post processing of samples that are recieved and tries to smooth it.

If you want to look more into it, the information how to setup devel env. for it should be prodived in the link bellow. I stoped messing with it at this point, as the result was satisfying for me in most cases. Sources

Re: [APP] Ambi-Light

Posted: Sun Apr 09, 2017 5:52 pm
by matthewk
Hi,

thanks. So the key is to find the image in the memory and you found it in the PVR sources. Indeed, this is really accessing the TV at a very low level. Is the time consuming part to extract the color info at the edges or the UDP transmission? In the first case, one could try to outsource that part to a dedicated HW, e.g. a Raspi - there is already software that can do the job (Hyperion). If the latter is the problem, this won´t be a solution.
Anyway, the tricky part will be to access image in the memory for other TVs (E/F/G)...

Re: [APP] Ambi-Light

Posted: Sat Apr 29, 2017 10:02 am
by aenniw
The most time consuming part is the extraction of color. And yes it can be outsorced to other HW but the point of this App was that the only HW that you will need are LEDs, PSU and ESP. More importantly this App does not aim to replace current solutions that run on Raspi + Hyperion but to add ability to also have ambient light for TV channels using integrated TV tuner.

So in short If you use mainly use TV lik it is without any external video sources like SET-TOPBOX or PC connected via HDMI this app is for you,
otherwise you should use more robust setep like Raspi + Hyperion or other. Also the budget for accessories needed is more pricy when you use Raspi + Hyperion ...