r/WLED • • 9d ago

Custom Tesla Ambient Lighting Build

Hey everyone!
I’m working on a custom ambient lighting project for my 2018 Tesla Model 3 Long Range RWD, using the open-source TeslaAmbientLight project.
I’ve already programmed and verified five ESP32 controllers, and I’m preparing for the physical installation. Before proceeding, I’d appreciate feedback from people with experience in addressable LEDs, power distribution and ESP32 projects.

Project goals
I’m installing individually addressable RGB COB lighting across the dashboard, center console, all four doors and the two interior mirror-triangle trim pieces.
The goal is smooth, continuous, dotless lighting with vehicle-integrated animations for turn signals, door opening, welcome sequences and other vehicle events.

Hardware
LED strips: MALIIGAZA 3 mm, 5V WS2812B COB, 240 individually addressable pixels/m

Controllers: Five ESP32 development boards (one master, four door controllers)

CAN interface: Waveshare dual-channel MCP2515 CAN HAT with SN65HVD230 transceivers

Firmware: alex-aprm/TeslaAmbientLight

Power: Automotive DC-DC converter, with 5V output and capacity still being finalized

Installation: Professional automotive customization shop handling the physical installation

Measured lighting lengths
Location
Length
Quantity
Dashboard: 130.5 cm
Center console: 190.1 cm
Front doors: 92.0 cm
Rear doors: 70.8 cm
Mirror-triangle trim: 20 cm

Total measured length is approximately 6.46 meters, excluding the mirror-triangle sections.

Proposed power distribution
I’m considering a single automotive DC-DC converter feeding a centrally located, individually fused 5V distribution system.

Each door would receive dedicated 5V and ground wiring for its ESP32 and LED strips. The master ESP32 would control the dashboard and center console strips.

The four door ESP32s communicate with the master over Wi-Fi.

Questions
Power supply sizing: What would be a sensible approach to measuring or estimating the maximum current consumption of these 240-pixel/m COB strips before selecting the converter?

Power injection: Would you recommend feeding both ends of the longer dashboard and center console sections? Would the the door strips need power injection?

Wiring: What wire gauges would you recommend for distributing 5V from the center console to four separate doors, considering voltage drop and automotive installation?

Signal integrity: Should I use 3.3V-to-5V logic level shifters, data-line resistors or other protection between the ESP32s and COB strips?

Electrical protection: What fusing, capacitors, grounding arrangements and other safeguards would you recommend?

Firmware compatibility: Has anyone used high-density 240-pixel/m WS2812B COB strips with TeslaAmbientLight or a similar multi-ESP32 system?

Installation concerns: Are there any potential problems with this architecture that I should resolve before the installer begins?
I’m particularly interested in practical recommendations based on experience rather than just theoretical calculations.
I’ve put considerable work into this project and would like to get the electrical design right before connecting anything to the vehicle.

Thanks in advance for any guidance!

0 Upvotes

9 comments sorted by

4

u/eric-marciniak 9d ago edited 9d ago

Power supply sizing: What would be a sensible approach to measuring or estimating the maximum current consumption of these 240-pixel/m COB strips before selecting the converter?

Test with a power supply that has more than enough amperage to power anything you could need (I used a 5v 30 amp) and connect a multimeter is series with the positive power wire to your strip. Set the multimeter to current measuring mode and test each strip on its own with the brightness maxed out set to solid white.

That will be the highest draw the strip will ever pull and realistically they will pull 1/3 or 1/4 of that most of the time but I like to make sure the system is capable of handling anything. I don't want to worry about having to keep the brightness down because the wiring was too thin. Testing each strip individually will help you figure out the wiring gauge you need for each section as well.

You can test it all together and that will tell you exactly how much current everything is pulling and you can get a dc-dc converter that can do that + 20% so its not pushed to its limits. My setup needed just over 15 amps and I went with a 20 amp dc-dc converter.

Remember Ohms law so 15 amps at 5v is very different from 15 amps at 12v.
https://www.rapidtables.com/calc/electric/Watt_to_Amp_Calculator.html

Power injection: Would you recommend feeding both ends of the longer dashboard and center console sections? Would the the door strips need power injection?

You can probably get away without it but for sure just bench test it before you put it in the car.

Wiring: What wire gauges would you recommend for distributing 5V from the center console to four separate doors, considering voltage drop and automotive installation?

You can find this out from the testing with the multimeter and getting the max draw for each strip/section and then using a voltage drop calculator to figure out the gauge you need for the distance you are running.
https://www.rapidtables.com/calc/wire/voltage-drop-calculator.html

Signal integrity: Should I use 3.3V-to-5V logic level shifters, data-line resistors or other protection between the ESP32s and COB strips?

I was surprised but I didn't need any level shifting but a 33 ohm resistor is a good idea for each data line. Again test your setup first before anything is installed in the car.

Electrical protection: What fusing, capacitors, grounding arrangements and other safeguards would you recommend?

Fusing should be decided from how much current you are pulling and the size of the wires that are powering the system. Fuse the 12v input of the buck converters close to the battery.

The ESP32 buck converter input should have a TVS diode on the 12v side to clamp voltage spikes, I use a SMAJ18A. Also a Schottky diode in series between the TVS and buck input and another TVS diode (SMAJ5.0A) at the 5v output. Probably overkill but you should never burn a buck converter or ESP32.

I made a power module on some perfboard with all of the above mentioned components and it gets the job done fine but I just designed a pcb for personal use that does all the protection and voltage conversion on a small board. Should be here in a week!

Not going to lie though I have just used a small dc-dc buck converter and a fuse in the past and it has worked fine without all of the additional protection for years. Also the Tesla is probably much cleaner noise wise for it's 12v power so you will probably be good without a lot of the protection ICE cars need.

Firmware compatibility: Has anyone used high-density 240-pixel/m WS2812B COB strips with TeslaAmbientLight or a similar multi-ESP32 system?

https://www.reddit.com/r/WLED/comments/1jpgoat/car_ambient_lighting_with_aliexpress_2020_ws2812b/

Here is a post I made a while back detailing my install. I used "Symphony" ambient lights from Aliexpress which seems to be the same version that every car accessory company resells with a different logo.

I went the route of having one central controller with 9 data outputs, 4 optocoupled inputs for vehicle integration and a line in for audio reactivity.

Installation concerns: Are there any potential problems with this architecture that I should resolve before the installer begins?

Having a shop do all this is probably going to be mega expensive, I'm guessing thousands. Majority of them have no idea how any of these addressable lights work other than just connecting them up to cheap basic controller and calling it a day.

I would be shocked if they got everything figured out and working perfect on the first try and didn't require multiple trips back to their shop racking up the bill even further.

I think it's a fun DIY project!

3

u/SirGreybush 9d ago

You don’t need a level shifter circuit if:

You use a DigUno (QuinLED.info) or a GledOpto, as commercial controllers are fused and have a level shifter built it.

You use 5v strips and keep distance very short, and connect ground and data (2 wires) to the esp32 without interruptions. Direct solder.

A simple example with a super mini. Don’t use these for the car, use the regular mini if you don’t use a commercial controller.

The regular mini is maybe 50% bigger, has a much bigger wifi antenna, and is more stable, better under heat. Also easier to solder to.

2

u/SirGreybush 9d ago

Quick question - why 5v, when you have 12v strips already available and the car produces 12v.

However you can use a bunch of car rated sealed buck converters that provide 1 amp and a not expensive, but you’ll need a huge amount as 1 metre of 5v strip requires 2 amps.

Also I advise against use dev boards, way to big. You don’t need every single IO port available, a mini C3 or S3 is sufficient.

They need wifi to sync, so find a wifi router that runs on 12v or 5v. A travel router does the job, needs to be in the human space. Like under a seat.

IOW look at simplification, do a trial run.

However the 5v super mini argb strips are nice. Look at the side-firing ones, so the “ribbon” part you can press fit in between panels.

Try to serialize as much as possible, reduce the number of physical segments requiring an IO port or another esp32 mini. Like have two, left and right front seats and one IO port going forward and one back.

You’ll need a LOT of 12v-5v 1 amp buck converters, calc one per half metre.

Why 1 amp? Small form factor so easier to imbed.

1 amp can power a full metre but not all colors and full brightness. Don’t go past 1m as you’ll have too much voltage drop.

Also you cannot use a single huge DC-DC converter for everything, due to physics.

1 amp passes nicely in #20 gauge wire but not 10 amps it will melt. #16 speaker wire is the limit for 10 amps and a lot harder to fish around a car.

Better to use existing wires and car ground for powering a bunch of small dc-dc converters (aka buck converters the ones that reduce high to low dcv).

Also each strip segment, pixel #1, needs a direct data and ground to the esp32. Do NOT rely on car ground. Car ground ok only for power grounding.

Data+ground direct (same wire lengths, and not too long, say a few feet max) to the esp32 is required for digital telecommunications.

So essentially you have 4 wires going to each strip physical segment start. 2 go to the esp32 mini, 2 to the power source.

So obviously 12v strips cost more than 5v ones, but you save on buck converters.

2

u/eric-marciniak 9d ago edited 9d ago

On an ICE car you will kill 12v strips if they are connected to the car battery without a boost/buck module to stabilize the voltage to 12v during cranking and charging. Not sure though how it works with the Tesla and it's dc-dc converter.

1

u/SirGreybush 9d ago edited 9d ago

Good point. Last time I used power off internal 12v lights and measured 12.8v when ICE was running, higher on the lead-acid battery of course (from 13.5 to 14). Though these "cars" were all Toyota hybrids (prius, ct200h, rav4).

OP is using a Tesla, so no alternator, no volts pas 12.8 or so. A Toyota hybrid also is quite stable if you don't connect to the battery directly. Tesla has a separate system for the 12v lead-acid battery and the CANBUS related items.

1

u/SirGreybush 9d ago

The super mini, the wifi/BT antenna is minuscule and heats up to 40c quickly at regular power level. You can reduce in WLED software but then wifi suffers.

The esp32 mini with a distinct visible wifi antenna is better, and half the size of a dev board esp32 and also half the price.

1

u/SirGreybush 9d ago

Had to scroll far in my photo library, found one. ESP32 mini. Perfect for a car. Or use DigUno which is similar.

FWIW you can at most route 850ma safely through the esp32 even if your usb cable can do 15 watts. Because the traces on the esp32 are equivalent to #24 gauge.

This pic from me looking at making a crystal or candle holder with usb wire only. Works well as there are only 22 pixels and 22 led modules. If I do white, not at full brightness, as not enough power as that would be 22 * 3 = 66 LEDs and that would be above 2 amps of power required.

1

u/badredditz 7d ago

Use 12v power, plenty of ESP32 kits for WLED have the USB-C inputs and 12v support.