Bonjour,
Je me retrouve confronté à une situation que je ne comprends pas ![]()
J'espère trouver un peu d'aide pour m'aider à me débloquer.
Mon projet :
Je me suis lancé dans un gros projet de création d'un BB8 (oui le droid de Star Wars
) en taille réel. Et pour cela je suis des forums et autres groupes sur le sujet.
Mon problème :
Je suis actuellement en cours de réalisation de la partie électronique du Dome.
En soi, le diagramme est assez simple :
Dome MK3_bb.pdf (1.5 MB)
Et pour m'assurer que tout est OK, j'ai récupéré un code simple que j'ai adapté pour tester mes Leds :
#include <Adafruit_NeoPixel.h>
#ifdef __AVR__
#include <avr/power.h>
#endif
// Which pin on the Arduino is connected to the NeoPixels?
// On a Trinket or Gemma we suggest changing this to 1
#define PIN3 3
#define PIN10 10
#define PIN11 11
#define PIN5 5
#define PIN6 6
// How many NeoPixels are attached to the Arduino?
#define NUMPIXELS3 1
#define NUMPIXELS10 1
#define NUMPIXELS11 1
#define NUMPIXELS5 3
#define NUMPIXELS6 6
// When we setup the NeoPixel library, we tell it how many pixels, and which pin to use to send signals.
// Note that for older NeoPixel strips you might need to change the third parameter--see the strandtest
// example for more information on possible values.
Adafruit_NeoPixel pixels3 = Adafruit_NeoPixel(NUMPIXELS3, PIN3, NEO_GRB + NEO_KHZ800);
Adafruit_NeoPixel pixels10= Adafruit_NeoPixel(NUMPIXELS10, PIN10, NEO_GRB + NEO_KHZ800);
Adafruit_NeoPixel pixels11= Adafruit_NeoPixel(NUMPIXELS11, PIN11, NEO_GRB + NEO_KHZ800);
Adafruit_NeoPixel pixels5= Adafruit_NeoPixel(NUMPIXELS5, PIN5, NEO_GRB + NEO_KHZ800);
Adafruit_NeoPixel pixels6= Adafruit_NeoPixel(NUMPIXELS6, PIN6, NEO_GRB + NEO_KHZ800);
int delayval = 500; // delay for half a second
void setup() {
pixels3.begin(); // This initializes the NeoPixel library.
pixels10.begin(); // This initializes the NeoPixel library.
pixels11.begin(); // This initializes the NeoPixel library.
pixels5.begin(); // This initializes the NeoPixel library.
pixels6.begin(); // This initializes the NeoPixel library.
}
void loop() {
// For a set of NeoPixels the first NeoPixel is 0, second is 1, all the way up to the count of pixels minus one.
for(int i=0;i<NUMPIXELS3;i++){
// pixels.Color takes RGB values, from 0,0,0 up to 255,255,255
pixels3.setPixelColor(i, pixels3.Color(0,150,0)); // Moderately bright green color.
pixels3.show(); // This sends the updated pixel color to the hardware.
delay(delayval); // Delay for a period of time (in milliseconds).
}
for(int i=0;i<NUMPIXELS10;i++){
// pixels.Color takes RGB values, from 0,0,0 up to 255,255,255
pixels10.setPixelColor(i, pixels10.Color(255,128,0));
pixels10.show(); // This sends the updated pixel color to the hardware.
delay(delayval); // Delay for a period of time (in milliseconds).
}
for(int i=0;i<NUMPIXELS11;i++){
// pixels.Color takes RGB values, from 0,0,0 up to 255,255,255
pixels11.setPixelColor(i, pixels11.Color(0,255,0));
pixels11.show(); // This sends the updated pixel color to the hardware.
delay(delayval); // Delay for a period of time (in milliseconds).
}
for(int i=0;i<NUMPIXELS5;i++){
// pixels.Color takes RGB values, from 0,0,0 up to 255,255,255
pixels5.setPixelColor(i, pixels5.Color(255,51,255));
pixels5.show(); // This sends the updated pixel color to the hardware.
delay(delayval); // Delay for a period of time (in milliseconds).
}
for(int i=0;i<NUMPIXELS6;i++){
// pixels.Color takes RGB values, from 0,0,0 up to 255,255,255
pixels6.setPixelColor(i, pixels6.Color(255,51,255));
pixels6.show(); // This sends the updated pixel color to the hardware.
delay(delayval); // Delay for a period of time (in milliseconds).
}
}
Mais, seulement mes leds qui sont seule s'allument !? les leds en groupe de 3 et en groupe de 6 ne veulent pas s'allumer ![]()
J'ai désoudé / resoudé plusieurs fois avec d'autres leds --> rien
J'ai testé avec 1 Seule LEd sur les même fils et ca fonctionne, donc le brnachement sur la carte Adafruit Feather est OK.
J'ai beau tourné le truc dans tous les sens, je ne comprends pas ![]()
Si qqun peut me filer un coup de main pour me permettre de me débloquer ce serait top !
Merci d'avance de m'avoir lu.
++



