ESP32-LyraT-Mini V1.2 Hardware Reference

This guide provides functional descriptions and configuration options for ESP32-LyraT-Mini V1.2 audio development board. As an introduction to functionality and using the LyraT, please see ESP32-LyraT-Mini V1.2 Getting Started Guide.

Overview

ESP32-LyraT is a hardware platform designed for the dual-core ESP32 audio applications, e.g., Wi-Fi or BT audio speakers, speech-based remote controllers, connected smart-home appliances with one or more audio functionality, etc.

The block diagram below presents main components of ESP32-LyraT-Mini.

ESP32-LyraT-Mini V1.2 Electrical Block Diagram

ESP32-LyraT-Mini V1.2 Electrical Block Diagram

Functional Description

The following list and figure describe key components, interfaces, and controls of the ESP32-LyraT-Mini board. The list provides description starting from the picture’s top right corner and going clockwise.

MicroSD Slot

The development board supports a MicroSD card in SPI/1-bit modes, and can store or play audio files in the MicroSD card. See MicroSD Card for pinout details.

Microphone

On-board microphone connected to AINRP/AINRP of the Audio ADC Chip.

System LEDs

Two general purpose LEDs (green and red) controlled by ESP32-WROVER-E Module to indicate certain operation states of the audio application using dedicated API.

Audio Codec

The audio codec chip, ES8311, is a low power mono audio codec. It consists of 1-channel ADC, 1-channel DAC, low noise pre-amplifier, headphone driver, digital sound effects, analog mixing, and gain functions. It is interfaced with ESP32-WROVER-E Module over I2S and I2C buses to provide audio processing in hardware independently from the audio application.

Audio Output

Output socket to connect headphones with a 3.5 mm stereo jack. One of the socket’s terminals is wired to ESP32 to provide jack insertion detection.

ADC

The audio codec chip, ES7243, is a low power multi-bit delta-sigma audio ADC and DAC. In this board this chip is used as the microphone interface.

PA

A power amplifier used to amplify the audio signal from the Audio Codec Chip for driving the speaker.

Speaker Output

Output socket to connect a speaker. The 4-ohm and 3-watt speaker is recommended. The pins have a 2.00 mm / 0.08” pitch.

Function Press Keys

Six press keys labeled Rec, Mode, Play, Set, Vol-, and Vol+. They are routed to ESP32-WROVER-E Module and intended for development and testing of a UI for audio applications using dedicated API.

ESP32 LyraT-Mini V1.2 Board Layout

ESP32 LyraT-Mini V1.2 Board Layout

Boot/Reset Press Keys

Boot: holding down the Boot button and momentarily pressing the Reset button initiates the firmware upload mode. Then user can upload firmware through the serial port. Reset: pressing this button alone resets the system.

Automatic Upload

A simple two transistor circuit to put ESP32 into firmware upload mode depending on the status of UART DTR and RTS signals. The signals are controlled by an external application to upload the firmware over the USB-UART interface.

USB-UART Port

Functions as the communication interface between a PC and the ESP32 module.

USB-UART Bridge

A single chip USB-UART bridge CP2102N provides up to 3 Mbps transfers rates.

USB Power Port

Provides the power supply for the board.

Standby/Charging LEDs

The Standby green LED indicates that power has been applied to the USB Power Port. The Charging red LED indicates that a battery connected to the Battery Socket is being charged.

Battery Socket

Two-pin socket to connect a single cell Li-ion battery. The pins have a 2.00 mm / 0.08” pitch. The battery serves as an alternative power supply to the USB Power Port for charging the board. Make sure to use a Li-ion battery that has protection circuit and fuse. The recommended specifications of the battery: capacity > 1000 mAh, output voltage 3.7 V, input voltage 4.2 V – 5 V. Please verify if polarity on the battery plug matches polarity of the socket as marked on the board’s soldermask besides the socket.

Battery Charger

Constant current and constant voltage linear charger for single cell lithium-ion batteries AP5056. Used for charging of a battery connected to the Battery Socket over the USB Power Port.

Power Supervisor

Provides EN signal to enable ESP32 once power supply voltage stabilizes.

Power On Switch

Power on/off knob: toggling it to the top powers the board on; toggling it to the down powers the board off.

Note

The Power On Switch does not affect / disconnect the Li-ion battery charging. More information, you can refer to ESP32-LyraT-Mini V1.2 schematic (PDF).

Power On LED

Red LED indicating that Power On Switch is turned on.

ESP32-WROVER-E Module

The ESP32-WROVER-E module contains ESP32 chip to provide Wi-Fi / Bluetooth connectivity and data processing power as well as integrates 4 MB external SPI flash and an additional 8 MB PSRAM for flexible data storage.

UART Termininals

Serial port: provides access to the serial TX/RX signals between ESP32-WROVER-E Module and USB-UART Bridge Chip. See UART Test Point for pinout details.

JTAG Termininals

Provides access to the JTAG interface of ESP32-WROVER-E Module. It may be used for debugging, application upload, as well as implementing several other functions, e.g., Application Level Tracing. See JTAG Test Point for pinout details.

Allocation of ESP32 Pins to Test Points

This section describes allocation of test points available on the ESP32-LyraT-Mini board.

The test points are bare through hole solder pads and have standard 2.54 mm / 0.1 inch pitch. User may need to populate them with pin headers or sockets for easy connection of external hardware.

JTAG Test Point

.

ESP32 Pin

JTAG Signal

1

MTDO / GPIO15

TDO

2

MTCK / GPIO13

TCK

3

MTDI / GPIO12

TDI

4

MTMS / GPIO14

TMS

UART Test Point

.

ESP32 Pin

Pin Description

1

RXD0

RX

2

TXD0

TX

3

GND

GND

4

n/a

3.3 V

MicroSD Card

Implemented on this board MicoSD card interface operates in SPI/1-bit mode. The board is able to support SPI/4-b it mode after populating couple of additional components on locations reserved on the PCB. See ESP32-LyraT-Mini V1.2 schematic (PDF) for additional information. Not populated components are marked (NC) on the schematic.

.

ESP32 Pin

MicroSD Signal

1

MTDI / GPIO12

2

MTCK / GPIO13

3

MTDO / GPIO15

CMD

4

MTMS / GPIO14

CLK

5

GPIO2

DATA0

6

GPIO4

7

GPIO34

CD

GPIO Allocation Summary

The table below provides allocation of GPIOs exposed on terminals of ESP32-WROVER-E Module to control specific components or functions of the board.

Pin 1

Pin Name

ES8311

ES7243

Keys

MicroSD

Other

3

EN

EN_KEY

4

S_VP

I2S_DATA

5

S_VN

REC, MODE, PLAY, SET, VOL-, VOL+

6

IO34

CD

7

IO35

I2S0_ASDOUT

8

IO32

I2S1_SCLK

9

IO33

I2S1_LRCK

10

IO25

I2S0_LRCK

11

IO26

I2S0_DSDIN

12

IO27

Blue_LED

13

IO14

CLK

14

IO12

NC (DATA2)

16

IO13

NC (DATA3)

17

SD2

18

SD3

19

CMD

20

CLK

21

SD0

22

SD1

23

IO15

CMD

24

IO2

IO2_KEY

DATA0

25

IO0

I2S0_MCLK

I2S1_MCLK

IO0_KEY

26

IO4

NC (DATA1)

27

NC (IO16)

28

NC (IO17)

29

IO5

I2S0_SCLK

30

IO18

I2C_SDA

I2C_SDA

31

IO19

PJ_DET 2

33

IO21

PA_CTRL 3

34

RXD0

RXD0 4

35

TXD0

TXD0 4

36

IO22

Green_LED

37

IO23

I2C_SCK

I2C_SCL

  1. Pin - ESP32-WROVER-E module pin number, GND and power supply pins are not listed

  2. PJ_DET - phone jack insertion detect signal

  3. PA_CTRL - NS4150 power amplifier chip control signal

  4. RXD0, TXD0 - serial communication signals connected to TXD and RXD pins of CP2102N USB-UART bridge

  5. NC - not connected

Notes on Power Distribution

The ESP32-LyraT-Mini board provides some basic features to isolate noise from digital components by providing separate power distribution for audio and digital subsystems.

Power Supply over USB and from Battery

There are two ways to power the development board: 5 V USB Power Port or 3.7 V optional battery. The optional battery is preferable for applications where a cleaner power supply is required.

ESP32-LyraT-Mini V1.2 - Dedicated USB Power Supply Socket

ESP32-LyraT-Mini V1.2 - Dedicated USB Power Supply Socket

ESP32-LyraT-Mini V1.2 - Power Supply from a Battery

ESP32-LyraT-Mini V1.2 - Power Supply from a Battery

Independent Audio and Digital Power Supply

The board features independent power supplies to the audio components and the ESP32 module. This should reduce noise in the audio signal from digital components and improve overall performance of the components.

ESP32-LyraT-Mini V1.2 - Digital Power Supply

ESP32-LyraT-Mini V1.2 - Digital Power Supply

ESP32-LyraT-Mini V1.2 - Audio Power Supply

ESP32-LyraT-Mini V1.2 - Audio Power Supply

Selecting of the Audio Output

The board provides a mono audio output signal on pins OUTN and OUTP of the ES8311 codec chip. The signal is routed to two outputs:

  • Power amplifier (PA) to drive an external speaker

  • Phone jack socket to drive external headphones

The board design assumes that selection between one of these outputs is implemented in software, as opposed to using traditional mechanical contacts in a phone jack socket, that would disconnect the speaker once a headphone jack is inserted.

Two digital IO signals are provided to implement selection between the speaker and the headphones:

  • PJ_DET - digital input signal to o detect when a headphone jack is inserted,

  • PA_CTRL - digital output signal to enable or disable the amplifier IC.

The application running on ESP32 may then enable or disable the PA with PA_CTRL basing on status of PJ_DET. Please see GPIO Allocation Summary for specific GPIO numbers allocated to these signals.