Wiring setup
Wiring of the ESP32 is highly customizable. This can be changed and tweaked very easily by modifying the respective main configuration file for your chosen config.
The following table are the default values that the code comes pre configured with:
Connection |
Pin |
Config parameter |
Comment |
---|---|---|---|
LED strip data |
21 |
|
(MANDATORY) This is the pin to which the LED strip is connected to. |
Internal LED strip data |
22 |
|
(OPTIONAL) This is the pin to which the LED strip of the internal dowlighter LED’s is connected to in case they are separated. This only takes effect if |
Light sensor |
34 |
|
(OPTIONAL) This is the pin to which the light sensor is connected in case it is enabled by setting |
Default wiring
This is the minimal wiring diagram according to the default configuration:
The WS2812B LED Strips should be wired together by connecting the pads like shown on the diagram above. The Connections of the LED strips in the default config is done like this:
Power Supply specs
The +5V and GND connections of the LED strip should be connected straight to a suitable 5V power supply.<br> The ESP32 can also be connected straight to the power supply, just make sure to connect the +5V to the VIN pin and NOT the 3V pin!!<br> The required wattage/Max current rating needed can be easily calculated:<br> According to the manufacturer of the WS2813B LED’s each LED consumes a maximum of 0.24W per piece. (figure taken form here. ).
This means for the default configuration (32 Segments with 12 LED’s each and an additional 12 downlighter LED’s The power supply should at least be able to handle (32 * 12 + 12)*0.24 = 95W which is around 20A at 5V to have a little bit of headroom.