Hello everyone! I would like to open a new topic related to the construction of a WLED controller that will be used to illuminate costumes using LED strips. Unfortunately, I couldn’t find any similar project online, so I decided to make my own.
Introduction
The purpose of this thread is to develop an LED-backlit costume driver. The controller will use WLED software and a microcontroller from the ESP32 family. The system will be powered by batteries. The designed device must be compact and contain all functionalities in 1 housing. Easily detachable connectors on the housing should allow you to transfer the controller to a suit with a different arrangement of LEDs.
Sample costume (LED number 424)
Requirements
- Dimensions about 100x50x30mm
- Operating time minimum 20-30 min (the performance is much shorter 10 minutes maximum)
- Charging time does not matter (you can charge devices on the road between shows)
- Easily detachable connectors for easy transfer to another costium.
- Charging with USB C
- Uploading software via USB, to consider, rather unnecessary, you can use a dedicated programmer.
- Low quiescent current (the device can be stored for a long time)
- 3D printed housing with hook and loop brackets or other.
- Housing in the style of extruded aluminum housings. (no need to place holes in the PCB)
- Design made in Easy EDA and FreeCac
- Number of LEDs supported: at least 500 ws2812b
Additional Requirements
- Connector with signals for operating accessories (infrared sensor, presence sensor, etc.)
- two connectors with rgbw pwm channels to support power LEDs
LED stipes
I would like to use programmable pointless LED strips as the picture
Prametres:
number of diodes per meter = 72
Current Consumption Per Meter = 8.64W
Voltage = 5V
Current consumption for the assumed number of LEDs
424/72 = Aprox 6m
Power = 6x8.64 = 51.6W
Current = 51.6W/5V = 10.32A
I think that the maximum current refers to the situation when all LEDs are lit and the costume will be illuminated in white, in other situations the current can be up to 3 times lower
However, in order to dissipate the current flowing through individual straps, it would be necessary to use more than one connector, which should also make it easier to guide the straps on the costume.
I think that two connectors on each side of the case will be a suitable compromise
Cell selection
Most of the cells in the 18650 housing that I have found on the market offer a small discharge current, for continuous operation.
In the package with the assumed dimensions, I will have room for two cells in the 18650 package. A single cell should therefore allow you to draw at least 5A of current from it.
For now, my attention was drawn to the NCR18650GA cells, on the other hand I am going to use a battery basket in this size, so probably the final choice will take place after testing.
Block diagram.
USB C
I plan to use a 6-pin USB C connector, which is why it is not possible to upload software to the ESP through this connector. On the other hand, 6 pin USB is easier to install. And the ESP program needs to be uploaded once. Since I will only use the power supply pins and CC1 and CC2 to which the resistors will be connected, the ESD protection will be a single transil diode. If space allows, I may add a small polymer fuse.
Battery Charger
I want to use the IP5306 system to charge lithium batteries, but it is not the best system of this type, especially when it comes to documentation. However, it has the advantage that I have used it in other projects and I know what to expect. Moreover, it is one of the few systems that displays the charge status on diodes without the need to connect an external processor. Additionally, the flashlight pin can be conveniently used as an enable output and turn on the entire device with one button, which allows you to reduce the quiescent current, additionally, the built-in converter can be used to power the ESP32, thus avoiding ripples and spikes that could appear when powering long LED strips
LDO
I don’t know yet what LDO I will use here, preferably one with an enable input to reduce the quiescent current
ESP32
Well, EPS, I have a problem here because there are so many versions that it is difficult to choose something. I have already managed to buy a version without Flash memory on which WLED works until the first power restart XD
The version I know of that works is this
ESP32-WROOM-32E
Efuse
Quite a useful piece of equipment that will protect us against unwanted ignition Unfortunately, I couldn’t find anything in an acceptable housing. For now, I will stay with TPS25942ARVCT, I have good experience with it, and it is included in the element database and quite inexpensive.
Step Up Converter
I’m thinking about using TPS61088 mainly because I recently designed and built a small module using it, so I will be able to test the operation of the whole thing on the desk. If it doesn’t work… I’ll look for something else
Level Shifter
here I could use two SN74LVC2T45 chips on the other hand I don’t need a bidirectional chip. Maybe I’ll look for something else
Connectors
Here I would like to use either 5024430360 from molex or SM03B-PASS from JST, additionally for programming and as an auxiliary output I would use something with a smaller pitch, e.g. 1 mm or 1.5, but preferably from the same manufacturer.
That’s all for today, stay warm, I’m waiting for your ideas and comments!