mirror of https://github.com/arendst/Tasmota.git
Created Wemos D1 Mini and WS2812B / WS2813B Ledstrip (markdown)
parent
2076b02781
commit
26f5a354f5
|
@ -0,0 +1,31 @@
|
||||||
|
## WS2813B versus WS2812B
|
||||||
|
The newer version of ws2812b is the ws2813b, which has dual signal lines to prevent a led failure also consecutive leds fail.
|
||||||
|
<img src="https://github.com/arendst/arendst.github.io/blob/master/media/wemos/ws2813-vs-ws2812.png" width="500">
|
||||||
|
|
||||||
|
## Wemos D1 Mini - WS2813B schematic
|
||||||
|
Below the schematics to connect a Wemos to a WS2813B via a PNP emitter-follower.
|
||||||
|
|
||||||
|
"_In order to prevent damage to the ESP GPIO pin. It’s very easy to isolate your ESP8266 from the WS2813 5v supply voltage and provide a low impedance drive for the WS2813 bus at the same time, using a cheap, PNP transistor in emitter-follower configuration. An emitter-follower is a non-inverting buffer, which provides a medium to high impedance on it’s input (so it doesn’t place any significant load on the GPIO pin) and presents a low impedance output (meaning it can drive more current than the ESP GPIO pin can alone). PNP Emitter Follower Unlike the more traditional common-emitter transistor circuit, the emitter follower doesn’t amplify the input signal at all; in this circuit it is acting as a switch, but while the output from the GPIO is switching between 0v and 3v3, the output of the emitter-follower is switching between 0v and 5v. Thus this simple circuit not only protects your ESP from damage, but also provides the correct voltage swing for the WS2812 data bus, too. Almost any common, small-signal PNP transistor (2N3906, BC560) will work in this configuration; specific type is not too critical._" ~ [source](https://esp8266hints.wordpress.com/2018/04/14/driving-ws2812-led-strips-with-the-esp8266/)
|
||||||
|
|
||||||
|
<img src="https://github.com/arendst/arendst.github.io/blob/master/media/wemos/wemos_ws2813b_schematic.png">
|
||||||
|
|
||||||
|
### Bill of materials
|
||||||
|
* Wemos D1 Mini
|
||||||
|
* [WS2813B](https://www.aliexpress.com/item/1m-4m-5m-WS2813-Dual-signal-wires-30-60-pixels-leds-m-Smart-led-pixel-strip/32699391341.html?spm=a2g0s.9042311.0.0.27424c4dtOW0cE) or [WS2812B](https://www.aliexpress.com/item/1m-4m-5m-WS2812B-Smart-led-pixel-strip-Black-White-PCB-30-60-144-leds-m/2036819167.html?spm=a2g0s.9042311.0.0.27424c4duphsd6) ledstrip
|
||||||
|
* PNP transistor (ie [BC560C](https://www.aliexpress.com/item/50PCS-BC550C-BC560C-each-25pcs-BC550-BC560-TO92-Transistor-DIP-3-45V-0-1A-TO-92/32881137698.html?spm=a2g0s.9042311.0.0.27424c4d5mlEow))
|
||||||
|
* 1k8 and 3k3 resistors
|
||||||
|
* 5V power supply : the power of the power supply depends on the number of leds. A pixel has 3 leds (RGB), each led drains a max of 20mA, so a pixel drains a max of 60mA (3 * 20mA). So the total current that the power supply must deliver is 60mA times the number of pixels.
|
||||||
|
For example 80 pixels: 60mA * 80 = 4800mA = 4.8A. Also the Wemos is powered by the power supply so in this example a [power supply of 6A (30W)](https://www.aliexpress.com/item/5V-LED-Power-Supply-1A-2A-3A-6A-8A-10A-Switching-Adapter-for-WS2812B-WS2811-SK6812/32852259123.html?spm=a2g0s.9042311.0.0.27424c4dgTLgCQ) will do.
|
||||||
|
* [Electrolytic Capacitor 1000uf 16v](https://www.aliexpress.com/item/A1-free-shipping-50pcs-Aluminum-electrolytic-capacitor-1000uf-16v-8-16-Electrolytic-capacitor/32418323423.html?spm=2114.search0104.3.1.7ac44ff0z6KCGE&ws_ab_test=searchweb0_0,searchweb201602_1_10065_5729911_10068_319_317_10696_5728811_453_10084_454_10083_10618_10304_10307_10820_10301_10821_537_536_5730811_10843_5733211_328_5733311_10059_10884_5733411_10887_5730011_100031_5731011_321_322_10103_5729011_5733611_5733111_5733511-5729911,searchweb201603_55,ppcSwitch_0&algo_expid=30318461-2622-44fb-a704-914d5081f388-0&algo_pvid=30318461-2622-44fb-a704-914d5081f388)
|
||||||
|
|
||||||
|
## Tasmota Configuration
|
||||||
|
|
||||||
|
In the Configuration -> Configure Module page, select the following:
|
||||||
|
|
||||||
|
* D4 GPIO2 : 07 WS2812
|
||||||
|
|
||||||
|
<img src="https://github.com/arendst/arendst.github.io/blob/master/media/wemos/wemos_ws2813b_config.png" width="320">
|
||||||
|
|
||||||
|
## Tasmota Main
|
||||||
|
|
||||||
|
<img src="https://github.com/arendst/arendst.github.io/blob/master/media/wemos/wemos_ws2813b_main.png" width="320">
|
Loading…
Reference in New Issue