Modifications

Sauter à la navigation Sauter à la recherche
1 114 octets ajoutés ,  28 octobre 2017 à 15:32
aucun résumé de modification
Ligne 1 : Ligne 1 :  
{{FEATHER-M0-EXPRESS-NAV}}
 
{{FEATHER-M0-EXPRESS-NAV}}
   −
{{traduction}}
+
== Alimentation accu + USB ==
 +
{{ADFImage|FEATHER-M0-EXPRESS-Alimentation-01.jpg|640px}}
 +
 
 +
Adafruit à conçu le Feather pour qu'il soit facile à alimenter qu'il soit branché sur un ordinateur ou sur un accumulateur. Il y a '''deux façon d'alimenter''' le Feather. Vous pouvez connecter un câble micro-USB (sur le connecteur micro USB) et le Feather utilisateur la tension USB 5V pour la l'abaisser à 3.3V. Vous pouvez également brancher un accu Lithium Polymère 4.2/3.7V  (Lipo/Lipoly) ou accu Lithium Ion (LiIon) sur le connecteur JST. Cela permettra au Feather de fonctionner depuis un accumulateur (''pile'') rechargeable. '''lorsqu'il est alimenté via USB, le Feather passera automatiquement sur l'alimentation USB et commencera à recharger l'accu (s'il est branché) avec un débit de 100mA. '''Cela s'effectue comme 'hotswap' (passage à chaud) d'une source d'alimentation à l'autre''' permettant à l'accumulateur Lipoly d'agir comme une alimentation de secours lors de la perte d'alimentation USB.
   −
{{ADFImage|FEATHER-M0-EXPRESS-Alimentation-01.jpg|640px}}
+
{{ambox|text=La polarité du connecteur JST correspond à celle des {{cl|83|accumulateurs disponibles sur notre WebShop}}. Utiliser une mauvaise polarité peut détruire votre Feather.}}
   −
== Battery + USB Power ==
+
{{ADFImage|FEATHER-M0-EXPRESS-Alimentation-02.jpg|640px}}
We wanted to make the Feather easy to power both when connected to a computer as well as via battery. There's '''two ways to power''' a Feather. You can connect with a MicroUSB cable (just plug into the jack) and the Feather will regulate the 5V USB down to 3.3V. You can also connect a 4.2/3.7V Lithium Polymer (Lipo/Lipoly) or Lithium Ion (LiIon) battery to the JST jack. This will let the Feather run on a rechargable battery. '''When the USB power is powered, it will automatically switch over to USB for power, as well as start charging the battery (if attached) at 100mA. '''This happens 'hotswap' style so you can always keep the Lipoly connected as a 'backup' power that will only get used when USB power is lost.
      +
L'image ci-dessus présente le connecteur Micro USB (à gauche), le connecteur JST (pour accu Lipoly, en haut à gauche) ainsi que le régulateur 3.3V et la diode de basculement (dite "''changeover''") d'une alimentation à l'autre (juste à droite du connecteur JST) et le circuit de recharge Lipoly (à droite du bouton reset).
   −
{{traduction}}
+
Il y a également la LED '''CHG''' LED qui est allumée pendant le chargement de l'accumulateur. Cette LED peut éventuellement clignoter lorsque l'accu n'est pas connecté.
No class registered in CONVERSION_CLASS for section build-alert alert-warning
  −
<nowiki>
  −
<div class="alert">
  −
<i class='fa fa-exclamation-circle'></i>
  −
The JST connector polarity is matched to Adafruit LiPoly batteries. Using wrong polarity batteries can destroy your Feather
  −
</nowiki>
     −
{{ADFImage|FEATHER-M0-EXPRESS-Alimentation-02.jpg|640px}}
+
== Les alimentations ==
 +
Il y a de nombreuses options d'alimentation sur le Feather!
   −
The above shows the Micro USB jack (left), Lipoly JST jack (top left), as well as the 3.3V regulator and changeover diode (just to the right of the JST jack) and the Lipoly charging circuitry (to the right of the Reset button). There's also a '''CHG''' LED, which will light up while the battery is charging. This LED might also flicker if the battery is not connected.
+
La broche '''BAT''' est raccordée sur le connecteur JST de l'accu Lipoly. La broche '''USB''' est raccordée sur le +5V du connecteur USB (et dispose donc de 5V si le connecteur est branché).  
   −
== Power supplies ==
+
La broche '''3V''' correspond à la sortie du régulateur 3.3V. Il s'agit d'un régulateur supportant 500mA en pointe. Si vous pouvez atteindre un courant 500mA, vous ne pourrez pas le faire continuellement car le régulateur entrera vite en surchauffe. Ce régulateur est idéal pour alimenter des composants comme l'ESP8266 ou un XBee (module radio) étant donné que ces derniers n'impliquent des pointes de courant que de façon sporadique.
You have a lot of power supply options here! We bring out the '''BAT''' pin, which is tied to the lipoly JST connector, as well as '''USB '''which is the +5V from USB if connected. We also have the '''3V''' pin which has the output from the 3.3V regulator. We use a 500mA peak regulator. While you can get 500mA from it, you can't do it continuously from 5V as it will overheat the regulator. It's fine for, say, powering an ESP8266 WiFi chip or XBee radio though, since the current draw is 'spikey' & sporadic.
      
{{ADFImage|FEATHER-M0-EXPRESS-Alimentation-03.jpg|640px}}
 
{{ADFImage|FEATHER-M0-EXPRESS-Alimentation-03.jpg|640px}}
   −
== Measuring Battery ==
+
== Mesure de la tension de l'accu ==
If you're running off of a battery, chances are you wanna know what the voltage is at! That way you can tell when the battery needs recharging. Lipoly batteries are 'maxed out' at 4.2V and stick around 3.7V for much of the battery life, then slowly sink down to 3.2V or so before the protection circuitry cuts it off. By measuring the voltage you can quickly tell when you're heading below 3.7V
+
Si vous alimentez votre projet depuis l'accu, il est fort probable que vous désiriez connaître la tension de l'accu! De cette façon il est possible d'avertir l'utilisateur qu'il est temps de recharger l'accu (en branchant le montage en USB). La tension max de l'accu Lipoly est de 4.2V (juste en sortie de charge) et à 3.7V durant la plus grande partie de la durée de vie de l'accu, puis la tension diminue lentement jusqu'à environ 3.2V (juste avant l'activation du circuit de protection).  
   −
To make this easy we stuck a double-100K resistor divider on the '''BAT''' pin, and connected it to '''D9''' (a.k.a analog #7 '''A7'''). You can read this pin's voltage, then double it, to get the battery voltage.
+
En surveillant la tension de l'accumulateur (broche VBAT), il est possible de rapidement savoir lorsque la tension chute significativement sous 3.7V
 +
 
 +
Pour faciliter la surveillance de cette tension, Adafruit branché un pont diviseur de tension (deux résistance de 100K) sur la broche  '''BAT'''. La tension BAT ainsi divisée par deux, la sortie du pont diviseur est branché sur la broche '''D9''' (entrée analogique #7 '''A7'''). Vous pouvez donc lire la tension sur la broche et la multiplier par deux pour connaître la tension de l'accu.
    
<syntaxhighlight lang="python">
 
<syntaxhighlight lang="python">
#define VBATPIN A7
+
#define VBATPIN A7 // definir la broche associée à VBAT
 
    
 
    
float measuredvbat = analogRead(VBATPIN);
+
float mesurevbat = analogRead(VBATPIN);
measuredvbat *= 2;    // we divided by 2, so multiply back
+
mesurevbat *= 2;    // multiplier par 2, car le pont diviseur divise la tension par 2
measuredvbat *= 3.3;  // Multiply by 3.3V, our reference voltage
+
mesurevbat *= 3.3;  // multiplier par 3.3V, la tension de référence
measuredvbat /= 1024; // convert to voltage
+
mesurevbat /= 1024; // convertir en tension (convertisseur 10 bits)
 
Serial.print("VBat: " ); Serial.println(measuredvbat);
 
Serial.print("VBat: " ); Serial.println(measuredvbat);
 
</syntaxhighlight>
 
</syntaxhighlight>
Ligne 43 : Ligne 42 :  
{{ADFImage|FEATHER-M0-EXPRESS-Alimentation-04.jpg|640px}}
 
{{ADFImage|FEATHER-M0-EXPRESS-Alimentation-04.jpg|640px}}
   −
== ENable pin ==
+
== La broche ENable ==
If you'd like to turn off the 3.3V regulator, you can do that with the '''EN'''(able) pin. Simply tie this pin to '''Ground '''and it will disable the 3V regulator. The '''BAT''' and '''USB''' pins will still be powered
+
Il est possible de désactiver le régulateur 3.3V si vous le désirez. Cela peut être réalisé à l'aide de la broche '''EN''' (de ''ENable'' signifiant 'activé'). Brancher simplement cette broche sur la '''masse''' (GND) pour désactiver le régulateur 3V.  
 +
 
 +
A noter que les broches '''BAT''' et '''USB''' restent ''alimentées'' même si le régulateur est désactivé.
    
{{ADFImage|FEATHER-M0-EXPRESS-Alimentation-05.jpg|640px}}
 
{{ADFImage|FEATHER-M0-EXPRESS-Alimentation-05.jpg|640px}}
29 917

modifications

Menu de navigation