Difference: TheWS2812BRgbLED (1 vs. 2)

Revision 22019-05-17 - UliRaich

Line: 1 to 1
 
META TOPICPARENT name="WeMosD1Mini"

The WS2812B RGB LED shield

Line: 6 to 6
  ws2812b.png
Changed:
<
<
The board uses D2 (GPIO 4) as data line. Since the same line is used as SDA for I2C modules it cannot be used in conjunction with I2C shields.
>
>
The board uses D2 (GPIO 4) as data line (or GPIO 21 when running on the ESP32). Since the same line is used as SDA for I2C modules it cannot be used in conjunction with I2C shields.
  From the software point of view a driver is already available in the micro Python library named neopixel. Accessing the WS2812B using this driver is the pretty simple.

Here is a program demonstrating this:

Changed:
<
<
https://afnog.iotworkshop.africa/pub/AFNOG/TheWS2812BRgbLED/ws2812.py.txt
>
>
https://github.com/uraich/MicroPython_IoTDemos/blob/master/drivers/ws2812bLED/ws2812.py
  Be careful with this LED and do not look into into when it emits light with full intensity. The light is so intense that you may damage your eyes!
Added:
>
>
In Cayenne we can define 3 sliders which control the intensity of each color component. The program subscribing top the slider control channels and driving the LEDs correspondingly is found here:

https://github.com/uraich/MicroPython_IoTDemos/blob/master/cayenne/ws2812b/cayenneWS2812B.py

There is also a little program simply switching the LED off:

https://github.com/uraich/MicroPython_IoTDemos/blob/master/cayenne/ws2812b/switchOff.py

 -- Uli Raich - 2019-03-22

Comments

Line: 23 to 32
 
<--/commentPlugin-->

META FILEATTACHMENT attachment="ws2812b.png" attr="" comment="" date="1553263014" name="ws2812b.png" path="ws2812b.png" size="41053" user="UliRaich" version="1"
Deleted:
<
<
META FILEATTACHMENT attachment="ws2812.py.txt" attr="" comment="" date="1553263361" name="ws2812.py.txt" path="ws2812.py.txt" size="579" user="UliRaich" version="1"

Revision 12019-03-22 - UliRaich

Line: 1 to 1
Added:
>
>
META TOPICPARENT name="WeMosD1Mini"

The WS2812B RGB LED shield

On this board we have the addressable WS2812B RGB LED. This LED is used in many LED chains.

ws2812b.png

The board uses D2 (GPIO 4) as data line. Since the same line is used as SDA for I2C modules it cannot be used in conjunction with I2C shields.

From the software point of view a driver is already available in the micro Python library named neopixel. Accessing the WS2812B using this driver is the pretty simple.

Here is a program demonstrating this:

https://afnog.iotworkshop.africa/pub/AFNOG/TheWS2812BRgbLED/ws2812.py.txt

Be careful with this LED and do not look into into when it emits light with full intensity. The light is so intense that you may damage your eyes!

-- Uli Raich - 2019-03-22

Comments

<--/commentPlugin-->

META FILEATTACHMENT attachment="ws2812b.png" attr="" comment="" date="1553263014" name="ws2812b.png" path="ws2812b.png" size="41053" user="UliRaich" version="1"
META FILEATTACHMENT attachment="ws2812.py.txt" attr="" comment="" date="1553263361" name="ws2812.py.txt" path="ws2812.py.txt" size="579" user="UliRaich" version="1"
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback