This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| en:iot-open:practical:hardware:sut:esp32:emb8_1 [2024/03/04 09:29] – created pczekalski | en:iot-open:practical:hardware:sut:esp32:emb8_1 [2024/04/09 13:03] (current) – [Steps] pczekalski | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== EMB8: Controlling Smart LED stripe ===== | ====== EMB8: Controlling Smart LED stripe ===== | ||
| - | A Smart LED stripe (also referenced as Digital LED or NEOPIXEL) is a chain of connected LEDs, commonly RGB, but other combinations such as RGBWW (Red+Green+Blue+Warm White+Cold White) or WWA (Warm White+Cold White+Amber) exist. They are controlled with just one pin/GPIO. GPIO drives a first LED in a row and the LED relays configuration to the next one, and so on. This way, they constitute a daisy chain. | + | A Smart LED stripe (also referenced as Digital LED or NEOPIXEL) is a chain of connected LEDs, commonly RGB, but other combinations such as RGBWW (Red+Green+Blue+Warm White+Cold White) or WWA (Warm White+Cold White+Amber) exist. They are controlled with just one pin/GPIO. GPIO drives a first LED in a chain and the LED relays configuration to the next one, and so on.\\ The most common type of LED stripes is WS2812B (RGB). Initially |
| + | In this scenario you will learn how to control a small LED RGB Stripe, composed of 8 Smart (Digital) LEDs. | ||
| ===== Prerequisites ===== | ===== Prerequisites ===== | ||
| Line 10: | Line 11: | ||
| There are at least two ways (algorithms) to implement this task: | There are at least two ways (algorithms) to implement this task: | ||
| - | * using dummy loop with blocking ('' | + | * using dummy blocking ('' |
| * using a timer (see advanced scenario below). | * using a timer (see advanced scenario below). | ||
| Line 29: | Line 30: | ||
| When booking a device, ensure the LED stripe is visible in the camera. | When booking a device, ensure the LED stripe is visible in the camera. | ||
| <note important> | <note important> | ||
| - | <note tip> | + | <note tip> |
| ==== Steps ==== | ==== Steps ==== | ||
| Line 54: | Line 55: | ||
| stripe.show(); | stripe.show(); | ||
| </ | </ | ||
| - | Parameters are: '' | + | Parameters are: '' |
| + | <note tip>Note that the index is 0-based, so in the case of our device, valid indexes are 0...7.</ | ||
| - | If you want to set all LEDs in the stripe to the same colour, there is a handy function: '' | + | If you want to set all LEDs in the stripe to the same colour, there is a handy function: '' |
| ==== Result validation ==== | ==== Result validation ==== | ||
| Line 62: | Line 64: | ||
| ===== FAQ ===== | ===== FAQ ===== | ||
| - | **I cannot see the colour via the video camera**: Try to lower brightness. | + | **I cannot see the colour via the video camera |
| + | <WRAP noprint> | ||
| ===== Project information ===== | ===== Project information ===== | ||
| {{: | {{: | ||
| Line 80: | Line 83: | ||
| {{: | {{: | ||
| </ | </ | ||
| + | </ | ||