Preface

ESP32-S3 is a micro control unit with integrated Wi-Fi launched by Espressif, which features strong properties and integrates rich peripherals. It can be designed and studied as an ordinary Single Chip Micyoco(SCM) chip, or connected to the Internet and used as an Internet of Things device.

ESP32-S3 can be developed using the Arduino platform, which will definitely make it easier for people who have learned arduino to master. Moreover, the code of ESP32-S3 is completely open-source, so beginners can quickly learn how to develop and design IOT smart household products including smart curtains, fans, lamps and clocks.

Generally, ESP32-S3 projects consist of code and circuits. Don’t worry even if you’ve never learned code and circuits, because we will gradually introduce the basic knowledge of C programming language and electronic circuits, from easy to difficult. Our products contain all the electronic components and modules needed to complete these projects. It’s especially suitable for beginners.

We divide each project into four parts, namely Component List, Component Knowledge, Circuit and Code. Component List helps you to prepare material for the experiment more quickly. Component Knowledge allows you to quickly understand new electronic modules or components, while Circuit helps you understand the operating principle of the circuit. And Code allows you to easily master the use of ESP32 and accessory kit. After finishing all the projects in this tutorial, you can also use these components and modules to make products such as smart household, smart cars and robots to transform your creative ideas into prototypes and new and innovative products.

In addition, if you have any difficulties or questions with this tutorial or toolkit, feel free to ask for our quick and free technical support through support@freenove.com

ESP32-S3 WROOM

ESP32-S3-WROOM-1 has launched a total of two antenna packages, PCB on-board antenna and IPEX antenna respectively. The PCB on-board antenna is an integrated antenna in the chip module itself, so it is convenient to carry and design. The IPEX antenna is a metal antenna derived from the integrated antenna of the chip module itself, which is used to enhance the signal of the module.

PCB on-board antenna

IPEX antenna

Preface00

Preface01

In this tutorial, the ESP32-S3 WROOM is designed based on the PCB on-board antenna-packaged ESP32-S3-WROOM-1 module.

Currently, we have two development board options available: the N8R8 (8MB Flash + 8MB PSRAM) version with a black PCB and the N16R8 (8MB Flash + 8MB PSRAM) version with a red PCB.The only difference between these two boards lies in their built-in Flash storage capacity, while all other features, functionalities, and peripheral circuits remain identical.

(Note: The N16R8 version is currently sold as a single-board kit only.)

ESP32-S3 WROOM N16R8

ESP32-S3 WROOM N8R8

Preface146

Preface02

The hardware interfaces of ESP32-S3 WROOM are distributed as follows:

../../../_images/Preface03.png

Compare the left and right images. We’ve boxed off the resources on the ESP32-S3 WROOM in different colors to facilitate your understanding of the ESP32-S3 WROOM.

Box color

Corresponding resources introduction

Preface04

GPIO pin

Preface05

LED indicator

Preface06

Camera interface

Preface07

Reset button, Boot mode selection button

Preface08

USB port

For more information, please visit: https://www.espressif.com.cn/sites/default/files/documentation/esp32-s3-wroom-1_wroom-1u_datasheet_en.pdf.

Extension board of the ESP32-S3 WROOM

And we also design an extension board, so that you can use the ESP32-S3 more easily in accordance with the circuit diagram provided. The followings are their photos.

The hardware interfaces of ESP32-S3 WROOM are distributed as follows:

../../../_images/Preface09.png

We’ve boxed off the resources on the ESP32-S3 WROOM in different colors to facilitate your understanding of the ESP32-S3 WROOM.

Box color

Corresponding resources introduction

Preface10

GPIO pin

Preface11

LED indicator

Preface12

Camera interface

Preface13

Reset button, Boot mode selection button

Preface14

USB port

In ESP32-S3, GPIO is an interface to control peripheral circuit.

In the following projects, we only use USB cable to power ESP32-S3 WROOM by default.

In the whole tutorial, we don’t use T extension to power ESP32-S3 WROOM. So 5V and 3.3V (including EXT 3.3V) on the extension board are provided by ESP32-S3 WROOM.

We can also use DC jack of extension board to power ESP32-S3 WROOM. In this way, 5v and EXT 3.3v on extension board are provided by external power resource.

CH343 (Importance)

ESP32-S3 WROOM uses CH343 to download codes. So before using it, we need to install CH343 driver in our computers.

Windows

Check whether CH343 has been installed

  1. Connect your computer and ESP32-S3 WROOM with a USB cable.

../../../_images/Preface15.png
  1. Turn to the main interface of your computer, select “This PC” and right-click to select “Manage”.

../../../_images/Preface16.png
  1. Click “Device Manager”. If your computer has installed CH343, you can see”USB-Enhances-SERIAL CH343 (COMx)”. And you can click here to move to the next step.

../../../_images/Preface17.png

Installing CH343

  1. First, download CH343 driver, click http://www.wch-ic.com/search?t=all&q=ch343 to download the appropriate one based on your operating system.

../../../_images/Preface18.png

If you would not like to download the installation package, you can open “ Freenove_ESP32_S3_WROOM_Board/CH343 “, we have prepared the installation package.

../../../_images/Preface19.png
  1. Open the folder “ Freenove_ESP32_S3_WROOM_Board/CH343/Windows/ “

../../../_images/Preface20.png
  1. Double click “CH343SER.EXE”.

../../../_images/Preface21.png
  1. Click “INSTALL” and wait for the installation to complete.

../../../_images/Preface22.png
  1. Install successfully. Close all interfaces.

../../../_images/Preface23.png
  1. When ESP32-S3 WROOM is connected to computer, select “This PC”, right-click to select “Manage” and click “Device Manager” in the newly pop-up dialog box, and you can see the following interface.

../../../_images/Preface24.png
  1. So far, CH343 has been installed successfully. Close all dialog boxes.

MAC

First, download CH343 driver, click http://www.wch-ic.com/search?t=all&q=ch343 to download the appropriate one based on your operating system.

../../../_images/Preface25.png

If you would not like to download the installation package, you can open “ Freenove_ESP32_S3_WROOM_Board/CH343 “, we have prepared the installation package.

Second, open the folder “ Freenove_ESP32_S3_WROOM_Board/CH343/MAC/ “

../../../_images/Preface26.png

Third, click Continue.

../../../_images/Preface27.png

Fourth, click Install.

../../../_images/Preface28.png

Then, waiting Finsh.

../../../_images/Preface29.png

Finally, restart your PC.

../../../_images/Preface30.png

If you still haven’t installed the CH340 by following the steps above, you can view readme.pdf to install it.

../../../_images/Preface31.png

Programming Software

Arduino Software (IDE) is used to write and upload the code for Arduino Board.

First, install Arduino Software (IDE): visit https://www.arduino.cc/en/software/

../../../_images/Preface031.png

Select and download corresponding installer based on your operating system. If you are a Windows user, please select the “Windows” to download and install the driver correctly.

../../../_images/Preface041.png

After the downloading completes, run the installer. For Windows users, there may pop up an installation dialog box of driver during the installation process. When it is popped up, please allow the installation.

After installation is completed, an shortcut will be generated in the desktop.

../../../_images/Preface051.png

Run it. The interface of the software is as follows:

../../../_images/Preface061.png

Programs written with Arduino IDE are called sketches. These sketches are written in a text editor and are saved with the file extension.ino. The editor has features for cutting/pasting and for searching/replacing text. The console displays text output by the Arduino IDE, including complete error messages and other information. The bottom right-hand corner of the window displays the configured board and serial port. The toolbar buttons allow you to verify and upload programs, open the serial monitor, and access the serial plotter.

Arduino07

Verify

Checks your code for errors compiling it.

Arduino08

Upload

Compiles your code and uploads it to the configured board.

Arduino09

Debug

Troubleshoot code errors and monitor program running status.

Arduino10

Serial Plotter

Real-time plotting of serial port data charts.

Arduino11

Serial Monitor

Used for debugging and communication between devices and computers.

Environment Configuration

First, open the software platform arduino, and then click File in Menus and select Preferences.

../../../_images/Preface42.png

Second, click on the symbol behind “Additional Boards Manager URLs”

../../../_images/Preface43.png

Third, fill in https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json in the new window, click OK, and click OK on the Preferences window again.

../../../_images/Preface44.png

Fourth, click “Boards Manager”. Enter “esp32” in Boards manager and select 2.0.5, Then click “INSTALL”.

../../../_images/Preface45.png

Arduinowill download these files automaticly. Wait for the installation to complete.

../../../_images/Preface46.png

When finishing installation, click Tools in the Menus again and select Board: “Arduino Uno”, and then you can see information of ESP32. click “ESP32-S3 Dev Module” so that the ESP32-S3 programming development environment is configured.

../../../_images/Preface47.png

Notes for GPIO

Strapping Pin

There are four Strapping pins for ESP32-S3: GPIO0、GPIO45、GPIO46、GPIO3。

With the release of the chip’s system reset (power-on reset, RTC watchdog reset, undervoltage reset), the strapping pins sample the level and store it in the latch as “0” or “1” “, and keep it until the chip is powered off or turned off.

Each Strapping pin is connecting to internal pull-up/pull-down. Connecting to high-impedance external circuit or without an external connection, a strapping pin’s default value of input level will be determined by internal weak pull-up/pull-down. To change the value of the Strapping, users can apply an external pull-down/pull-up resistor, or use the GPIO of the host MCU to control the level of the strapping pin when the ESP32-S3’s power on reset is released.

When releasing the reset, the strapping pin has the same function as a normal pin.

The followings are default configurations of these four strapping pins at power-on and their functions under the corresponding configuration.

../../../_images/Preface48.png

If you have any difficulties or questions with this tutorial or toolkit, feel free to ask for our quick and free technical support through support@freenove.com at any time.

or check: https://www.espressif.com/sites/default/files/documentation/esp32-s3-wroom-1_wroom-1u_datasheet_en.pdf

PSRAM Pin

The module on the ESP32-S3-WROOM board uses the ESP32-S3R8 chip with 8MB of external Flash. When we use the OPI PSRAM, please note that the GPIO35-GPIO37 on the ESP32-S3-WROOM board will not be available for other purposes. When OPI PSRAM is not used, GPIO35-GPIO37 on the board can be used as normal GPIO.

../../../_images/Preface49.png

SDcard Pin

An SDcard slot is integrated on the back of the ESP32-S3-WROOM board. We can use GPIO38-GPIO40 of ESP32-S3-WROOM to drive SD card.

The SDcard of ESP32-S3-WROOM uses SDMMC, a 1-bit bus driving method, which has been integrated in the Arduino IDE, and we can call the “SD_MMC.h” library to drive it. For details, see the SDcard chapter in this tutorial.

USB Pin

In Micropython, GPIO19 and GPIO20 are used for the USB function of ESP32S3, so they cannot be used as other functions!

Cam Pin

../../../_images/Preface50.png

CAM_Pin

GPIO_pin

SIOD

GPIO4

SIOC

GPIO5

CSI_VYSNC

GPIO6

CSI_HREF

GPIO7

CSI_Y9

GPIO16

XCLK

GPIO15

CSI_Y8

GPIO17

CSI_Y7

GPIO18

CSI_PCLK

GPIO13

CSI_Y6

GPIO12

CSI_Y2

GPIO11

CSI_Y5

GPIO10

CSI_Y3

GPIO9

CSI_Y4

GPIO8

If you have any questions about the information of GPIO, you can click here to go back to ESP32-S3 WROOM to view specific information about GPIO.

or check: https://www.espressif.com/sites/default/files/documentation/esp32-s3_datasheet_en.pdf.