NeoPixel-UserGuide

De MCHobby - Wiki
Sauter à la navigation Sauter à la recherche


MCHobby investit du temps et de l'argent dans la réalisation de traduction et/ou documentation. C'est un travail long et fastidieux réalisé dans l'esprit Open-Source... donc gratuit et librement accessible.
SI vous aimez nos traductions et documentations ALORS aidez nous à en produire plus en achetant vos produits chez MCHobby.

La magie de NeoPixel

Incorporer des hordes de LEDs dans un projet électronique peuvent le transformer en une tignasse de fils, un nid de rats grouillants et un code difficile à maintenir. L'arrivée de LEDs disposant d'une puce pilote dédicacée change radicalement la donne en allégeant le travail du microcontroleur, le câblage et permet à tout un chacun de se concentrer sur l'application. C'est beaucoup plus simple... même si cela ne revient pas à la simplicité d'une "guirlande de Noel".

Le WS2812 avec source de lumière intégrée (WS2812 Integrated Light Source) ou plus communément nommé NeoPixel par Adafruit — est la dernière avancée dans la quête pour obtenir des LEDs pleine de couleurs, simple a mettre en oeuvre, évolutive (scalable) et abordable. Les leds rouge, vert et bleue sont intégrées côte à côte sur un petit support SMD (composants montés en surface) lui-même intégré sur la puce du pilote (le contrôleur), le tout contrôlé par un simple fil. Ils peuvent être utilisés individuellement, arrangés pour former une longue chaîne ou assemblés pour réaliser des formes intéressantes.

NeoPixel-UserGuide-01.jpg
Crédit: AdaFruit Industries www.adafruit.com

Ce qu'il est important de savoir à propos des NeoPixels

  • Toutes les LEDs addressables ne sont pas des NeoPixels. “NeoPixel” est la marque d'Adafruit pour les pixels RGB individuellement adressable et les bandes de pixels (dit "strips") basé sur les LEDs/pilotes WS2812 et WS2811, utilisant utilisant un protocol de contrôle à un seul fil. Il existe d'autres produits (dont certains pouvant se trouver sur notre WebShop) — dont les pixels WS2801, LPD8806 et bande RGB analogique — utilisent des méthodologies différentes (et dispose de leur propres tutoriels).
  • Les NeoPixels ne se contentent pas de s'allumer tout seul, ils nécessitent un microcontroleur (tel qu'un Arduino) et un peu de programmation. AdaFruit propose du code d'exemple pour démarrer facilement. Vous aurez besoin de savoir-faire en programmation pour réaliser vos propres effets et animations. Si la programmation Arduino est une toute nouvelle expérience, prenez le temps de consulter quelques tutoriels débutant pour Arduino afin de vous familiariser avec le langage.
  • NeoPixel n'est pas "la réponse idéale" pour tous les projets. Le signal de contrôle exige une gestion du temps très strict, certaines cartes (tels que Netduino ou Raspberry Pi) ne savent pas atteindre ce niveau d’exigence avec fiabilité. C'est la raison pour laquelle nous proposons une gamme de LED plus étendue... car elles peuvent convenir et/ou être adaptées dans certains cas.

Can I use NeoPixels for POV (persistence of vision) displays?

Not recommended. The refresh rate is relatively low (about 400 Hz), and color displays in fast motion may appear “speckled.” They look fine in stationary displays though (signs, decorations, jewelry, etc.). For POV use, LPD8806 strips (AdaFruit, disponible sur demande) will look much better (they have about a 4 KHz refresh rate).

How about for light painting?

Definitely! The slower movement used for photographic light painting doesn’t call attention to the limited refresh rate; the results look great, especially with a light diffuser.

Différents produits NeoPixels

NeoPixel Digital RGB LED Weatherproof Strip

{{{2}}}
Crédit: AdaFruit Industries www.adafruit.com

NeoPixel Digital RGB LED Weatherproof Strip is available in three different “densities”: 30, 60 and 144 LEDs per meter, on a white or black backing strip.

{{{2}}}
Crédit: AdaFruit Industries www.adafruit.com

{{{2}}}
Crédit: AdaFruit Industries www.adafruit.com

  • 30 LEDs per meter, white strip
  • 30 LEDs per meter, black strip
  • 60 LEDs per meter, white strip
  • 60 LEDs per meter, black strip
  • 144 LEDs per meter, white strip
  • 144 LEDs per meter, black strip

The approximate peak power use (all LEDs on at maximum brightness) per meter is:

  • 30 LEDs: 9.5 Watts (just under 2 Amps at 5 Volts).
  • 60 LEDs: 18 Watts (about 3.6 Amps at 5 Volts).
  • 144 LEDs : 35 watts (7 Amps at 5 Volts).

Mixed colors and lower brightness settings will use proportionally less power.

Important Things to Know About NeoPixel Strips

The product list continues below. But first...

  • NeoPixel strips are sold in one meter lengths. The 144 pixels/meter strips are always separate 1-meter lengths. For 60 and 30 pixels/meter strips, orders for multiple meters will be a single contiguous strip, up to a limit: 4 meters for 60 pixels/meter strip, or 5 meters for 30 pixels/meter strip.
  • For 60 and 30 pixels/meter strips, if purchasing less than a full reel (4 or 5 meters, respectively), the strip may or may not have a 3-pin JST plug soldered to one end. These plugs are for factory testing and might be at either end — the plug does not always indicate the input end! Arrows printed on the strip show the actual data direction.
  • Although these strips are flexible, they do not tolerate continuous and repeated bending. A typical application is architectural installations, where they can be curved around columns and then stay put. Repeated flexing (as on costumes) will soon crack the solder connections. For wearable use, either affix shorter segments to a semi-rigid base (e.g. a hat, BMX armor, etc.), or use the individual sewable NeoPixels shown later.
  • The flex strips are enclosed in a weatherproof silicone sleeve, making them immune to rain and splashes, but are not recommended for continuous submersion. Early 144 pixel/meter strips were not weatherproof, but the latest batches now include this feature.
  • The silicone sleeve can be cut and removed for a slimmer profile, but the strip is no longer weatherproof.
  • Very few glues will adhere to the weatherproof silicone sleeve. Using zip ties for a “mechanical” bond is usually faster and easier. The only two reliable glues we’ve found are Permatex 66B Clear RTV Silicone (not all silicone glues will work!) and Loctite Plastics Bonding System, a 2-part cyanoacrylate glue. The Permatex 66B silicone can also be used to seal the open end of a cut strip.
  • All strips are manufactured in 1/2 meter segments that are then joined into a longer strip. The pixel spacing across these joins is 2-3 millimeters different than the rest.

NeoPixel Shapes: Rings, Matrix, Shield and Strip

These ready-made shapes simplify many projects! Rings are perfect for jewelry, timepieces and navigation displays. Matrices work for bitmap displays and scrolling message signs.

All NeoPixel shapes can be chained (the output of one can connect to the input of the next) and are controlled from a single microcontroller pin.

{{{2}}}
Crédit: AdaFruit Industries www.adafruit.com

{{{2}}}
Crédit: AdaFruit Industries www.adafruit.com

{{{2}}}
Crédit: AdaFruit Industries www.adafruit.com

  • 12 NeoPixel Ring — 1.5 inch (37 mm) outside diameter. Max 5V @ 750 mA.
  • 16 NeoPixel Ring — 1.75 inch (44.5 mm) outside diameter. Max 5V @ 1A.
  • 24 NeoPixel Ring — 2.6 inch (66 mm) outside diameter. Max 5V @ 1.4A
  • 8x8 NeoMatrix — 64 LEDs total. The pixel spacing and board size allow seamless tiling. Max 5V @ 4A.

NeoPixel Shield for Arduino — 5x8 matrix plugs directly atop an Arduino board (can also be tiled separately if desired). If the overall brightness is carefully limited, can be directly powered from the Arduino. For most situations, connecting an external power supply is recommended. Max 5V @ 2.4A (the Arduino can only supply about 500 milliamps).

  • NeoPixel Stick — 8 NeoPixel LEDs on a rigid circuit board packed even more tightly than the flex strips. Solder pads on the back for connecting wires or breadboard pins (not included).

Current ratings shown are approximate maximums (all pixels on at peak brightness). Mixed colors and lower brightness settings will use proportionally less power.

Important Things to Know About NeoPixel Rings

  • When soldering wires to these rings, you need to be extra vigilant about solder blobs and short circuits. The spacing between components is very tight!
  • If using alligator clips, we recommend first soldering short jumper wires to the ring inputs and connecting the clips to those, for similar reasons. (Some of our tutorials and product photos do show alligator clips directly connected to the rings, but we’ve had a lot of experience using them.)

Single NeoPixels

Single NeoPixels allow maximum control over individual pixel placement (some are even sewable!), while bulk sheets are a more economical option.

{{{2}}}
Crédit: AdaFruit Industries www.adafruit.com

{{{2}}}
Crédit: AdaFruit Industries www.adafruit.com

{{{2}}}
Crédit: AdaFruit Industries www.adafruit.com

  • Flora RGB Smart NeoPixel (Version 2) — designed specifically for wearables and “soft circuits,” these NeoPixels can be sewn using our fil à coudre conducteur (traditional soldering works too). Sold in packs of 4.
  • Breadboard-Friendly Smart NeoPixel — accommodates pin headers with standard 0.1" spacing. Sold in packs of 4 (headers are sold separately).
  • NeoPixel Mini PCB — the smallest NeoPixel breakout boards have solder pads on the back. Sold in packs of 5.
  • WS2812 RGB LED with Integrated Driver Chip — bare NeoPixels for advanced users wanting to design their own custom boards and shapes. 10 pack. This is a surface-mount device, not recommended for novice soldering. For through-hole use, consider Breadboard-Friendly NeoPixels.

All individual NeoPixels can be chained from a single microcontroller pin, with the one caveat that WS2812 and WS2811 (e.g. Flora V2 and V1) types can’t be mixed in a single chain.

Each individual NeoPixel requires 60 milliamps max at full brightness. Mixed colors and lower brightness settings will use proportionally less power.


Source: NeoPixel UserGuide créé par Phillip Burgess pour AdaFruit Industries. Crédit AdaFruit Industries

Traduit par Meurisse D. pour MCHobby.be

Traduit avec l'autorisation d'AdaFruit Industries - Translated with the permission from Adafruit Industries - www.adafruit.com

Toute référence, mention ou extrait de cette traduction doit être explicitement accompagné du texte suivant : «  Traduction par MCHobby (www.MCHobby.be) - Vente de kit et composants » avec un lien vers la source (donc cette page) et ce quelque soit le média utilisé.

L'utilisation commercial de la traduction (texte) et/ou réalisation, même partielle, pourrait être soumis à redevance. Dans tous les cas de figures, vous devez également obtenir l'accord du(des) détenteur initial des droits. Celui de MC Hobby s'arrêtant au travail de traduction proprement dit.