ESP32-S3-Tiny

From Waveshare Wiki
Jump to: navigation, search
ESP32-S3-Tiny
ESP32-S3-Tiny.jpg

ESP32-S3
USB Type-C
{{{name2}}}

{{{name3}}}

{{{name4}}}

{{{name5}}}

{{{name6}}}

Overview

Introduction

The ESP32-S3-Tiny is a compact microcontroller development board equipped with various digital interfaces. The product adopts a split design, allowing the separation of USB and button circuits, reducing the overall thickness and volume of the PCB board. Eliciting 34 GPIOs in a very small plate makes it easier for users to integrate into projects. The split design, compact size, and very thin thickness make the board ideal for projects requiring a small size.

On the hardware side, it employs the ESP32-S3 chip, which integrates a high-performance Xtensa® 32-bit LX7 dual-core processor, ultra-low-power coprocessor, Wi-Fi baseband, Bluetooth baseband, RF module, and peripherals. It is compatible with a variety of peripheral devices, making it more convenient to use.

On the software side, developers have the option to use either the ESP-IDF development environment or develop on the Arduino IDE, making it easy to get started quickly and apply it to products.

Features

  • Adopts ESP32-S3FH4R2 chip with Xtensa 32-bit LX7 dual-core processor, up to 240MHz main frequency.
  • Built-in 512KB of SRAM, 384KB ROM, 16 KB RTC SRAM, 2MB PSRAM and 4MB Flash memory.
  • Integrated 2.4GHz Wi-Fi and low energy Bluetooth(Bluetooth LE) dual-mode wireless communication, with superior RF performance.
  • Uses USB Type-C interface, no need to tangle the front and rear connectors.
  • 34 × multi-function GPIO pins.
  • Rich peripheral interfaces, achieving various functions flexibly.
  • Supports multiple low-power operating states, adjustable balance between communication rate and power consumption to meet the power requirements of various application scenarios.

What's Onboard

ESP32-S3-Tiny-onboard.png

Pinout

ESP32-S3-Tiny-pinout.jpg

Dimensions

ESP32-S3-Tiny-details-1.jpg

Cable Connection

  • Please read this section and the precautions before connection, otherwise the device may be damaged or short-circuited!

  1. Open the flip cover of the cable connector.
    Ting-connect-00.jpg
  2. Please make sure to install the cable in the center.
    Ting-connect-01.jpg
  3. Close the flip cover. Normally, the flip cover should be closed completely.
    Ting-connect-02.jpg
  4. If the cable is not properly installed, it may prevent the flip cover from closing correctly. Please adjust the position of the cable and try to close the flip cover again.
    Ting-connect-WR.jpg

Note

  • Please do not unplug the cable with electricity, otherwise it may lead to a short circuit.
  • When installing the cable, it is important to pay attention to its proper connection in the center and ensure that it is inserted fully into the socket. Incorrect installation may result in connection issues or even short circuits.

Working with ESP-IDF

The following development system is Windows by default, and it is recommended to use the VSCode plug-in for development.

Develop with VSCode

Install VSCode

1. Open the download page of the official VSCode website, and select the corresponding system and system bit to download.
ESP32-S3-Pico 05.jpg
2. After running the installation package, the rest can be installed by default, but here for the subsequent experience, it is recommended to check boxes 1, 2, and 3.
  • After the first two items are enabled, you can open VSCode directly by right-clicking files or directories, which can improve the subsequent user experience.
  • After the third item is enabled, you can select VSCode directly when you choose how to open it.
ESP32-S3-Pico 06.jpg

Install Espressif IDF Plug-in

  • Note: Currently the latest version of the plugin is V1.6.4, users can choose the same version as us for a consistent experience!
  • Open VSCode, use Shift+Ctrl+X to enter the plug-in manager.

ESP32-C6-DEV-KIT-N8-03.png

  • In the search bar, enter Espressif IDF to select the corresponding plug-in and click "Install".

ESP32-C6-DEV-KIT-N8-04.png
ESP32-C6-DEV-KIT-N8-05.png

  • Press F1 to input:
esp-idf: configure esp-idf extension

ESP32-C6-DEV-KIT-N8-06.png

  • Select express (this guide is for users who install it for the first time).

ESP32-C6-DEV-KIT-N8-07.png

  • Select download sever.

ESP32-C6-DEV-KIT-N8-08.png

  • Select the version of ESP-IDF you want to use now, we choose the latest V5.1.1.

ESP32-C6-DEV-KIT-N8-09.png

  • The following two are the installation paths respectively for the ESP-IDF container directory and the ESP-IDF Tools directory.

ESP32-C6-DEV-KIT-N8-10.png

  • Note: If you have installed ESP-IDF before, or failed to do so, please be sure to delete the file completely or create a new path without Chinese.
  • After configuring, click "Install" to download:

ESP32-C6-DEV-KIT-N8-19.png

  • Enter the download interface, and then it will automatically install the corresponding tools and environment, just wait for a second.

ESP32-C6-DEV-KIT-N8-11.png

  • After the installation is complete, you will enter the following interface, indicating that the installation is finished.

ESP32-C6-DEV-KIT-N8-12.png

Official Demo Usage GUIDE

Create Demo

  • Press F1 to enter:
esp-idf:show examples projects

ESP32-C6-DEV-KIT-N8-13.png

  • Select the corresponding IDF version:

ESP32-C6-DEV-KIT-N8-14.png

  • Take the Hello World demo as an example:
    • ①Select the corresponding demo.
    • ②Its readme will state what chip the demo applies to (how the demo is used and the file structure is described below, omitted here).
    • ③Click to create the demo.

ESP32-C6-DEV-KIT-N8-15.png
Select the path to place the demo, no folder with the same name as the demo is required.
ESP32-C6-DEV-KIT-N8-16.png

Modify COM Port

  • The corresponding COM ports are shown here, click to modify them.
  • Please select the COM ports according to your device. (You can view it from the device manager.)
  • In case of a download failure, please press the reset button for more than 1 second or enter download mode, wait for the PC to recognize the device again before downloading once more.

SP32-S3 TO Program Add 1.png

  • Select the project or demo to use:

ESP32-C6-DEV-KIT-N8-18.png

  • Then we finish the modification of the COM ports.

Modify the Driver Object

  • The driver object is displayed here, and you can modify it by clicking on it.
  • Select the project or demo to use.

ESP32-C6-DEV-KIT-N8-20.png

  • Wait for a minute after clicking.

ESP32-C6-DEV-KIT-N8-21.png

  • Select the object we need to drive, which is the ESP32S3 chip.

ESP32-S3-DEV-KIT-22.png

  • Choose the path to openocd, it doesn't affect us here, so let's just choose one at random.

ESP32-S3-DEV-KIT-23.png

The Rest of the Status Bar

  • ①SDK configuration editor, supports modifying most functions of ESP-IDF.
  • ②All cleanup, and clear all compiled files.
  • ③Compile.
  • ④Current download mode, default is UART.
  • ⑤Burn the current firmware, please do it after compiling.
  • ⑥Open the serial port monitor to view the serial port information.
  • ⑦All-in-one button, compile, burn, open the serial monitor (most commonly used for debugging).
ESP32-C6-DEV-KIT-N8-24.png

Compile, Program, Serial Port Monitoring

  • Click on the all-in-one button we described before to compile, program, and open the serial port monitor.
ESP32-C6-DEV-KIT-N8-25.png
  • It may take a long time to compile especially for the first time.
ESP32-C6-DEV-KIT-N8-26.png
  • During this process, the ESP-IDF may take up a lot of CPU resources, so it may cause the system to lag.
  • If it is the first time to burn the program for a new project, you will need to select the download method, and select UART.
ESP32-C6-DEV-KIT-N8-27.png
  • This can also be changed later in the Download Methods section (click on it to bring up the options).
ESP32-C6-DEV-KIT-N8-28.png
  • As it comes with the onboard automatic download circuit, there is no need for manual operation to download automatically.
ESP32-C6-DEV-KIT-N8-29.png
  • After successful download, automatically enter the serial monitor, you can see the chip output the corresponding information and be prompted to restart after 10S.
ESP32-C6-DEV-KIT-N8-30.png

Erase Device Flash

  • Unpack the software resource package (Flash debugging software).
  • Open flash_download_tool_3.9.5.exe software, select ESP32-S3 and USB.

ESP32-S3-Relay-6CH TO MicroPython Firmware 1.png

  • Select the UART port number, and click Start (not select any bin file).

ESP32-S3-DEV-KIT-N8-84.png

  • After programming, click on "ERASE".

ESP32-S3-DEV-KIT-N8-85.png

  • Waiting for Erase to Finish.

ESP32-S3-DEV-KIT-N8-86.png

Working with Arduino

Environment Set-up

ESP32-C6-DEV-KIT-N8-Arduino01.png

  • Enter Arduino IDE after installation.

ESP32-C6-DEV-KIT-N8-Arduino02.png

  • Go to the board manager, search for esp32, select the latest version of esp32 by Espressif Systems at the bottom, and click install (if it doesn't install correctly, you can try using a phone hotspot).

ESP32-S3-DEV-KIT-N8-Arduino07.png

  • Restart the Arduino IDE after installation, and then you can use it.

ESP32-S3-DEV-KIT-N8-Arduino09.png

If the installation fails

  • Failed to install 2.0.11 version:

ESP32-S3-DEV-KIT-N8-install.png

ESP32-S3-DEV-KIT-N8-install02.png

  • Click on the path "c:\Users\Waveshare\AppData\Local\Arduino15\staging\packages" from resource Manager (Waveshare is the user name of the computer, and you need to turn on Show Hidden Files).

ESP32-S3-DEV-KIT-N8-install03.png

  • Unzip the downloaded files to the packages file folder:

ESP32-S3-DEV-KIT-N8-install04.png

  • Install it again:

ESP32-S3-DEV-KIT-N8-Arduino07.png

  • Restart the Arduino IDE after installation and you're ready to go!

ESP32-S3-DEV-KIT-N8-Arduino09.png

Run Example

Create Example

  • Above, change the project folder to c:\Users\Waveshare\AppData\Local\Arduino15\packages (Waveshare is the computer username).

ESP32-S3-Tiny-09.png
ESP32-S3-Tiny-10.png

  • Restart Arduino IDE.
  • Demos can be created from the examples in the Project folder under File.

ESP32-C6-DEV-KIT-N8-Arduino10.png

  • The following is the RGB flashing example (File -> Sketchbook -> esp32 -> hardware -> esp32 -> 2.0.11 -> libraries -> ESP32 -> examples -> BlinkRGB under GPIO).

ESP32-S3-DEV-KIT-N8-Arduino11.png

  • Please replace the program with the following demo:
#define PIN_NEOPIXEL 14
void setup() {
  // No need to initialize the RGB LED
}
// the loop function runs over and over again forever
void loop() {
  neopixelWrite(PIN_NEOPIXEL, RGB_BRIGHTNESS, 0, 0);  // Red
  delay(1000);
  neopixelWrite(PIN_NEOPIXEL, 0, RGB_BRIGHTNESS, 0);  // Green
  delay(1000);
  neopixelWrite(PIN_NEOPIXEL, 0, 0, RGB_BRIGHTNESS);  // Blue
  delay(1000);
  neopixelWrite(PIN_NEOPIXEL, 0, 0, 0);  // Off / black
  delay(1000);
}

Upload Demo

  • Note that the pins need to be modified to the corresponding RGB pins so that it can work normally!
  • Select the development board and port.

ESP32-C6-DEV-KIT-N8-Arduino12.png

  • Search esp32s3, select ESP32S3 Dev Module, and the ports to download.

ESP32-S3-DEV-KIT-N8-Arduino13.png

  • After selecting, click to upload and Arduino IDE will start to compile and program the demo.

ESP32-S3-DEV-KIT-N8-Arduino14.png

  • After uploading, you can see the effect on the development board.

ESP32-S3-DEV-KIT-N8-Arduino15.png

Use in Micropython

Flash Firmware Demo

  • Download and unzip the MicroPython firmware: (Flash Tool and Firmware).
  • Connect the device to the PC.
  • Open the flash_download_tool_3.9.4.exe software, select ESP32-S3 and USB.

ESP32-S3-Relay-6CH TO MicroPython Firmware 1.png

  • Select the corresponding COM port, as we have configured it well, just click on "Start" to download. (If the COM port is not identified, please press and hold the BOOT key, press the RESET key, and then release the RESET key first.)

ESP32-S3-Relay-6CH TO MicroPython Firmware 2.png

  • If you encounter downloading delays or the download doesn't start, you can enter Download mode, press and hold the BOOT key while pressing the RESET key, and then release the RESET key first. Try to download it again, and wait for the flashing process to complete.

ESP32-S3-Relay-6CH TO MicroPython Firmware 3.png

Preparation

Thonny

  • Install Thonny (Thonny IDE)
  • Open Thonny, click on "Python x.x.x" at the bottom right, and select "Configure interpreter".

ESP32-S3-Relay-6CH TO MicroPython Environment 1.png

  • In the popup window, select "Interpreter" -> Interpreter select "MicroPython (ESP32)".

ESP32-S3-Relay-6CH TO MicroPython Environment 2.png

  • Save the setting.

ESP32-S3-Relay-6CH TO MicroPython Environment 3.png

  • Click to stop, Shell window appears "MicroPython v1.22.1 on 2024-01-05;Generic ESP32S3 module with ESP32S3 Type "help()" for more information.", which means the connection is successful.

ESP32-S3-Relay-6CH TO MicroPython Environment 4.png


Resource

Software

Compile

UART

Flash

Bluetooth

Schematic

ESP32-S3 Datasheet

Official ESP32 Documentation

FAQ

 Answer:

Please select the driver object again and compile it again.
ESP32-C6-DEV-KIT-N8-20.png
ESP32-S3-DEV-KIT-22.png

{{{5}}}


 Answer:

Method 1: Press the reset button for more than 1 second, wait for the PC to recognize the device again, and then proceed with the download.
Method 2: You can long-press the BOOT button, simultaneously press the RESET button, then release the RESET button, and finally release the BOOT button. This will put the module into download mode and can resolve most download issues.

{{{5}}}


 Answer:

In VSCode, click the shortcut F1, and search for Espressif IDF, you will find that it is designated as an untrusted extension, set it as trusted.

{{{5}}}


 Answer:

Please select the COM port and driver object again after switching ESP, then compile and burn.

{{{5}}}


 Answer:

Check whether the power supply voltage for the USB port is less than 5V, in general, if it is 4.9V or more, the module's two USB ports can be used normally. If it is lower than 4.9V, the power supply may be insufficient and the USB port may disconnect. In this case, you should replace it with a USB port with sufficient voltage.

{{{5}}}


 Answer:

Close OpenOCD below and reopen OpenOCD.

{{{5}}}


Support



Technical Support

If you need technical support or have any feedback/review, please click the Submit Now button to submit a ticket, Our support team will check and reply to you within 1 to 2 working days. Please be patient as we make every effort to help you to resolve the issue.
Working Time: 9 AM - 6 PM GMT+8 (Monday to Friday)