Skip to content
This repository has been archived by the owner on Nov 5, 2024. It is now read-only.

Latest commit

 

History

History
112 lines (77 loc) · 5.88 KB

README.md

File metadata and controls

112 lines (77 loc) · 5.88 KB

No active development here!

Hi, I do no longer any active development on adrilight. I no longer have the same TV setup at home and I switched my HTPC from Windows to Linux Mint also.

What you can do now:

  • fork the project and let it live on. The main branch is the last .net framework version, the dotnetcore branch contains a more recent version of the project based on dotnetcore but was never released.
  • take a look at way better ambilight clones like Hyperion

Good luck!





adrilight V2

adrilight logo

An Ambilight clone for Windows based sources - HTPC or just a normal PC

What does it do?

Adrilight lights up LEDs behind your screen or TV to step up the viewing experience to the next level.

It reads the Windows screen content using the Windows Desktop Duplication API, infers the average color in each zone (=spot) and transfers these colors to an arduino via USB. The arduino then sends this color data to WS2812b (or compatible) LED strips which are around your screen/monitor:

PC (adrilight.exe) => arduino (adrilight.ino) => LEDs

New: You have control over the white balance of the LEDs to match there color to your TV.

What does it NOT do?

This solution only analyzes image data from your windows screen. It cannot be used for your xbox or playstation or bluray player.

It cannot be used for normal television channels unless you are watching them through your PC. For example via Kodi and TVHeadend.

Performance

On a typical PC, it will not use more than 10% CPU power in normal operations.

On a typical hardware setup, it will be capable to reach 60fps on your LEDs. It is known to work with at least 228 LEDs.

Installation

This should be improved but a quick rundown on what to do:

  • Buy
    • Arduino UNO or compatible (on Amazon.com or Amazon.de)
    • WS2812b (on Amazon.com or Amazon.de) LED strip in the needed length
    • 5V DC power supply with enough power (on Amazon.com or Amazon.de) (you need at least 1A for every 50 LEDs)
    • (optionally) dc jack connector (on Amazon.com or Amazon.de)
    • Affiliate links: if you use these links to buy the hardware, you are directly supporting the development of adrilight!
  • Build
    • Attach LED strip on the back of the television. The arrows must build a circle!
      • The strip can be devided in 4 pieces: Left/Right/Top/Bottom
      • Left and right as well as top and bottom must have the same number of LEDs each.
    • solder the edges together, but DO NOT make a complete circle. The data line should still have an electrical start and end point
    • depending on the length of the strip, solder more power wires in between
    • connect power with the strip
    • connect the arduino with the data in and ground from the strip
  • Software setup
    • Download latest adrilight release
      • releases page
      • alternatively: clone the adrilight repo and build it yourself
    • Arduino
      • download arduino IDE
      • add FastLED module
      • configure the settings at the top of the script adrilight.ino (included in adrilight release)
      • compile and upload the program to the arduino
    • Adrilight setup on the HTPC
      • setup and start adrilight
      • Number of LEDs in arduino code no longer differs from the number of spots in the app! So simply enter the lengths of the horizontal and vertical strips
      • change offset value until screen and the real LEDs align
      • change com port and start sending. it should work now
      • if it works, play around with the lighting mode, white balance and spot sizes as you wish
  • enjoy ambient lighting!

Possible future features

The following list of things is more a list to not forget things. If something is on here, it does not necessarily mean, it will ever be developed.

  • handling of letterboxed video (should not be confused by video containing partial black content for a bunch of seconds)
  • GUI translations

You have another idea for a feature? Please create an issue.

Known limitations

  • Currently it is not supported to change the screen resolution after the start of adrilight (will be fixed)
  • Some apps can block their content and adrilight "sees" only a black window
    • The windows store netflix app (player components are visible to adrilight but the actual video is not, netflix in the browser works)
    • UAC asking for administrative approval (nothing is visible to adrilight)
    • ...there is probably more
  • some arduino compatible devices have problems reaching the high baudrate of 1.000.000 Baud. This is a sad thing and cannot be changed because the high baud rate is absolutely needed to provide a fluent feeling. Using lower values is not supported. If this is your problem, the best thing is to get a better arduino clone.

Supporting the project

  • A translated UI is in planning. If you can provide translations for languages other than English and German and a willing to help, please let us know.
  • To support the project with 💰 , you can buy the hardware (or whatever you like) through the affiliate links for amazon.com or amazon.de

Thanks

Changelog

See the releases page for some hints on the changes.