Een 3,7V Li-Ion batterij is een oplaadbare voeding met één cel, vaak gebruikt om draagbare elektronica van stroom te voorzien. Ze levert een nominale uitgangsspanning van 3,7V en wordt aangesloten met POS/+ als de plusvoeding en NEG/- als massa.
| Pin | Signaal | Beschrijving |
|---|---|---|
NEG |
ground | Negative battery terminal — return path for the 3.7V Li-ion cell |
POS |
power | Positive battery terminal — supplies nominal 3.7V Li-ion output |
| Van | Naar | Draad |
|---|---|---|
x1:NEG |
board:GND |
black |
Dit voorbeeld is geschreven en compile-gecheckt voor de arduino-uno. Codey Online past het voor je aan naar elk ander ondersteund board.
void setup() {
pinMode(LED_BUILTIN, OUTPUT);
Serial.begin(9600);
while (!Serial) {
;
}
Serial.println("3.7V Li-Ion Battery example");
Serial.println("This component is a power source, so it is not read by the Arduino like a sensor.");
Serial.println("In this canonical example, the battery negative terminal is connected to GND only.");
Serial.println("The battery positive terminal is intentionally left unconnected because Arduino Uno cannot be safely powered from a bare 3.7V cell on a documentation page example.");
}
void loop() {
digitalWrite(LED_BUILTIN, HIGH);
delay(250);
digitalWrite(LED_BUILTIN, LOW);
delay(750);
}
Beschrijf wat je wilt bouwen. Codey Online schrijft de code, tekent het aansluitschema, compileert het en flasht je board rechtstreeks vanuit de browser.
Gratis starten