Difference between revisions of "XIAO-ESP32S3"

From
Jump to: navigation, search
(Support)
(Liens externes)
 
(37 intermediate revisions by 4 users not shown)
Line 7: Line 7:
 
[[File:XIAO-ESP32S3 2.PNG|250px]]
 
[[File:XIAO-ESP32S3 2.PNG|250px]]
  
[[File:XIAO-ESP32S3 Front.PNG|400px]]<br>
+
[[File:XIAO-ESP32S3 Front.PNG|450px]]<br>
 
[[File:XIAO-ESP32S3 Onboard.PNG|400px]]
 
[[File:XIAO-ESP32S3 Onboard.PNG|400px]]
  
  
[[File:Arduino-IDE XIAO-ESP32S3 1.PNG|500px]]<br><br>
+
[[File:Arduino-IDE XIAO-ESP32S3 1.PNG|500px]]<br>
  
[[File:Arduino-IDE XIAO-ESP32S3 2.PNG|500px]]<br><br>
+
https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json<br><br>
  
[[File:Arduino-IDE XIAO-ESP32S3 3.PNG|500px]]<br><br>
+
[[File:Arduino-IDE XIAO-ESP32S3 2.PNG|500px]]<br>
 +
 
 +
Navigate to Tools > Board > Boards Manager..., type the keyword <b>esp32</b> in the search box, select the latest version of esp32, and install it.<br>
 +
 
 +
[[File:Arduino-IDE XIAO-ESP32S3 3.PNG|500px]]<br>
 +
 
 +
search for xiao in the development board on the left. select <b>XIAO_ESP32S3</b><br>
  
 
[[File:Arduino-IDE XIAO-ESP32S3 4.PNG|500px]]<br><br>
 
[[File:Arduino-IDE XIAO-ESP32S3 4.PNG|500px]]<br><br>
Line 27: Line 33:
 
[https://wiki.seeedstudio.com/xiao_esp32s3_getting_started https://wiki.seeedstudio.com/xiao_esp32s3_getting_started] <font color=red>wiki</font><br>
 
[https://wiki.seeedstudio.com/xiao_esp32s3_getting_started https://wiki.seeedstudio.com/xiao_esp32s3_getting_started] <font color=red>wiki</font><br>
  
=== code ===
+
 
 +
https://mjrovai.github.io/XIAO_Big_Power_Small_Board-ebook/
 +
 
 +
https://mjrovai.github.io/XIAO_Big_Power_Small_Board-ebook/XIAO%E2%80%93Big-Power,-Small-Board.pdf
 +
 
 +
XIAO: Big Power, Small Board | Mastering Arduino and TinyML<br>
 +
 
 +
Author : Lei Feng, Marcelo Rovai | Published : January 10, 2024<br>
 +
 
 +
=== Hello World! [Code] ===
 +
 
 +
----
 +
<br>
 +
<i>Bibliothèque</i>  <b>u8g2</b> https://wiki.myows.top/index.php?title=U8g2_for_Seeeduino_boards#Setup
 +
<br>U8x8lib
  
 
[[File:Grove Base for XIAO 1.PNG|200px]]
 
[[File:Grove Base for XIAO 1.PNG|200px]]
[[File:XIAO-ESP32S3 1.PNG|100px]]
+
[[File:XIAO-ESP32S3 1.PNG|125px]]
[[File:OLED-Display-0-96-SSD1315.png|150px]]
+
[[File:OLED-Display-0-96-SSD1315.png|175px]]
  
 
Grove Base for XIAO<br>
 
Grove Base for XIAO<br>
XIAO-ESP32S3<br>
+
XIAO-ESP32S3 <br>
OLED-Display-0-96-SSD1315<br>
+
OLED-Display-0-96-SSD1315 - Port <b>i2c</b> &#x2705;<br>
  
 
<b>Hello World!</b>
 
<b>Hello World!</b>
Line 55: Line 75:
 
   u8x8.setCursor(0, 0);
 
   u8x8.setCursor(0, 0);
 
   u8x8.print("Hello World!");
 
   u8x8.print("Hello World!");
 +
}
 +
</pre>
 +
 +
----
 +
 +
=== Internet_Clock [Code] ===
 +
 +
[[File:Grove Base for XIAO 1.PNG|200px]]
 +
[[File:XIAO-ESP32S3 1.PNG|125px]]
 +
[[File:OLED Display 96x96 recto.jpg|150px]]
 +
 +
Grove Base for XIAO<br>
 +
XIAO-ESP32S3 &#x1F4F6;<br>
 +
OLED Display 1.12 - Port <b>I2c</b> <br>
 +
 +
[[Internet_Clock-XIAO-OLED_Display_1.12| Internet_Clock-XIAO-OLED_Display_1.12]]<br>
 +
 +
sur l'écran série on a l'heure, mais que du texte sur l'OLED
 +
 +
<pre>
 +
#include <NTPClient.h>
 +
#include <Arduino.h>
 +
#include <U8g2lib.h>
 +
#include <SPI.h>
 +
#include <Wire.h>
 +
 +
// change next line to use with another board/shield
 +
// #include <ESP8266WiFi.h>
 +
// #include <WiFi101.h> // for WiFi 101 shield or MKR1000
 +
// #include <WiFi.h> // for WiFi shield
 +
 +
#include <WiFi.h>
 +
#include <WiFiUdp.h>
 +
 +
const char *ssid    = "<SSID>";
 +
const char *password = "<PASSWORD>";
 +
 +
WiFiUDP ntpUDP;
 +
 +
// You can specify the time server pool and the offset (in seconds, can be
 +
// changed later with setTimeOffset() ). Additionally you can specify the
 +
// update interval (in milliseconds, can be changed using setUpdateInterval() ).
 +
 +
NTPClient timeClient(ntpUDP, "europe.pool.ntp.org", 3600, 60000);
 +
 +
// Initialize OLED display
 +
U8G2_SH1107_SEEED_128X128_1_SW_I2C u8g2(U8G2_R0, /* clock=*/ SCL, /* data=*/ SDA, /* reset=*/ U8X8_PIN_NONE);
 +
 +
void setup(){
 +
  Serial.begin(115200);
 +
  WiFi.begin(ssid, password);
 +
  while ( WiFi.status() != WL_CONNECTED ) {
 +
    delay ( 500 );
 +
    Serial.print ( "." );
 +
  }
 +
  timeClient.begin();
 +
  u8g2.begin();
 +
}
 +
void loop() {
 +
  timeClient.update();
 +
  Serial.println(timeClient.getFormattedTime());
 +
 +
  u8g2.firstPage();
 +
  do {
 +
    u8g2.setFont(u8g2_font_ncenB18_tr);
 +
 +
    u8g2.setCursor(0, 64);
 +
    u8g2.print(timeClient.getFormattedTime());
 +
 +
  } while ( u8g2.nextPage() );
 +
 +
 +
// Send the buffer to the display
 +
  delay(1000);
 
}
 
}
 
</pre>
 
</pre>

Latest revision as of 17:56, 14 December 2025

Support[edit]

XIAO-ESP32S3


XIAO-ESP32S3 1.PNG XIAO-ESP32S3 2.PNG

XIAO-ESP32S3 Front.PNG
XIAO-ESP32S3 Onboard.PNG


Arduino-IDE XIAO-ESP32S3 1.PNG

https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json

Arduino-IDE XIAO-ESP32S3 2.PNG

Navigate to Tools > Board > Boards Manager..., type the keyword esp32 in the search box, select the latest version of esp32, and install it.

Arduino-IDE XIAO-ESP32S3 3.PNG

search for xiao in the development board on the left. select XIAO_ESP32S3

Arduino-IDE XIAO-ESP32S3 4.PNG

Arduino-IDE XIAO-ESP32S3 5.PNG


Liens externes[edit]

https://www.seeedstudio.com/XIAO-ESP32S3-p-5627.html shop

https://wiki.seeedstudio.com/xiao_esp32s3_getting_started wiki


https://mjrovai.github.io/XIAO_Big_Power_Small_Board-ebook/

https://mjrovai.github.io/XIAO_Big_Power_Small_Board-ebook/XIAO%E2%80%93Big-Power,-Small-Board.pdf

XIAO: Big Power, Small Board | Mastering Arduino and TinyML

Author : Lei Feng, Marcelo Rovai | Published : January 10, 2024

Hello World! [Code][edit]



Bibliothèque u8g2 https://wiki.myows.top/index.php?title=U8g2_for_Seeeduino_boards#Setup
U8x8lib

Grove Base for XIAO 1.PNG XIAO-ESP32S3 1.PNG OLED-Display-0-96-SSD1315.png

Grove Base for XIAO
XIAO-ESP32S3
OLED-Display-0-96-SSD1315 - Port i2c

Hello World!

#include <Arduino.h>
#include <U8x8lib.h>
#include <Wire.h>

U8X8_SSD1306_128X64_NONAME_HW_I2C u8x8(/* clock=*/ SCL, /* data=*/ SDA, /* reset=*/ U8X8_PIN_NONE);   // OLEDs without Reset of the Display

void setup(void) {
  u8x8.begin();
  u8x8.setFlipMode(1);   // set number from 1 to 3, the screen word will rotary 180
}

void loop(void) {
  u8x8.setFont(u8x8_font_chroma48medium8_r);
  u8x8.setCursor(0, 0);
  u8x8.print("Hello World!");
}

Internet_Clock [Code][edit]

Grove Base for XIAO 1.PNG XIAO-ESP32S3 1.PNG OLED Display 96x96 recto.jpg

Grove Base for XIAO
XIAO-ESP32S3 📶
OLED Display 1.12 - Port I2c

Internet_Clock-XIAO-OLED_Display_1.12

sur l'écran série on a l'heure, mais que du texte sur l'OLED

#include <NTPClient.h>
#include <Arduino.h>
#include <U8g2lib.h>
#include <SPI.h>
#include <Wire.h>

// change next line to use with another board/shield
// #include <ESP8266WiFi.h>
// #include <WiFi101.h> // for WiFi 101 shield or MKR1000
// #include <WiFi.h> // for WiFi shield

#include <WiFi.h>
#include <WiFiUdp.h>

const char *ssid     = "<SSID>";
const char *password = "<PASSWORD>";

WiFiUDP ntpUDP;

// You can specify the time server pool and the offset (in seconds, can be
// changed later with setTimeOffset() ). Additionally you can specify the
// update interval (in milliseconds, can be changed using setUpdateInterval() ).

NTPClient timeClient(ntpUDP, "europe.pool.ntp.org", 3600, 60000);

// Initialize OLED display 
U8G2_SH1107_SEEED_128X128_1_SW_I2C u8g2(U8G2_R0, /* clock=*/ SCL, /* data=*/ SDA, /* reset=*/ U8X8_PIN_NONE);

void setup(){
  Serial.begin(115200);
  WiFi.begin(ssid, password);
  while ( WiFi.status() != WL_CONNECTED ) {
    delay ( 500 );
    Serial.print ( "." );
  }
  timeClient.begin();
  u8g2.begin();
}
void loop() {
  timeClient.update();
  Serial.println(timeClient.getFormattedTime());

  u8g2.firstPage();
  do {
    u8g2.setFont(u8g2_font_ncenB18_tr);

    u8g2.setCursor(0, 64);
    u8g2.print(timeClient.getFormattedTime());

  } while ( u8g2.nextPage() );


// Send the buffer to the display
  delay(1000);
}