28 lug 2022 — This user guide will help you get started with ESP32-C3-Lyra V2.0 and will also provide more in-depth information. The document consists of the following ...
» ESP32-C3-Lyra V2.0 Audio Development Framework ESP32-C3-Lyra V2.0 [] This user guide will help you get started with ESP32-C3-Lyra V2.0 and will also provide more in-depth Y information. The document consists of the following sections: R Board Overview: Overview of the board hardware/software. Start Application Development: How to set up hardware/software to develop applications. Hardware Reference: More detailed information about the board's hardware. A Hardware Revision Details: Hardware revision history, known issues, and links to user guides for previous versions (if any) of the board. Ordering: How to buy the board. IN Related Documents: Links to related documentation. Board Overview ESP32-C3-Lyra is an ESP32-C3-based audio development board produced by Espressif for controlling light IM with audio. The board has control over the microphone, speaker, and LED strip, perfectly matching customers' product development needs for ultra-low-cost and high-performance audio broadcasters and PREL rhythm light strips. INARY ESP32-C3-Lyra with ESP32-C3-WROOM-02 module IM Feature List The main features of the board are listed below: L Module Embedded: ESP32-C3-WROOM-02 module with a 4 MB external SPI flash Audio: built-in ECM microphone, speaker power amplifier, speaker connector LED Strip Connector: support for two types of connections, i.e., connections to addressable LED strips E and RGB LED strips Infrared Control: support for infrared (IR) transmitting and receiving Keys: boot key, reset key, and six function keys (MODE, COLOR, PLAY/PAUSE, SET, VOL+/LM+, VOL/LM-) R USB: 1 x USB Power Port, 1 x USB-to-UART Port PPower Supply: 5 V power supply over USB or 12 V DC power supply Block Diagram The block diagram below shows the components of ESP32-C3-Lyra and their interconnections. ARY ESP32-C3-Lyra Block Diagram (click to enlarge) PRELIMIN Description of Components ESP32-C3-Lyra - front (click to enlarge) The key components of the board are described in a clockwise direction. Key Component Description ESP32-C3-WROOM-02 Module It is a general-purpose Wi-Fi and Bluetooth LE module developed based on ESP32-C3, a 32-bit RISC-V single-core processor that operates at up to 160 MHz. The module has a rich set of peripherals and a high performance, making it an ideal choice for smart homes, industrial automation, health care, consumer electronics, etc. It integrates a 4 MB external SPI flash and an on-board PCB antenna. The ESP32-C3-WROOM-02U module is also compatible with this board, but it needs to connect to an external antenna. Speaker PA Chip Speaker Output Port Y Function Press Keys Boot/Reset Press Keys R USB-to-UART Port A USB-to-UART Bridge Chip USB Power Port IN System Power Switch LED Strip Power Selection Switch IM 12 V DC Power Port 12 V to 5 V Buck Chip L Addressable LED Strip Port E RGB LED Strip Port R System Power LED PIR Receiver NS4150 is an EMI, 3 W mono Class D audio power amplifier, amplifying audio signals from ESP32-C3 PDM_TX to drive speakers. 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. Six function press keys, including MODE, COLOR, PLAY/PAUSE, SET, VOL+/LM+, VOL-/LM-. They are routed to the ESP32-C3-WROOM-02 Module and intended for the development and testing of a UI for audio applications or LED strips using dedicated APIs. Boot: holding down the Boot key and momentarily pressing the Reset button initiates the firmware upload mode. Then you can upload firmware through the serial port. Reset: pressing this key alone resets the system. Functions as the communication interface between the PC and the ESP32-C3WROOM-02 module. The single-chip USB-UART bridge CP2102N provides up to 3 Mbps transfer rates for software download and debugging. Provides power to the board. It is recommended to use at least 5 V/2 A power adapters to ensure a stable power supply. System Power on/off knob. Toggling it to ON turns the 5 V system power on; toggling it to OFF turns the 5 V system power off. Toggle this switch to select between a 5 V power supply over USB and a 12 V DC power supply for your LED strip according to the working voltage of the LED strip and the type of the power adapter you actually use. Supports 12 V DC power adapters with a maximum current of 2 A. The DC power Jack contact have an outer diameter of 5.5 mm and an inner contact diameter of 2.5 mm. The 12 V to 5 V buck chip MP2313 is a high-efficiency synchronous step-down converter that operates at 1 A, 24 V, and 2 MHz. It is a male pin header connector with 4 x 1 pins and a 2.54 mm pitch. It can connect to the addressable LED strip that is controlled with a single wire. It supports 5 V and 12 V LED strips, such as WS2811 and WS2812 LED. ESP32C3 can send commands to control the LED strips over RMT or SPI. It is a male pin header connector with 4 x 1 pins and a 2.54 mm pitch. It can connect to regular RGB LED strips that operate at 5 V or 12 V. ESP32-C3 can output PWM waveform via this port to control the LED strips. It turns red when System Power Switch is toggled to ON. IRM-H638T/TR2 is a miniature SMD type infrared remote control system receiver. The demodulated output signal can directly be decoded by ESP32-C3. IR Transmitter IR67-21C/TR8 is an infrared emitting diode. It is spectrally matched with silicon photodiode and phototransistor. Microphone On-board ECM microphone. Signals picked up by it are amplified via transistors and sent to the analog-to-digital converter (ADC) of ESP32-C3-WROOM-02. System LED It is controlled via GPIO by ESP32-C3-WROOM-02 to indicate certain operation states of the audio application using dedicated APIs. Default Firmware and Function Test Each ESP32-C3-Lyra comes with a pre-built default firmware that allows you to test its functions including LED control (LEDC), remote control transceiver (RMT), IR, ADC, and pulse-density modulation (PDM_TX). This section describes how to test peripheral's function with the pre-built firmware. Preparing Hardware See Section Required Hardware and Optional Hardware for more information. 1 x ESP32-C3-Lyra 2 x USB 2.0 cable (Standard-A to Micro-B) Y 1 x Computer running Windows, Linux, or macOS 1 x 5 V RGB LED strip WS2812 (optional) 1 x Mobile phone or music player 1 x Speaker (optional) R Connecting Hardware A Before powering up your board, please make sure that it is in good condition with no obvious signs of damage. Connect the board to the 5 V power supply through the USB Power Port using a USB cable. After the IN board is powered up, you will notice that the System Power LED turns on, which means the board is powered up. If the LED is not on, please toggle the System Power Switch. Toggle the LED Strip Power Selection Switch to the USB power side. Connect the board to the computer through the USB-to-UART Port using a USB cable. IM Testing Default Firmware 1. Press the Reset Press Key on the board. 2. The board automatically starts the flash test. The log shown on a PC connected to USB-to-UART Port L is as follows: Step1 Flash Test Start Step1 Flash Test OK E 3. The board tests the Function Press Keys. Please press the key as the log prompts. For example, press VOL+ when you see the following log: RStep2 Keys Test Start PPlease press The Key: VOL+ 4. The board tests the System LED. You will see the LED keep switching between red, blue, and green. Then, press the key VOL+/LM+ to proceed to the next step. 5. The board tests LEDC (PWM). If you connect an RGB LED strip to the RGB LED Strip Port, you will see the LEDs breathing. Then, press the key VOL+/LM+ to proceed to the next step. 6. The board tests ADC. If you play the 1 kHz sine audio signal close to the Microphone with the mobile phone or music player, the following log will be seen when the board detects the audio signal: Step5 Adc Test Start Please play 1khz audio Step5 Adc Test OK 7. The board tests the PDM_TX function. Connect the speaker to the Speaker Output Port and you will hear the music played from flash. Software Support ESP-ADF is the development framework for ESP32-C3-Lyra. To see which version of ESP-ADF is supported for this board, please go to the section Hardware. Y Below are other software repositories developed by Espressif that may help you experiment with the functions of ESP32-C3-Lyra. ESP-IDF: development framework for Espressif SoCs based on FreeRTOS with a rich set of R components, including LED control (LEDC), ADC, RMT, SPI etc. Application examples for this board can be found at application example. A Start Application Development IN This section provides instructions on how to do hardware and software setup and flash firmware onto the board to develop your own application. Required Hardware IM Hardware Qty ESP32-C3-Lyra 1 L USB 2.0 cables (Standard-A to Micro-B) 2 Computer running E Windows, Linux, or macOS 1 Speaker 1 Note One for USB power supply, the other for flashing firmware onto the board. Be sure to use an appropriate USB cable. Some cables are for charging only and do not provide the needed data lines nor work for programming the boards. The 4-ohm 3-watt speaker is recommended. It should be fitted with JST PH 2.0 2-Pin plugs. In case you do not have this type of plug it is also fine to use Dupont female jumper wires during development. PR Optional Hardware Hardware Qty Note 12 V DC adapter 1 The maximum operating current of the adapter is 2 A. It provides power supply for 12 V LED strips. 5 V or 12 V addressable LED strip 1 It should have a female connector with 4 x 1 pins and a 2.54 mm pitch. WS2812 or WS2811 LED strip is recommended. This LED strip should be connected to Addressable LED Strip Port (JP2). Hardware Qty 5 V or 12 V RGB LED strip 1 Note It should have a female connector with 4 x 1 pins and a 2.54 mm pitch. This LED strip should be connected to RGB LED Strip Port (JP1). Power Supply Options There are two ways to provide power to the board: USB Power Port (5 V) 12 V DC Power Port Hardware Setup Y Prepare the board for loading of the first sample application: R 1. Connect the speaker to the Speaker Output Port. 2. (Optional) Connect the LED strip to the development board through the Addressable LED Strip Port or the RGB LED Port depending on the type of your LED strip. A 3. Connect the power supply to the development board through the USB Power Port (5 V) or the 12 V DC Power Port depending on the working voltage and current of your LED strip. 4. (Optional) Toggle the LED Strip Power Selection Switch accordingly to supply power for your LED strip. IN Note If you toggle the switch to the wrong side, the light strip will work abnormally. Do not power the 5 V LED strip with the 12 V DC adaptor. Otherwise, the light strip will be damaged. IM 5. Toggle the System Power Switch to ON. The red System Power LED should turn on. 6. Connect the board to the computer through the USB-to-UART Port using a USB cable. L Now the board is ready for software setup. Software Setup E After hardware setup, you can proceed to Get Stared to prepare development tools. For more software information on developing applications, please go to Software Support. PR Hardware Reference This section provides more detailed information about the board's hardware. GPIO Allocation The table provides the allocation of GPIOs exposed on terminals of the ESP32-C3-WROOM-02 module to control specific components or functions of the board. Power Distribution Power Supply over USB or from 12 V/2 A DC Input There are two ways to power the development board: 5 V USB Power Port or 12 V/2 A DC input. INARY ESP32-C3-Lyra - Dedicated USB Power Supply Socket RELIM ESP32-C3-Lyra - Power Supply from 12V DC Input PLED Strip Power Selection Switch According to the working voltage and current of your LED strip, select a proper power adapter and the port, and toggle the LED Strip Power Selection Switch to the corresponding side to power up the LED strip. Y 12 V to 5 V Buck Power LED Strip Power Selection Switch PRELIMINAR System 3.3 V Power 12 V to 5 V Buck Power Circuit RY System 3.3 V Power Circuit A Connector IN RGB LED Strip Connector (JP1) No. Signal Name ESP32-C3 Pin 1 VCC_12V_5V 2 LED_G GPIO6 IM 3 LED_R GPIO5 4 LED_B GPIO4 L Addressable LED Strip Connector (JP2) E No. Signal Name ESP32-C3 Pin 1 VCC_12V_5V 2 DIN GPIO7 R 3 DIN GPIO7 P4 GND Pinout of Extension Headers There are several pin headers available to connect external components, check the state of particular signal bus, or debug operation of ESP32-C3. Note that some signals are shared. See Section GPIO Allocation for details. UART Headers/JP12 No. Signal Name ESP32-C3 Pin 1 VCC_3V3 2 ESP_EN EN 3 ESP_BOOT GPIO9 4 ESP_UART_RXD U0RXD 5 ESP_UART_TXD U0TXD 6 GND Y I2C Headers/JP8 No. Signal Name ESP32-C3 Pin R 1 VCC_3V3 2 I2C_CLK GPIO8 A 3 I2C_DATA GPIO9 4 GND IN Hardware Revision Details No previous revisions. IM Ordering If you order a few samples, each board comes in an individual package. L For retail orders, please go to https://www.espressif.com/en/company/contact/buy-a-sample. For wholesale orders, please go to https://www.espressif.com/en/contact-us/sales-questions. E Related Documents Datasheet RESP32-C3 Series Datasheet (PDF) ESP32-C3-WROOM-02 & ESP32-C3-WROOM-02U Datasheet (PDF) PSchematic ESP32-C3-Lyra Schematic (PDF) PCB Layout ESP32-C3-Lyra PCB Layout (PDF) For further design documentation for the board, please contact us at sales@espressif.com. Provide feedback about this document © Copyright 2016 - 2019, Espressif Systems (Shanghai) CO., LTD. Built with Sphinx using a theme provided by Read the Docs. PRELIMINARYQt 4.8.7 wkhtmltopdf 0.12.6