Différences entre versions de « FEATHER-M0-Alimentation »
Ligne 23 : | Ligne 23 : | ||
== Source d'alimentation == | == Source d'alimentation == | ||
+ | {{traduction}} | ||
+ | |||
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. | 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. | ||
Version du 29 avril 2016 à 06:16
En cours de traduction/élaboration. |
Alimenter votre Feather
Il y a plusieurs choses intéressante à savoir si l'on désire tirer parti des options d'alimentation du Feather.
Crédit: AdaFruit Industries www.adafruit.com
Alimentation Accu + USB
Adafruit à voulu que le Feather soit facile à alimenter soit via le PC (lorsqu'il y est connecté), soit via un accu. Il y a donc deux facon d'alimenter un Feather.
- Vous pouvez connecter un câble microUSB (branché sur votre PC) et le régulateur de tension du Feather abaissera la tension d'alimentation USB (5V) à 3.3V.
- Vous pouvez également connecter un accu Lithium Polymère (Lipo/Lipoly) de 4.2/3.7V ou un accu Lithium Ion (LiIon) sur le connecteur JST. Cela permet au Feather de fonctionner sur un accu rechargeable.
Lorsque la prise USB est sous tension, le Feather utilise automatiquement cette source d'alimentation, et démarre également la charge de l'accu à 100mA (s'il est présent). Ce type de 'basculement à chaud' (hotswap) vous permet de garder votre accu Lipo toujours connecté, accu qui servira d'alimentation de secours lorsque l'alimentation USB est perdue. L'accu est est uniquement utilisé lorsqu'il n'y a pas dalimentation via USB.
Le connecteur JST est polarisé avec les accu Lipo que nous proposons sur notre WebShop. Faites attention si vous utilisez votre propres accu, une mauvaise polarisation peut détruire votre Feather |
Crédit: AdaFruit Industries www.adafruit.com
L'image ci-dessus montre le connecteur micro USB (sur la gauche) et le connecteur JST Lipoly (en haut à gauche), ainsi que le régulateur 3.3V et diode de basculement (juste à la droite du connecteur JST). Le circuit de recharge Lipoly est également visible sur la droite du bouton Reset. La LED CHG (Charging = en recharge) s'allume pendant que l'accu est chargé. Cette LED peut également clignoter sur l'accu n'est pas chargé.
Source d'alimentation
En cours de traduction/élaboration. |
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.
Crédit: AdaFruit Industries www.adafruit.com
Mesurer 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
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.
#define VBATPIN A7 float measuredvbat = analogRead(VBATPIN); measuredvbat *= 2; // we divided by 2, so multiply back measuredvbat *= 3.3; // Multiply by 3.3V, our reference voltage measuredvbat /= 1024; // convert to voltage Serial.print("VBat: " ); Serial.println(measuredvbat);
Crédit: AdaFruit Industries www.adafruit.com
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
Crédit: AdaFruit Industries www.adafruit.com
Source: Adafruit Feather M0 Basic Proto créé par LadyAda pour AdaFruit Industries. Crédit [www.adafruit.com 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.