WLED FAQ

( Unofficial documentation/FAQ)
  • Which microcontroller types are supported by WLED software?
  • How many LEDs can a WLED controller control?
  • Is a LevelShifter really needed in WLED controller?
  • Which LevelShifters are recommended?

    The control of the addressable LED strips runs with control signals, which have a basic frequency in the range of 800 kHz up to the single-digit MHz range (depending on the type). Accordingly, a level shifter must be fast enough to be able to pass on these signals cleanly. Fast types such as SN74AHCT125, SN74AHCT32 or SN74LVC2T45 are therefore recommended. Types like SN74HCT (i.e. without “A”) are a bit slow and OK for LED types like WS2812B, but can be too slow for some other LED types. In any case, ready-made bidirectional I2C level shifters built with transistors are not recommended. If necessary, these can be used, but you should then replace the pull-up resistor at the output (usually 10 kOhm) with a smaller one (<=1 kOhm).
    SN74AHCT125 LevelShifters are interconnected as follows:


    TXS0108 LevelShifter can also be used for short data lines. Small PCBs with this level shifter are often sold and can be used as follows:

    In the following, various LevelShifters with and without a resistor in the data line are compared in terms of measurements.
    In summary, the results can be interpreted as follows:
    1) SN74AHCT is the best choice. Together with a 60 Ohm resistor, it delivers good results for up to 2 meters of data cable length. Even at 10 meters the signal is still usable. The disadvantage is that it generates high overshoots due to its speed (high slope). You can counteract this with an EMC filter, like an ABC! WLED V43 Controller does. This is very efficient with short lines, but with longer lines the oscillations cannot be completely avoided.
    2) The measurement confirms that an I2C level shifter is too slow, more precisely the second part of the rising edge, because each rising edge consists of two parts: a fast rise up to 3.3 V and a subsequent slow rise up to 5 V, most of which is not at all fully completed. A resistance in the data line can have a counterproductive effect here. The second part of the rising edge can be accelerated slightly with an additional 1kOhm resistor between the I2C LevelShifter output and 5V.
    3) TXS0108 LevelShifter is ok for short cables, but does lead to usable results for longer cables.
    The pictures show the comparisons. The measurements were taken with an oscilloscope directly at the controller output (3.3V level, i.e. before the LevelShifter, channel 1 or yellow line) and at the end of the data line (i.e. after the LevelShifter, and after the data line, directly at the LED strip: channel 2 or blue line).



    With a 10 meter line there is also a delay between both channels: with 3*10^8 m/s speed of light and 10 meters this is approx. 33 ns. With a division on the X-axis of 500 ns, this can be clearly seen, but has no meaning.

  • Does a resistor have to be installed in the data line between the WLED controller and the LED strip? Which one?
  • Is a ready-made WLED controller recommended, or can one be assembled from individual components?
  • Can I connect a button to a WLED controller? How?
  • How many buttons can be connected to a WLED controller?
  • Is it possible to connect a motion detector (PIR sensor) to a WLED controller?
  • Can a WLED controller be controlled with a remote control?
  • Can the WLED Controller be connected via Ethernet (LAN) instead of wireless?

  • Useful web pages:


    Legal notice

    Information:
    Responsible: Wladislaw Waag
    Address: Wasserburger Landstr. 29, 81825 Munich, Germany
    Contact: +49 176 47 11 5206, info@myhome-control.de

    Consumer dispute settlement / universal arbitration board: We are neither willing nor obliged to participate in dispute settlement proceedings before a consumer arbitration board.


    Data privacy

    The operator of this website (https://wled-faq.github.io) does not collect and process any personal data of the users of this website. However, this page is hosted and operated as part of 'Github Pages'. It is possible and probable that Github collects and processes personal data, which then also affects visitors of the wled-installer.github.io web page. But I have no influence on it. Please read the Github privacy statement: https://docs.github.com/en/github/site-policy/github-privacy-statement

    Our website contains links to external websites over which we have no control. We cannot accept any liability for this third-party content. The respective provider or operator of the pages is always responsible for the content of the linked pages. The linked pages were checked for possible legal violations at the time of linking. Illegal content was not recognizable at that time. If we become aware of any legal violations, we will remove the relevant link immediately.