Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
documentation:microcontroleurs:arduino:modules:leds_adressables:index [2018/09/19 23:03] – f1sls | documentation:microcontroleurs:arduino:modules:leds_adressables:index [2022/09/01 16:52] (Version actuelle) – [Connexions aux micro-contrôleurs] f1sls | ||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
====== LEDs Adressables ====== | ====== LEDs Adressables ====== | ||
+ | |||
+ | ===== NeoPixel + Arduino ===== | ||
+ | |||
+ | * https:// | ||
===== WS2811 ===== | ===== WS2811 ===== | ||
Ligne 12: | Ligne 16: | ||
\\ | \\ | ||
{{: | {{: | ||
+ | |||
+ | ===== Connexions aux micro-contrôleurs ===== | ||
+ | // Source : Adafruit // | ||
+ | {{: | ||
+ | |||
+ | <WRAP center round alert 60%> | ||
+ | When connecting NeoPixels to any LIVE power source or microcontroller, | ||
+ | </ | ||
+ | |||
+ | <WRAP center round alert 60%> | ||
+ | When using a DC power supply, or an especially large battery, we recommend adding a large capacitor (100 to 1000 µF, 6.3V or higher) across the + and – terminals. This prevents the initial onrush of current from damaging the pixels. See the photo on the next page for an example. | ||
+ | </ | ||
+ | |||
+ | <WRAP center round important 60%> | ||
+ | With through-hole NeoPixels (5mm or 8mm round), add a 0.1 µF capacitor between the + and – pins of EACH PIXEL. Individual pixels may misbehave without this “decoupling cap.” Strips and boards have these caps built-in. | ||
+ | </ | ||
+ | |||
+ | <WRAP center round important 60%> | ||
+ | Adding a ~470 ohm resistor between your microcontroller' | ||
+ | </ | ||
===== Matrices ===== | ===== Matrices ===== | ||
Ligne 19: | Ligne 43: | ||
* Chaque ligne ou colonne complète la précédente en repartant du début = « PROGRESSIVE » | * Chaque ligne ou colonne complète la précédente en repartant du début = « PROGRESSIVE » | ||
* Les lignes / colonnes s' | * Les lignes / colonnes s' | ||
- | * Dans le code on indique dans quel coin est la première LED, puis l' | + | * Dans le code on indique dans quel coin est la première LED, puis l' |
+ | * On peut aussi indiquer si c'est une matrice de matrices (pour faire un truc immense !) | ||
+ | |||
+ | ==== Arrangements des LEDs ==== | ||
+ | {{:documentation: | ||
+ | {{: | ||
+ | {{: | ||
==== Code d' | ==== Code d' | ||
Ligne 41: | Ligne 71: | ||
</ | </ | ||
- | |||
- | {{: | ||
- | {{: | ||
- | {{: |