esp32s3-N16-R8 introuvable par EDI

Bonjour. J’ai une carte esp32 mais sans doute trop ressente. Pas moyen de la déclarer dans mon EDI arduino. Si quelqu’un a rencontré cette carte, je lui propose de partager sa galère avec moi. Le led colorée clignote ( et c’est violent ) mais c’est tout.

J’ai installé la bibliothèque esp32 par espressif sans résultat !

Merci de votre attention.

Bonjour,
Je possede l’ESP32-S3 N16R8, je l’utilise avec arduino IDE 2.3.8, j’ai selectionné ESP32S3 Dev Module, j’ai juste testé quelque script, je n’est pas testé la led rgb mais en general il faut utilisé la librairie neopixel je crois, trouvé les bons pins

peut etre ce sketch

/*

BlinkRGB

Demonstrates usage of onboard RGB LED on some ESP dev boards.

Calling digitalWrite(RGB_BUILTIN, HIGH) will use hidden RGB driver.

RGBLedWrite demonstrates controll of each channel:
void neopixelWrite(uint8_t pin, uint8_t red_val, uint8_t green_val, uint8_t blue_val)

WARNING: After using digitalWrite to drive RGB LED it will be impossible to drive the same pin
with normal HIGH/LOW level
*/
#define RGB_BRIGHTNESS 64 // Change white brightness (max 255)

// the setup function runs once when you press reset or power the board
#define RGB_BUILTIN 48
void setup() {
// No need to initialize the RGB LED
}

// the loop function runs over and over again forever
void loop() {
#ifdef RGB_BUILTIN
digitalWrite(RGB_BUILTIN, HIGH);   // Turn the RGB LED white
delay(1000);
digitalWrite(RGB_BUILTIN, LOW);    // Turn the RGB LED off
delay(1000);

neopixelWrite(RGB_BUILTIN,RGB_BRIGHTNESS,0,0); // Red
delay(1000);
neopixelWrite(RGB_BUILTIN,0,RGB_BRIGHTNESS,0); // Green
delay(1000);
neopixelWrite(RGB_BUILTIN,0,0,RGB_BRIGHTNESS); // Blue
delay(1000);
neopixelWrite(RGB_BUILTIN,0,0,0); // Off / black
delay(1000);
#endif
}

ou peut etre celui ci en l’adaptant

/* Simple Arduino LED blink example sketch for built-in
RGB 5050 LED on the AI Thinker NodeMCU-ESP-S3-12K-Kit

This example is in the Public Domain
Cosismo IoT | Github: cosismo

*/

#define led_r_pin 5
#define led_g_pin 6
#define led_b_pin 7

void setup() {
Serial.begin(115200);
pinMode(led_r_pin, OUTPUT);
pinMode(led_g_pin, OUTPUT);
pinMode(led_b_pin, OUTPUT);
}

void loop() {
for (uint8_t i = 1; i < 8; i++) {
/* Get the rgb bits shifting the counter variable
to the right and then masking with AND 0x1 */
bool r = (i  >> 2) & 1;
bool g = (i  >> 1) & 1;
bool b = (i  >> 0) & 1; //shift 0, I know. Aesthetics and symmetry ;)
Serial.printf("i= %d | rgb bits = r:%d, g:%d, b:%d,\n", i, r, g, b);

digitalWrite(led_r_pin, r);
digitalWrite(led_g_pin, g);
digitalWrite(led_b_pin, b);
delay(1000);
digitalWrite(led_r_pin, LOW);
digitalWrite(led_g_pin, LOW);
digitalWrite(led_b_pin, LOW);
delay(1000);

}
}

avec platformio ou pioarduino

/*
Blink

Turns an LED on for one second, then off for one second, repeatedly.

Most Arduinos have an on-board LED you can control. On the UNO, MEGA and ZERO
it is attached to digital pin 13, on MKR1000 on pin 6. LED_BUILTIN is set to
the correct LED pin independent of which board is used.
If you want to know what pin the on-board LED is connected to on your Arduino
model, check the Technical Specs of your board at:


modified 8 May 2014
by Scott Fitzgerald
modified 2 Sep 2016
by Arturo Guadalupi
modified 8 Sep 2016
by Colby Newman

This example code is in the public domain.
*/
#include <Arduino.h>
#include <Adafruit_NeoPixel.h>

#define PIN 48
#define NUMPIXELS 1

Adafruit_NeoPixel pixels(NUMPIXELS, PIN, NEO_GRB + NEO_KHZ800);
#define DELAYVAL 500

void colorWipe(uint32_t color, int wait);
void theaterChase(uint32_t color, int wait);
void rainbow(int wait);
void theaterChaseRainbow(int wait);

// the setup function runs once when you press reset or power the board
void setup() {
pixels.begin();           // INITIALIZE NeoPixel strip object (REQUIRED)
pixels.show();            // Turn OFF all pixels ASAP
pixels.setBrightness(50); // Set BRIGHTNESS to about 1/5 (max = 255)
}

// the loop function runs over and over again forever
void loop() {
// Fill along the length of the strip in various colors...
colorWipe(pixels.Color(255,   0,   0), 50); // Red
colorWipe(pixels.Color(  0, 255,   0), 50); // Green
colorWipe(pixels.Color(  0,   0, 255), 50); // Blue

// Do a theater marquee effect in various colors...
theaterChase(pixels.Color(127, 127, 127), 50); // White, half brightness
theaterChase(pixels.Color(127,   0,   0), 50); // Red, half brightness
theaterChase(pixels.Color(  0,   0, 127), 50); // Blue, half brightness

rainbow(10);             // Flowing rainbow cycle along the whole strip
theaterChaseRainbow(50); // Rainbow-enhanced theaterChase variant

}

void colorWipe(uint32_t color, int wait) {
for(int i=0; i < pixels.numPixels(); i++) { // For each pixel in strip...
pixels.setPixelColor(i, color);         //  Set pixel's color (in RAM)
pixels.show();                          //  Update strip to match
delay(wait);                           //  Pause for a moment
}
}

// Theater-marquee-style chasing lights. Pass in a color (32-bit value,
// a la strip.Color(r,g,b) as mentioned above), and a delay time (in ms)
// between frames.
void theaterChase(uint32_t color, int wait) {
for(int a=0; a<10; a++) {  // Repeat 10 times...
for(int b=0; b<3; b++) { //  'b' counts from 0 to 2...
pixels.clear();         //   Set all pixels in RAM to 0 (off)
// 'c' counts up from 'b' to end of strip in steps of 3...
for(int c=b; c<pixels.numPixels(); c += 3) {
pixels.setPixelColor(c, color); // Set pixel 'c' to value 'color'
}
pixels.show(); // Update strip with new contents
delay(wait);  // Pause for a moment
}
}
}

// Rainbow cycle along whole strip. Pass delay time (in ms) between frames.
void rainbow(int wait) {
// Hue of first pixel runs 5 complete loops through the color wheel.
// Color wheel has a range of 65536 but it's OK if we roll over, so
// just count from 0 to 565536. Adding 256 to firstPixelHue each time
// means we'll make 565536/256 = 1280 passes through this loop:
for(long firstPixelHue = 0; firstPixelHue < 5*65536; firstPixelHue += 256) {
// strip.rainbow() can take a single argument (first pixel hue) or
// optionally a few extras: number of rainbow repetitions (default 1),
// saturation and value (brightness) (both 0-255, similar to the
// ColorHSV() function, default 255), and a true/false flag for whether
// to apply gamma correction to provide 'truer' colors (default true).
pixels.rainbow(firstPixelHue);
// Above line is equivalent to:
// strip.rainbow(firstPixelHue, 1, 255, 255, true);
pixels.show(); // Update strip with new contents
delay(wait);  // Pause for a moment
}
}

// Rainbow-enhanced theater marquee. Pass delay time (in ms) between frames.
void theaterChaseRainbow(int wait) {
int firstPixelHue = 0;     // First pixel starts at red (hue 0)
for(int a=0; a<30; a++) {  // Repeat 30 times...
for(int b=0; b<3; b++) { //  'b' counts from 0 to 2...
pixels.clear();         //   Set all pixels in RAM to 0 (off)
// 'c' counts up from 'b' to end of strip in increments of 3...
for(int c=b; c<pixels.numPixels(); c += 3) {
// hue of pixel 'c' is offset by an amount to make one full
// revolution of the color wheel (range 65536) along the length
// of the strip (strip.numPixels() steps):
int      hue   = firstPixelHue + c * 65536L / pixels.numPixels();
uint32_t color = pixels.gamma32(pixels.ColorHSV(hue)); // hue -> RGB
pixels.setPixelColor(c, color); // Set pixel 'c' to value 'color'
}
pixels.show();                // Update strip with new contents
delay(wait);                 // Pause for a moment
firstPixelHue += 65536 / 90; // One cycle of color wheel over 90 frames
}
}
}

Je pense que le problème vient de l’ordinateur car il ne trouve pas le chemin TTY !

Le cordon est bien un USB-c data car avec un uno il me trouve bien le chemin: /dev/ttyUSB0 Serial Port (USB)

EDIT: Aujourd’hui ça marche. /dev/ttyACM0 Serial Port (USB). Ma LED clignote toujours, et j'ai déclaré ma carte en ESP32S3 dev module. Donc je vais pouvoir la travailler…