DIY

The backlight of a computer monitor that supports Apple's smart home

Computer monitor background illumination with support for & laquo ; smart home & raquo; from Apple

 Computer monitor background lighting with Apple smart home support In this article, the wizard will tell us how he implemented the Ambilight technology for his computer monitor.

 Ambilight (short for Ambient Lighting Technology) is a backlight technology for TVs that was invented and patented by Philips Electronics. It is a backlight built into LCD TVs, which, by analyzing the color image of the frame on the TV screen, reproduces the diffused light around the perimeter of the TV. Thanks to this, the wall surface behind the TV cabinet is dynamically illuminated, thereby complementing the intensity of the image on the screen itself with a halo and visually increasing the size of the image.  

Of course, nothing needs to be built into the monitor, the corresponding equipment, specifically, the LED strip is glued to the back of the monitor.
The master made adaptive backlighting taking into account the support of Apple HomeKit, since his smart home works on this software.
Tools and materials: -LED strip WS2812b; -Power supply 5V 3A; -Wemos D1 mini; -Jumpers; -Connector DC 2.1mm x 5.5mm (female and plug); – 270 Ohm resistor; -Heat shrink tube ; -Pin header; -4-pin JST; -Soldering iron and consumables; -3D printer;
Software:
-Homebridge to support Apple HomeKi; -WLED to control LED strip; Hyperion.ng Step one : preparing the Wemos D1 Mini
The Wemos D1 mini microcontroller can be powered from DC 5V – the same voltage as the WS2812b LED strip. It can be replaced with a NodeMCU as this microcontroller is also powered by 5V. Another (cheaper) alternative is the popular ESP-01 module. But the ESP-01 module requires additional hardware as this module only supports 3.3V I/O voltages.
First, you need to prepare the board. Contacts are not soldered to the Wemos D1 mini. The wizard solders the connectors to the 4 pins of the Wemos D1 mini (5V, Ground, D4 and D3).
Background illumination of a computer monitor with support for Background illumination computer monitor with support for Computer monitor background illumination with & laquo ; smart home Step two: software
Next you need to program Wemos D1 mini with open source lighting control software WLED.
Connect the Wemos D1 mini to your computer using a micro-USB cable. Open the Tasmotizer software.
Set the correct port. Since this project uses a Wemos device, make sure the “self-resetting device” option is enabled.
Download the latest WLED binary (the wizard uses the WLED_x.xx.x_1M.bin file) – Link to the WLED files.
Select WLED firmware file. In Tasmotizer, click Tasmotize!
As soon as you receive a message about successful firmware you need to reboot the device.
Computer monitor background illumination with & laquo ; smart home & raquo; from Apple Computer monitor background lighting with Apple smart home support Background illumination computer monitor with support for Apple's Smart Home Step Three: Configuring WiFi
Now you need to set up your Wi-Fi network.
Search for WLED-AP on any Wi-Fi enabled device. Connect to a Wi-Fi network. The password is “wled1234”.
Then the user will be redirected to the WLED web interface. If this does not happen automatically, then you need to Next click “WIFI SETTINGS”.
Write down the mDNS address and enter your WiFi credentials in the “Network name” and “Network password” field.
Save the settings and wait for the device to reboot. < br> Connect to your main Wi-Fi network
The Wemos D1 mini is now ready to be configured to control addressable LEDs.
Note. ESP8266 devices only support 2.4GHz Wi-Fi networks.
Computer monitor background illumination with support for & laquo ; smart home & raquo; from Apple Background illumination of a computer monitor with support for Background illumination computer monitor with support for Apple's smart home Step four: testing Wemos D1 Mini
After installing the software, you need to test the device.
Make sure your Wemos D1 mini is connected to a DC power source.
Go to your Wemos D1 mini on WLED. This is the “mDNS” address that was written down earlier.
Requires WS2812b LEDs for testing (the wizard uses an 8×8 LED matrix).
Go to the “Configuration” panel of the WLED interface.
Click “LED Settings”.
Enter the number of LEDs (in this case 8×8 = 64). Click “Save”. Turn off the device.
Then you need to connect the panel according to the diagram below.
Note:
-WLED will communicate with the LED panel through pin D4
-270 Ohm current limiting resistor is installed between D4 and LED strip
-Wemos D1 mini and LED strip are powered from the same 5V power supply
To simplify testing , download the WLED mobile application.
AndroidiOS
A few seconds after turning on the LEDs on the panel should light up.
Then go to the WLED mobile application and open it.
Click “Discover lights …” and wait a few seconds.
Click the checkmark in the upper right corner of the screen.
The panel should appear in the list as WLED. We click on it. Go to the address “mDNS”, which was recorded earlier.
Now, using the application, you can test the device, change colors, brightness.
Computer monitor background illumination with Apple smart home support Background illumination computer monitor with support for Apple's Smart Home Computer monitor background illumination with Apple smart home support Background illumination computer monitor with support for Computer monitor background illumination with support for & laquo ; smart home & raquo; from Apple

Step five: 3D gtxfnm housingf
The electronics require a housing. His master has 3D-printed. Resolution is not less than 0.2 mm. Files for printing can be downloaded below.
Body.stl Lid.stlStand.stl
Background illumination of a computer monitor with support for Computer monitor background illumination with & laquo ; smart home & raquo; from Apple Background illumination of a computer monitor with support for Background illumination computer monitor with support for Apple's smart home Background illumination of a computer monitor with support for Step Six: Assembly
The next step is to install the electronics into the case.
Solder the wires to the connectors as shown in the diagram. Use heat shrink tubing for insulation.
Background illumination of a computer monitor with support for Background illumination computer monitor with support for Computer monitor background illumination with support for & laquo ; smart home & raquo; from Apple Computer monitor background illumination with Apple smart home support Background illumination computer monitor with support for Connects everything according to the scheme.
Background illumination of a computer monitor with support for Background illumination computer monitor with support for Computer monitor background illumination with & laquo ; smart home & raquo; from Apple Installs everything in the case and assembles it.
< a href = "https://usamodelkina.ru/uploads/posts/2021-05/1619839070_1-30.jpg" rel = "prettyPhoto">Computer monitor background illumination with Apple smart home support Background illumination computer monitor with support for Apple's Smart Home Background illumination of a computer monitor with support for Background illumination computer monitor with support for Step seven: LED strip
Now you need to mount the LED strip.
For this monitor, the LED layout will be as follows:
Bottom left – 18 LEDs
Left – 18 LEDs
Top – 39 LEDs
Right – 18 LEDs
Bottom right – 18 LEDs < br> You need to figure out how the LEDs will be positioned, taking into account the following details:
– no need to make a gap where your monitor has a stand
– pay attention to the starting position of the LED strip.
– Pay attention to the direction data in the LED strip. The direction is indicated by the arrows.
Next, you need to cut the LED strip according to the diagram.
Take some colored wires and cut them into 4 cm lengths.
Solder the connector to the contact pads of the very first strip.
Background illumination of a computer monitor with support for Background illumination computer monitor with support for Apple's smart home Background illumination of a computer monitor with support for Background illumination computer monitor with support for Computer monitor background illumination with & laquo ; smart home & raquo; from Apple Mount the rest of the connections.
Background illumination of a computer monitor with support for Background illumination computer monitor with Apple smart home support Background illumination of a computer monitor with support for Background illumination computer monitor with support for Apple's Smart Home Background illumination of a computer monitor with support for Step Eight: Testing and Installing the LED Strip
Connect the LED strip and make sure the order is the same on both the LED strip and the board:
+ 5V – + 5V
Data – Data
Gnd – Gnd
Go to the WLED mobile app or web interface. Click on your new WLED device. Click on “Configuration”. Click on LED Settings.
Update the LED count to match the total number of LEDs (in this case 18 + 18 + 39 + 18 + 18 = 111)
Click Save. Glue the LED strip to the back of the monitor.
Background illumination of a computer monitor with support for Background illumination computer monitor with support for Apple's smart home Background illumination of a computer monitor with support for Background illumination computer monitor with support for Computer monitor background illumination with & laquo ; smart home & raquo; from Apple Computer monitor background illumination with Apple smart home support The hardware of this project is complete. All that's left is software setup and testing.
Now you can go to the mobile app and test your device.
Step Nine: Configuring Hyperion.ng
The idea is that the user installs Hyperion.ng on the computer. The program uses the screen recording to analyze what is displayed on the monitor, processes it and converts it into a stream that can be integrated with the WLED to create near real-time background lighting.
Download and install the latest version of Hyperion.
Open the program and double-click on the taskbar.
Next, enter your new username and password.
In the Hyperion web interface, go to LED Hardware.
Select “wled” from the “Controller Type” drop-down menu.
Enter the IP address of your WLED controller.
Click “Save Settings”.
Then click the “LED Layout” tab. Enter your number of LEDs
Note that the wizard used the same number of LEDs for the bottom row and chose a gap length of 3 (calculated as 39-18-18 = 3) and set the gap position on LED 75 (18 + 39 + 18 = 75). The input position is also 75.
Click “Save Layout”.
Go to “Control Panel” and make sure the LED equipment is working in the “Smart Access” section.
Background illumination of a computer monitor with support for Apple's smart home Background illumination of a computer monitor with support for Background illumination computer monitor with support for Computer monitor background illumination with & laquo ; smart home & raquo; from Apple Background illumination of a computer monitor with support for Background illumination computer monitor with support for
Step Ten: Setting Up Apple HomeKit
The wizard wanted the device to be controllable with Apple HomeKit (assuming the user already has a running Homebridge instance on the network).
Go to the Homebridge server on your network by entering the IP address of your Homebridge server.
Go to the Plugins tab.
Find and install the following plugin “Homebridge Wled Simple”
Get the IP address of your Ambilight on the network.
In the Homebridge web interface, in the plugins section, click on “Settings” for the “Homebridge Wled Simple” plugin.
Edit by default or click on “ADD ACCESSORY” at the bottom of the screen.
Add the JSON code snippet below – update the name and your IP Address.
Click Save.
Restart Homebridge.
Your Ambilight will appear in your HomeKit project on all your Apple devices.

  & # 123; & # 34; accessory & # 34; & # 58; & # 34; WLEDSimple & # 34 ;, & # 34; name & # 34; & # 58; & # 34; Name to display here & # 34 ;, & # 34; apiroute & # 34; & # 58; & # 34; http & # 58; //your ip address here & # 34; } 

It is recommended to create a static IP address for all WLED devices on the network. This way you will always know the address of each light source and make sure that Homebridge can always communicate with your device. If you do not assign static IP addresses to WLED devices and plan to use them using the Homebridge Wled Simple plugin, their IP addresses may change when the device is rebooted and you will need to reconfigure the plugin.
Computer monitor background illumination with support for & laquo ; smart home & raquo; from Apple Computer monitor background illumination with Apple smart home support

< br> There are two methods you can use to set a static IP address for the WLED Ambilight.
The first method is to use the web interface or the WLED app.
Go to the web interface of your WLED device (or use the app).
Go to “Config”
Go to WiFi Setup and scroll down to the Static IP Address (Leave 0.0.0.0 for DHCP) section:
Enter the IP address you want to assign to the device – make sure the IP address does not conflict with something else on your network.
Enter your router's static gateway information – it will be something like “192.168.1.1” or “10.0.0.2”.
The second method is to go to your router interface, define MAC address of your WLED device using its current IP address and then set a static IP address for your device in the router.
 Computer monitor background lighting with Apple smart home support Everything is ready. You can create several scenarios for the backlighting. Detailed instructions (for Apple devices) can be found on the wizard page.

Source:

usamodelkina.ru

Show More

Related Articles

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top button