How to setup the development environment for ESP32-S2-Kaluga-1 DK Board

This blog is to describe how to setup the development environment for ESP32-S2-Kaluga DK Board.

The official documentation of the ESP32 S2 is placed at

https://docs.espressif.com/projects/esp-idf/en/latest/esp32s2/hw-reference/esp32s2/user-guide-esp32-s2-kaluga-1-kit.html

The ESP32-S2-Kaluga-1 kit is a development kit by Espressif that is mainly created to:

  • Demonstrate the ESP32-S2’s human-computer interaction functionalities
  • Provide the users with the tools for development of human-computer interaction applications based on the ESP32-S2

The ESP32-S2-Kaluga-1 kit consists of the following boards:

Overview

The ESP32-S2-Kaluga-1 main board is the heart of the kit. It integrates the ESP32-S2-WROVER module and all the connectors for extension boards. This board is the key tool in prototyping human-computer interaction interfaces.

The ESP32-S2-Kaluga-1 board has connectors for:

  • Boards with the Extension Header (ESP-LyraT-8311A, ESP-LyraP-LCD32)
  • Camera board (ESP-LyraP-CAM)
  • Touch panel (ESP-LyraP-TouchA)
  • LCD displays (no official extension boards yet)
  • I2C devices (no official extension boards yet)
ESP32-S2-Kaluga-1
ESP32-S2-Kaluga-1

All the four extension boards are specially desgined to support the following features:

  • Touch panel control
    • 14 touch sensors, three of which support distance sensing (proximity mode)
    • Supports acrylic panels up to 5 mm
    • Wet hand operation
    • Water rejection, ESP32-S2 can be configured to disable all touchpads automatically if multiple pads are simultaneously covered with water and to re-enable touchpads if the water is removed
  • Audio playback
    • Connect speakers to play audio
    • Use together with the Touch panel to control audio playback and adjust volume
  • LCD display
    • LCD interface (8-bit parallel RGB, 8080, and 6800 interface)
  • Camera image acquisition
    • Supports OV2640 and OV3660 camera modules
    • 8-bit DVP image sensor interface (ESP32-S2 also supports 16-bit DVP image sensors, you can design it yourself)
    • Clock frequency up to 40 MHz
    • Optimized DMA transmission bandwidth for easier transmission of high-resolution images

Description of Components

ESP32-S2-Kaluga-1 - front

The description of components starts from the ESP32-S2 module on the left side and then goes clockwise.

Reserved means that the functionality is available, but the current version of the kit does not use it.

Key ComponentDescription
ESP32-S2-WROVER ModuleModule integrating the ESP32-S2 chip that provides Wi-Fi connectivity, data processing power, and flexible data storage
4.3” LCD FPC Connector(Reserved) Connect to a 4.3” LCD extension board using the FPC cable
ESP Prog Connector(Reserved) Connection for Espressif’s download device (ESP-Prog) to flash ESP32-S2 system
JTAG SwitchSwitch to ON to enable connection between ESP32-S2 and FT2232
Breakout Header 2Some GPIO pins of the ESP32-S2-WROVER module are broken out to this header, see labels on the board
USB-to-UART/JTAG BridgeFT2232 adapter board allowing for communication over USB port using UART/JTAG protocols
Camera HeaderMount a camera extension board here (e.g., ESP-LyraP-CAM)
Extension HeaderMount the extension boards having such connectors here
Reset ButtonPress this button to restart the system
Boot ButtonHolding down Boot and then pressing Reset initiates Firmware Download mode for downloading firmware through the serial port
USB-UART/JTAG PortCommunication interface (UART or JTAG) between a PC and the ESP32-S2 module
USB Power PortPower supply for the board
Battery PortConnect an external battery to the 2-pin connector
Power SwitchSwitch to ON to power the system
RGB JumperTo have access to the RGB LED, place a jumper onto the pins
RGB LEDProgrammable RGB LED and controlled by GPIO45. Before using it, you need to put RGB Jumper ON.
Power RegulatorRegulator converts 5 V to 3.3 V
I2C FPC Connector(Reserved) Connect to other I2C extension boards using the FPC cable
Breakout Header 1Some GPIO pins of the ESP32-S2-WROVER module are broken out to this header, see labels on the board
Touch FPC ConnectorConnect the ESP-LyraP-TouchA extension board using the FPC cable
Touch SwitchIn OFF position, GPIO1 to GPIO14 are used for connection to touch sensors; switch to ON if you want to use them for other purposes
3.2” LCD FPC connectorConnect a 3.2” LCD extension board (e.g., ESP-LyraP-LCD32) using the FPC cable

Hardware Reference

Block Diagram

A block diagram below shows the components of the ESP32-S2-Kaluga-1 and their interconnections.

ESP32-S2-Kaluga-1 block diagram
ESP32-S2-Kaluga-1 block diagram

Power Supply Options

There are four ways to provide power to the board:

  • Micro USB port, default power supply
  • External battery via the 2-pin BAT connector
  • 5V and GND header pins
  • 3V3 and GND header pins

Environment Setup

Please proceed to Get Started, where Section Installation Step by Step will quickly help you set up the development environment.

The programming guide and application examples for your ESP32-S2-Kaluga-1 kit can be found here.

https://docs.espressif.com/projects/esp-idf/en/latest/esp32s2/get-started/index.html

Installation Step by Step

This is a detailed roadmap to walk you through the installation process.

Setting up Development Environment

Creating Your First Project

Windows

In addition to installing the tools, ESP-IDF Tools Installer for Windows introduced in Step 1 can also download a copy of ESP-IDF.

Consult ESP-IDF Versions for information about which ESP-IDF version to use in a given situation.

If you wish to download ESP-IDF without the help of ESP-IDF Tools Installer, refer to these instructions.

https://docs.espressif.com/projects/esp-idf/en/latest/esp32s2/get-started/windows-setup.html#get-started-windows-tools-installer

Standard Setup of Toolchain for Windows

Introduction

ESP-IDF requires some prerequisite tools to be installed so you can build firmware for supported chips. The prerequisite tools include Python, Git, cross-compilers, CMake and Ninja build tools.

For this Getting Started we’re going to use the Command Prompt, but after ESP-IDF is installed you can use Eclipse or another graphical IDE with CMake support instead.

ESP-IDF Tools Installer

The easiest way to install ESP-IDF’s prerequisites is to download the ESP-IDF Tools installer from this URL:

https://dl.espressif.com/dl/esp-idf-tools-setup-2.3.exe

The installer includes the cross-compilers, OpenOCD, cmake and Ninja build tool. The installer can also download and run installers for Python 3.7 and Git For Windows if they are not already installed on the computer.

The installer also offers to download one of the ESP-IDF release versions.

Installation on esp-idf-tools-setup

Select the python version (for example, if you have python before).

Select the destination tool location

How to use the IDE Eclipse

https://github.com/espressif/idf-eclipse-plugin/blob/master/README.md

Demo Code

https://github.com/espressif/esp-dev-kits/tree/master/esp32-s2-kaluga-1

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.