Probleme de televersement Arduino avec carte feather

Bonjour à tous,
Je ne comprends pas un problème sur ma carte feather avec le logiciel Arduino.
J'ai fait avec une carte feather 32u4 un mini robot pouvant se mouvoir, lien du robot ici Mini Round Robot Chassis Kit - 2WD with DC Motors : ID 3216 : $19.95 : Adafruit Industries, Unique & fun DIY electronics and kits

Mais quand je téleverse un programme sur ma carte, celui-ci marche uniquement quand ma carte est branchée via USB sur le PC ou même sur une prise éléctrique. Pourtant j'ai une batterie ( Lithium Ion Battery - 3.7V 2000mAh : ID 2011 : $12.50 : Adafruit Industries, Unique & fun DIY electronics and kits ).

J'ai lu les topics sur les différents problèmes de téléversement étant novice en programmation Arduino, je ne comprends pas d'ou vient ce problème. Merci de votre aide.
Cordialement

barnabe92:
Mais quand je téleverse un programme sur ma carte, celui-ci marche uniquement quand ma carte est branchée via USB sur le PC ou même sur une prise éléctrique.

Donc, en fin de compte le programme est bien chargé? Ce n'est pas un problème de téléchargement?

J'ose à peine demander si tu t'es assuré que la batterie est bien chargée.

Le téléversement marche puisque en connectant à une prise via USB la carte, celui-ci fonctionne. Le problème est simplement que le programme et les outils connectés aux pins de la carte ( line follower) ne fonctionnent seulement quand la carte feather est branchée via USB et non via le terminal BLOCK de la carte fait pour connecter des batteries.
Le montage des deux cartes plug-in est ici: Overview | Adafruit Stepper + DC Motor FeatherWing | Adafruit Learning System

J'ai connectée la batterie au terminal block ou la led verte est allumée et s'allume aussi chez moi quand je branche la batterie..

Tu n'aurais pas un while(!Serial) au début de ton programme?

Voici mon programme:

/*
This is a test sketch for the Adafruit assembled Motor Shield for Arduino v2
It won't work with v1.x motor shields! Only for the v2's with built in PWM
control

For use with the Adafruit Motor Shield v2
----> Adafruit Motor/Stepper/Servo Shield for Arduino v2 Kit [v2.3] : ID 1438 : $19.95 : Adafruit Industries, Unique & fun DIY electronics and kits
*/

#include <Wire.h>
#include <Adafruit_MotorShield.h>

// Create the motor shield object with the default I2C address
Adafruit_MotorShield AFMS = Adafruit_MotorShield();
// Or, create it with a different I2C address (say for stacking)
// Adafruit_MotorShield AFMS = Adafruit_MotorShield(0x61);

// Select which 'port' M1, M2, M3 or M4. In this case, M1
Adafruit_DCMotor *myOtherMotor = AFMS.getMotor(4);
Adafruit_DCMotor *myMotor = AFMS.getMotor(1);
// You can also make another motor on port M2
//Adafruit_DCMotor *myOtherMotor = AFMS.getMotor(2);

void setup() {
Serial.begin(9600); // set up Serial library at 9600 bps
Serial.println("Adafruit Motorshield v2 - DC Motor test!");

AFMS.begin(); // create with the default frequency 1.6KHz
//AFMS.begin(1000); // OR with a different frequency, say 1KHz

// Set the speed to start, from 0 (off) to 255 (max speed)
myMotor->setSpeed(10);
myOtherMotor->setSpeed(10);
myMotor->run(FORWARD);
myOtherMotor->run(FORWARD);

// turn on motor
myMotor->run(RELEASE);
myOtherMotor->run(RELEASE);
}

void loop() {
uint8_t i;

Serial.print("tick");

myMotor->run(FORWARD);
myOtherMotor->run(FORWARD);
for (i=0; i<255; i++) {
myMotor->setSpeed(i);
myOtherMotor->setSpeed(i);
delay(10);
}
for (i=255; i!=0; i--) {
myMotor->setSpeed(i);
myOtherMotor->setSpeed(i);
delay(10);
}

Serial.print("tock");

myMotor->run(BACKWARD);
myOtherMotor->run(BACKWARD);
for (i=0; i<255; i++) {
myMotor->setSpeed(i);
myOtherMotor->setSpeed(i);
delay(10);
}
for (i=255; i!=0; i--) {
myMotor->setSpeed(i);
myOtherMotor->setSpeed(i);
delay(10);
}

Serial.print("tech");
myMotor->run(RELEASE);
myOtherMotor->run(RELEASE);
delay(1000);
}

Même ce programme classique ne fonctionne pas... sans le branchement usb