Piles et accus pour alimenter des Pixels-Estimation

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.

Combien de temps mon bloc pile va t-il fonctionner?

C'est une estimation terriblement difficile à faire! Parfois, la seule façon d'y arriver est de brancher l'ensemble avec de toutes nouvelles piles et de surveiller l'horloge pour voir combien de temps le montage va fonctionner. Une fois que les LEDs commencerons à fonctionner de façon erratique, vous aurez le temps de fonctionnement maximal de votre projet.

Pourquoi est-ce si difficile à prédire?

Les LEDs digitales fonctionnent rarement en couleur fixe — elles sont généralement animmée (passe d'une couleur à l'autre). Il est possible d'estimer la consommation dans une configuration fixe mais une animation fait varier le flux du courant en permanence.

Il arrive aussi que les fabricants de piles sur-estime la capacité de leur piles ou expriment cette capacité dans des conditions d'utilisation idéale.

Par où commencer?

Essayez de trouver la fiche technique de vos piles! Vous devriez la trouver sur le site web du fabricant ou sur le site d'un vendeur comme Digi-Key. Le plus facile est encore d'utiliser un moteur de recherche. Vous trouverez un graphique similaire à celui ci-dessous dans la plupart des fiches techniques de pile.

 
Crédit: AdaFruit Industries www.adafruit.com

Ce graphique indique les fluctuation de tension d'une pile en rapport avec son temps de fonctionnement. Ce graphique reprend plusieurs courbes de décharges (plus vous consommez de courant... de watt... et plus vite sa tension chutera). You can see that the expected service life is not directly proportional to power drain — halving the latter more than doubles the former. Again, with a fixed configuration, we could plan for this, but our LEDs are in motion, which doesn’t make things any easier. You’ll probably just have to come up with an informed average.

Elsewhere in the datasheet (or often printed on the cell itself, in the case of rechargeables), you may find a capacity in mAh (milliamp-hours).

 
Crédit: AdaFruit Industries www.adafruit.com

LED current use is measured in milliamps (mA). As a rule of thumb, we usually use 20 mA as a guideline for a single LED at full brightness, and each color “pixel” contains three LEDs (one each for red, green and blue), for a total of 60 mA per pixel when displaying white at full brightness. If we leave that pixel on in that state for one hour, we’ve used 60 milliamp-hours (60 mA × 1 hour = 60 mAh). If the stated battery capacity is 2100 mAh, we could expect to run that one pixel for about 35 hours continuously before the battery peters out (2100 mAh ÷ 60 mA = 35 hours).

 
Crédit: AdaFruit Industries www.adafruit.com

But single pixels are seldom left on at full brightness for hours. Usually there’s some combination of brightness levels being mixed, some number of pixels are off entirely, and these states may change many times per second. That’s why we just use reasonable estimates, as in “On average, running this code, I think there’s about ten pixels on at any given time, and the average color mix represents a brightness level of 75%.” Starting with the “60 mA per pixel” rule of thumb: 60 mA × 0.75 = 45 mA average per pixel. 45 mA × 10 pixels = 450 mA. Left to run continuously, with a 2100 mAh battery pack, 2100 mAh ÷ 450 mA = 4.66 hours.


Complicating matters further, the LED driver chips themselves use a tiny bit of current, even when the LEDs themselves are “off.” Each chip needs about 2 mA extra…for a strand of 25, it’s using about 50 mA just in this idle state. You may want to factor this into your estimation. Oh, and we forgot to mention power use for the microcontroller that’s driving all this…about 25 mA or so for an Arduino. So we’ll add about 75 mA to the above estimate: 2100 mAh ÷ 525 mA = 4 hours.


If you have a really nice multimeter with an average current recording mode, it will be your new best friend, because it’s doing this based on actual readings. But this capability is usually present only in high-end meters.


You may also want to add some “engineering overhead” to your estimate. Remember what was said about battery capacity often being idealized. So we’ll de-rate the battery by a bit, let’s assume reality is about 80% of the stated capacity: 2100 mAh × 0.8 = 1680 mAh. 1680 mAh ÷ 525 mA = 3.2 hours.


As you can see, there’s an awful lot of fudging and speculation in this process. This is why we say it’s easiest sometimes just to plug in some batteries and keep an eye on it!


Source: Battery Power for LED Pixels ans Strips 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.