• Stars
    star
    290
  • Rank 142,981 (Top 3 %)
  • Language
    C
  • License
    Other
  • Created over 6 years ago
  • Updated almost 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Espressif's Voice Assistant SDK: Alexa, Google Voice Assistant, Google DialogFlow

Table Of Contents

0. Important Note

The Wake-word ("Alexa") recognition software that is part of the GitHub repository is for evaluation only. Please contact [email protected] for production-ready Wake-word recognition DSP Firmware that is available from our DSP partners.

Please refer to Changelog to track release changes and known-issues.

1. Introduction

Espressif's Voice Assistant SDK allows customers to build Alexa and Google built-in smart devices. This allows customers to leverage Espressif's rich IoT device development capability while simultaneously incorporating voice enablement in these devices.

1.1 Solution Architecture

The typical solution architecture of the product is shown as below.

Solution Architecture Block Diagram

The following are the relevant blocks for the solution:

  1. ESP32: This is the primary microcontroller that controls the operations of the product.
    1. Voice Assistant Client: It runs the Voice Assistant client that manages the audio communication with the Voice Assistant's cloud. ESP32 is also responsible for any state management, audio encode/decode operations.
    2. IoT Device: It also runs the software that interfaces with your peripherals providing the smart-device functionality that you wish to expose.
  2. DSP: The DSP typically performs the Noise Reduction (NR), Acoustic Echo Cancellation (AEC) and run the Wake-Word Engine (WWE). The DSP is interfaced with the Mic Array for the audio input. And it subsequently interacts with the ESP32 for relaying the audio input.
  3. Codec: The playback data is received by the Codec which it subsequently sends to the speaker.

1.2 The Software

The software that is part of this SDK is sulf-sufficient to provide a full voice-assistant capability for your device. Typically, as a device manufacturer, you may want to customise certain configurations of this software. If you also wish to expose some additional functionality beyond voice-assistant (switch, fan, water purifier, etc), you will also have to write the device drivers for controlling this.

Software Components Block Diagram

The above block diagram indicates the various components of the Voice Assistant SDK.

1.3 Voice Assistants

1.3.1 Alexa Voice Service (AVS)

Alexa is Amazon's personal virtual assistant which listens to user's voice commands and responds with appropriate answers. Apart from conversing with the user, Alexa lets you play music from a variety of music streaming services. Alexa also helps you manage to-do lists and allows for voice-assisted shopping from Amazon.

This particular flavour of Alexa is helpful when you are building a 'speaker' class of device with esp-va-sdk.

AVS also supports playing music through Bluetooth working in conjunction with music from Alexa.

1.3.2 AVS for IoT (AFI)

AVS for IoT (AFI) is also known as AVS integrated with AWS IoT (AIA). The Amazon cloud does the audio decoding from various sources and sends them to the device. This reduces the processing and memory usage on the device. This flavour of Alexa would be particularly helpful if you are building a voice-assistant end-device that is not just a speaker, but additionally something else (switch, fan, water purifier, etc).

AIA also supports AVS smart home integration. Let's consider you are a alexa-enabled light bulb. Smart Home integration implies that if you say a query like 'Alexa, switch off the light' (where the light is your own device), then the AIA cloud service will decode this into actionable data that comes back to your device, and you can parse it and execute the action (in this case switching off the light).

1.3.3 Google Voice Assistant (GVA)

GVA is Google's version of a personal voice assistant. It is multilingual and allows users to converse in their preferred language. Apart from general queries, it allows users to check on the traffic conditions, emails, weather conditions and much more.

Note that this SDK only includes a Proof-of-Concept (PoC) implementation for GVA. This is not recommended for production.

1.3.4 Google Dialogflow

Dialogflow (previously known as API.AI) is a voice enabled conversational interface from Google. It enables IoT users to include natural language user interface in their applications, services and devices.

The advantages of Dialogflow wrt voice assistants are, less complexity, pay as you go pricing, custom wakeword allowed and no certification hassles.

Unlike other voice assistants, Dialogflow let's you configure every step of the conversation, and it won't answer other trivia/questions like voice assistants typically do. For e.g. A Dialogflow agent for Laundry project will provide information only about the configurable parameters of the laundry (like state, temperature, wash cycle, etc.).

The implementation here facilitates the audio communication of ESP32 with a Google Dialogflow agent using its v2beta1 gRPC APIs.

1.4 The ESP32-Vaquita-DSPG Development Board

The ESP32-Vaquita-DSPG Development Board is Amazon-certified for Alexa functionality. The solution consists of the ESP32 micro-controller paired with DSP-G's DBMD5P SoC. The ESP32 provides the Wi-Fi connectivity and implements the Voice Assistant client, the DBMD5P runs the acoustic front-end and the wake-word engine.

The following is a picture of the ESP32-DBMD5P Dev Kit.

ESP32-Vaquita-DSPG Board

ESP32-Vaquita-DSPG Board

The kit has the following contents:

  • Dev Kit
  • ESP32 as the host micro-controller
  • DBMD5P running the acoustic frontend and wake-word engine
  • 2 Push Buttons
  • 5 RGB LEDs (Linear)
  • 2-mic Mic Array board

1.4.1 Buttons

Push-to-Talk (Button1): Press this button to initiate conversation with the Assistant without saying the wake-word.

Microphone Mute (Button2): Press this button to disable/enable microphone on the device.

Reset to Factory: This wipes all the settings (Network configuration, Alexa/Google login credentials) from the device, and the device goes back to default factory settings. Press and hold Mute + Push-To-Talk buttons together for 10 seconds. (until you see orange LEDs)

Reset Wi-Fi Configuration: Use this to switch the device into Wi-Fi change mode. The device will stay in this mode for 3 minutes, after which it will go back to the normal mode of operation. You can use the phone apps, within this time-frame, to re-configure the Wi-Fi credentials of the Dev Kit. The new Wi-Fi credentials will overwrite the previous Wi-Fi configuration. Press and hold Push-To-Talk button for 5 seconds. (until you see orange LEDs)

Note: All the supported boards are mentioned here: audio_board

2. Development Setup

This sections talks about setting up your development host, fetching the git repositories, and instructions for build and flash.

2.1 Host Setup

You should install drivers and support packages for your development host. Windows, Linux and Mac OS-X, are supported development hosts. Please see Get Started for the host setup instructions.

2.2 Getting the Repositories

$ git clone --recursive https://github.com/espressif/esp-idf.git

$ cd esp-idf; git checkout release/v4.2; git submodule init; git submodule update --init --recursive;

$ ./install.sh

$ cd ..

$ git clone https://github.com/espressif/esp-va-sdk.git

2.3 Building the Firmware

$ cd esp-va-sdk/examples/amazon_aia/ (for AIA or amazon_alexa for AVS or google_voice_assistant or google_dialogflow)

$ export ESPPORT=/dev/cu.SLAB_USBtoUART (or /dev/ttyUSB0 or /dev/ttyUSB1 on Linux or COMxx on MinGW)

$ export IDF_PATH=/path/to/esp-idf

$ . $IDF_PATH/export.sh

Set audio_board path. e.g. For ESP32-Vaquita-DSPG:

$ export AUDIO_BOARD_PATH=/path/to/esp-va-sdk/components/audio_hal/audio_board/audio_board_vaquita_dspg

Menuconfig changes:

Do this change only if you are using ESP32-WROVER-E module:
$ idf.py menuconfig
-> Component config -> ESP32-specific -> Minimum Supported ESP32 Revision -> change Rev_0 to Rev_3

Do these changes only if your board uses spiffs partition for storing the dsp firmware (Refer to the $AUDIO_BOARD_PATH/audio_board.cmake file):
$ idf.py menuconfig
-> Partition Table -> Custom partition CSV file -> change to partitions_spiffs.csv

Do these changes only if you are using ESP32 module with 4MB flash size (Refer to the $AUDIO_BOARD_PATH/audio_board.cmake file):
$ idf.py menuconfig
-> Serial flasher config -> Flash size -> change to 4MB
-> Partition Table -> Custom partition CSV file -> change to partitions_4mb_flash.csv

2.4 Flashing the Firmware

(When flashing the SDK for the first time, it is recommended to do idf.py erase_flash to wipe out entire flash and start out fresh.)

$ idf.py flash monitor

3. Additional Setup

The device would need additional configuration on the cloud as well as the device firmware for it to work. Check the README in the example directory for the voice assistant specific Project Setup.

4. Device Provisioning

For Google Voice Assistant and Google Dialogflow, please refer to the READMEs in the respective examples instead of the description that follows below.

The configuration step consists of (a) configuring the Wi-Fi network and (b) signing into your Alexa account and linking the device. Espressif has released the following phone applications that facilitate the same:

iOS: iOS app
Android: Android app

Please install the relevant application on your phone before your proceed.

4.1 Configuration Steps

Here are the steps to configure the Dev Kit

  • On first boot-up, the Dev Kit is in configuration mode. This is indicated by Orange LED pattern. Please ensure that the LED pattern is seen as described above, before you proceed.
  • Launch the phone app.
  • Select the option Add New Device.

App Home

  • A list of devices that are in configuration mode is displayed. Note that the devices are discoverable over BLE (Bluetooth Low Energy). Please ensure that the phone app has the appropriate permissions to access Bluetooth (on Android the Location permission is also required for enabling Bluetooth).

App Discover Devices

  • Now you can sign-in to your Amazon Alexa account. If you have Amazon Shopping app installed on the same phone, app will automatically sign-in with the account the shopping app is signed in to. Otherwise it will open a login page on the phone's default browser. (It is recommended to install the Amazon Shopping app on your phone to avoid any other browser related errors.)

App Sign-in

  • You can now select the Wi-Fi network that the Dev Kit should connect with, and enter the credentials for this Wi-Fi network.

App Scna List

App Wi-Fi Password

  • On successful Wi-Fi connection, you will see a list of few of the voice queries that you can try with the Dev Kit.

App Things To Try

  • You are now fully setup. You can now say "Alexa" followed by the query you wish to ask.

4.2 Additional Device Settings

Some device settings like Volume Control, Locale Change, etc. can also be controlled through the phone app.

  • Launch the phone app, select the option Manage devices.

App Home

  • Make sure you are connected to the same network as the device and also that SSDP packets can be sent on your network.
  • Now select your device from the list of devices for the device settings.

5. Customising for your Board

For integrating/customising your own board, refer to components/audio_hal/README.md

6. Integrating other components

6.1 ESP RainMaker

6.1.1 Environment Setup

Additional setup that needs to be done for integrating ESP RainMaker:

  • Get the repository:
    $ git clone --recursive https://github.com/espressif/esp-rainmaker.git
    
  • Setting cloud_agent:
    $ export CLOUD_AGENT_PATH=/path/to/esp-rainmaker
    
  • Menuconfig changes:
    $ idf.py menuconfig
    -> Voice Assistant Configuration -> Enable cloud support -> enable this
    

6.1.2 Device Provisioning

The combined app for ESP RainMaker + ESP Alexa is still under development. Till then, both the apps can be used separately for provisioning.

  • Open the ESP RainMaker app and sign-in.

  • Click on add device, scan the QR code and complete the Wi-Fi setup.

  • The app will verify the setup.

  • (For GVS and Dialogflow, refer to their respective READMEs for provisioning.)

  • Make sure you are connected to the same network as the device.

  • Open the ESP Alexa app -> Manage Devices.

  • Find your device and sign-in into Alexa.

6.1.3 Customisation

To customise your own device, you can edit the file examples/additional_components/app_cloud/app_cloud_rainmaker.c. You can check the examples in ESP RainMaker for some more device examples.

6.2 Smart Home

This is only for AIA (AVS support will be added soon).

Note: There is a bug where the device name is being set as 'Demo Light' instead of what is being set by the device (default is 'Light').

One way to add the smart home functionality is to use ESP RainMaker, and the other way is to use examples/additional_components/app_smart_home. This can be initialized in the appilication. Uncomment app_smart_home_init() in app_main.c.

6.2.1 Usage

Once provisioning is done and the device has booted up, the smart home feature of the device can be used via voice commands or through the Alexa app.

Example: By default, the device configured is a 'Light' with 'Power' and 'Brightness' functionalities. Voice commands like 'Turn on the Light' or 'Change Light Brightness to 50' can be used. In the Alexa app, this device will show up as 'Light' and the Power and Brightness can be controlled.

6.2.2 Customisation

To customise your own device, you can edit the file examples/additional_components/app_smart_home/app_smart_home.c. You can refer the files components/voice_assistant/include/smart_home.h and components/voice_assistant/include/alexa_smart_home.h for additional APIs.

A device can have the following types of capabilities/features/parameters:

  • Power: A device can only have a single power param.
  • Toggle: This can be used for params which can be toggled. Example: Turning on/off the swinging of the blades in an air conditioner.
  • Range: This can be used for params which can have a range of values. Example: Changing the brightness of a light.
  • Mode: This can be used for params which need to be selected from a pre-defined set of strings. Example: Selecting the modes of a washing machine.

6.3 Audio Player

The audio player (components/voice_assistant/include/audio_player.h) can be used to play custom audio files from any source (http url, local spiffs, etc.).

The focus management (what is currently being played) is already implemented internally by the SDK.

For AIA: Speech/Alert/Music from Alexa has higher priority than what is played via the audio_player. So for example, if custom music is being played via the audio_player, and a query is asked, then the music will be paused and the response from Alexa will be played. Once the response is over, the music will be resumed (unless already stopped). Basically, all Alexa audio gets priority over custom audio.

For AVS: Speech/Alert from Alexa has higher priority than what is played via the audio_player. So for example, if custom music is being played via the audio_player, and a query is asked, then the music will be paused and the response from Alexa will be played. Once the response is over, the music will be resumed (unless already stopped). Another example, if custom music is being played via audio_player, and a query is asked for playing music via the cloud, then the custom music will be stopped and the music from Alexa will take over. If Alexa music was playing and custom music is played, then Alexa music will stop and the custom music will take over. Basically, music has the same priority from whichever source it is being played from. All other Alexa audio gets priority over music.

For GVA and Dialogflow: Speech (Alerts and Music is not yet supported) from Google has higher priority than what is played via the audio_player. So for example, if custom music is being played via the audio_player, and a query is asked, then the music will be paused and the response from Alexa will be played. Once the response is over, the music will be resumed (unless already stopped). Basically, all Google audio gets priority over custom audio.

6.3.1 Enabling Custom Player

The examples/additional_components/custom player is an example using the audio_player. The default example of the custom player can play from http url and/or local spiffs and/or local sdcard but can be easily extended to play from any other source.

Easiest way to try custom player is using http url.

  • Include custom_player.h in the application and call custom_player_init() after the voice assistant early initialisation has been done.

When the application is now built and flashed on the device, the custom player will play the 3 files showing the usage of the audio_player.

6.3.2 Customisation

The default custom player just has a demo code which can be used as a reference to build your own player. The audio player, for now, just supports mp3 and aac audio formats for http urls and only mp3 audio format for local files.

6.4 Equalizer

This is only for AVS.

Equalizer lets you control the Bass, Mid-Range and Treble of the audio. You can use the following commands to get the values for the equalizer:

  • Set Treble to 3
  • Set Bass to -3
  • Reset Equalizer
  • Set Movie mode

The SDK will give a callback to the application (in equalizer.c) with the respective values for the equalizer. The application can then use these values and adjust the audio output.

6.4.1 Enabling Equalizer

To enable the equalizer along with Alexa:

  • Include alexa_equalizer.h in the application and call alexa_equalizer_init() before the voice assistant initialisation has been done.

7. Production Considerations

7.1 Over-the-air Updates (OTA)

ESP-IDF has a component for OTA from any URL. More information and details about implementing can be found here: esp_https_ota.

7.2 Manufacturing

7.2.1 Mass Manufacturing Utility

The devices generally require unique IDs and certificates to connect to the cloud/server. For example, in AIA, AWS IoT operations require that all devices have a unique certificate and key pair programmed on each device which is used for authentication with the AWS IoT cloud service.

These are generally programmed in factory NVS partitions that are unique per device. ESP-IDF provides a utility to create instances of factory NVS partition images on a per-device basis for mass manufacturing purposes. The NVS partition images are created from CSV files containing user-provided configurations and values.

Details about using the mass manufacturing utility can be found here: mass_manufacturing.

7.2.2 Pre-Provisioned Modules

ESP32 modules can be pre-flashed with the factory NVS partition during manufacturing itself and then be shipped to you. For example, in AIA, the device certificates are signed by your Certificate Authority (CA) and when you register this CA in your cloud, all the devices can connect to the cloud, out of the box.

This saves you the overhead of securely generating, encrypting and then programming the NVS partition into the device at your end. Pre-provisioning is an optional service which Espressif provides.

Please contact your Espressif contact person for more information.

7.3 Security

7.3.1 Secure Boot

Secure boot ensures that only trusted code runs on the device.

ESP32 supports RSA based secure boot scheme whereby the bootROM verifies the software boot loader for authenticity using the RSA algorithm. The verified software boot loader then checks the partition table and verifies the active application firmware and then boots it.

Details about implementing the secure boot can be found here: secure_boot.

7.3.2 Flash Encryption

Flash encryption prevents the plain-text reading of the flash contents.

ESP32 supports AES-256 based flash encryption scheme. The ESP32 flash controller has an ability to access the flash contents encrypted with a key and place them in the cache after decryption. It also has ability to allow to write the data to the flash by encrypting it. Both the read/write encryption operations happen transparently.

Details about implementing the flash encryption can be found here: flash_encryption.

7.3.3 NVS Encryption

For the manufacturing data that needs to be stored on the device in the NVS format, ESP-IDF provides the NVS image creation utility which allows the encryption of NVS partition on the host using a randomly generated (per device unique) or pre-generated (common for a batch) NVS encryption key.

A separate flash partition is used for storing the NVS encryption keys. This flash partition is then encrypted using flash encryption. So, flash encryption becomes a mandatory feature to secure the NVS encryption keys.

Details about implementing the NVS encryption can be found here: nvs_encryption.

A1 Appendix FAQs

A1.1 Compilation errors

I cannot build the application:

  • Make sure you are on the correct esp-idf branch. Run 'git submodule update ---init ---recursive' to make sure the submodules are at the correct heads
  • Make sure you have the correct AUDIO_BOARD_PATH selected for your board.
  • Delete the build/ directory and also sdkconfig and sdkconfig.old and then build again.
  • If you are still facing issues, reproduce the issue on the default example and then contact Espressif for help. Please make sure to share these:
    • The esp-va-sdk and esp-idf branch you are using and the AUDIO_BOARD_PATH that you have set.
    • The complete build logs.

A1.2 Device setup using the Mobile app

I cannot Add a new device through the phone app:

  • If the device is not being shown while Adding a new device, make sure the Required permissions are given to the app. Also make sure that your Bluetooth is turned on.
  • Android typically requires the Location permission also for enabling Bluetooth.
  • If you are still facing issues, update the app to the latest version and try again.
  • Force closing the app and rebooting the device works in most cases if either of them have gone into an unknown state.
  • If you are still facing issues, reproduce the issue on the default example for the device and then contact Espressif for help. Make sure to share these:
    • Screenshots of the mobile app where it is not working.
    • Mobile App version.
    • Mobile Phone model and the Android version or any skin it is running.
    • Complete device logs taken over UART.
    • The esp-va-sdk and esp-idf branch you are using and the AUDIO_BOARD_PATH that you have set.

I cannot Manage device through the phone app:

  • If the device is not being shown while Managing devices, make sure you are connected to the same network as the device.
  • If you are still facing issues, update the app to the latest version and try again.
  • Force closing the app and rebooting the device works in most cases if either of them have gone into an unknown state.
  • If you are still facing issues, reproduce the issue on the default example for the device and then contact Espressif for help. Make sure to share these:
    • Screenshots of the mobile app where it is not working.
    • Mobile App version.
    • Mobile Phone model and the Android version or any skin it is running.
    • Complete device logs taken over UART.
    • The esp-va-sdk and esp-idf branch you are using and the AUDIO_BOARD_PATH that you have set.

A1.3 Device crashing

My device is crashing:

  • Given the tight footprint requirements of the device, please make sure any issues in your code have been ruled out. If you believe the issue is with the Alexa SDK itself, please recreate the issue on the default example application (without any changes) and go through the following steps:
  • Make sure you are on the correct esp-idf branch. Run 'git submodule update ---init ---recursive' to make sure the submodules are at the correct heads.
  • Make sure you have the correct AUDIO_BOARD_PATH selected for your board.
  • Delete the build/ directory and also sdkconfig and sdkconfig.old and then build and flash again.
  • If you are still facing issues, reproduce the issue on the default example for the device and then contact Espressif for help. Make sure to share these:
    • The steps you followed to reproduce the issue.
    • Complete device logs (from device boot-up) taken over UART.
    • <voice_assistant>.elf file from the build/ directory.
    • If you have gdb enabled, run the command 'backtrace' and share the output of gdb too.
    • The esp-va-sdk and esp-idf branch you are using and the AUDIO_BOARD_PATH that you have set.

A1.4 Device not crashed but not responding

My device is not responding to audio queries:

  • Make sure your device is connected to the Wi-Fi/Internet.
  • If the device is not taking the wake-word, make sure the mic is turned on.
  • Try using the Tap-To-Talk button and then ask the query.
  • If you are still facing issues, reproduce the issue on the default example for the device and then contact Espressif for help. Make sure to share these:
    • The steps you followed to reproduce the issue.
    • Complete device logs taken over UART.
    • <voice_assistant>.elf file from the build/ directory.
    • The esp-va-sdk and esp-idf branch you are using and the AUDIO_BOARD_PATH that you have set.

Also check the Appendix sections in the respective voice assistant's directories.

More Repositories

1

esp-idf

Espressif IoT Development Framework. Official development framework for Espressif SoCs.
C
13,620
star
2

arduino-esp32

Arduino core for the ESP32
C++
13,280
star
3

esptool

Espressif SoC serial bootloader utility
Python
5,521
star
4

ESP8266_RTOS_SDK

Latest ESP8266 SDK based on FreeRTOS, esp-idf style.
C
3,333
star
5

esp-iot-solution

Espressif IoT Library. IoT Device Drivers, Documentations And Solutions.
C
1,856
star
6

esp-who

Face detection and recognition framework
C
1,660
star
7

esp-adf

Espressif Audio Development Framework
C
1,523
star
8

esp32-camera

C
1,259
star
9

vscode-esp-idf-extension

Visual Studio Code extension for ESP-IDF projects
TypeScript
1,032
star
10

ESP8266_NONOS_SDK

ESP8266 nonOS SDK
C
926
star
11

esp-at

AT application for ESP32/ESP32-C2/ESP32-C3/ESP32-C6/ESP8266
C
860
star
12

esp-mdf

Espressif Mesh Development Framework, limited maintain, recommend to use https://github.com/espressif/esp-mesh-lite
C
774
star
13

esp-drone

Mini Drone/Quadcopter Firmware for ESP32 and ESP32-S Series SoCs.
C
766
star
14

esp-box

The ESP-BOX is a new generation AIoT development platform released by Espressif Systems.
HTML
757
star
15

ESP8266_MP3_DECODER

A demo that should be run with ESP8266 Non-OS SDK
C
739
star
16

kicad-libraries

KiCad libraries for Espressif SoCs, modules, and DevKits.
Python
703
star
17

esp-csi

Applications based on Wi-Fi CSI (Channel state information), such as indoor positioning, human detection
C
690
star
18

esp-matter

Espressif's SDK for Matter
C++
638
star
19

esp-mqtt

ESP32 mqtt component
C
602
star
20

esp-apple-homekit-adk

This is a port for Apple's Open Source HomeKit ADK
C
599
star
21

esp-skainet

Espressif intelligent voice assistant
C
570
star
22

esp-hosted

Hosted Solution (Linux/MCU) with ESP32 (Wi-Fi + BT + BLE)
C
562
star
23

esp-homekit-sdk

C
552
star
24

esp-sr

Speech recognition
C
551
star
25

esp-now

A connectionless Wi-Fi communication protocol
C
503
star
26

ESP8266_AT

This project is not maintained, please use https://github.com/espressif/esp-at.
C
472
star
27

esp32-nesemu

Proof-of-concept NES emulator for the ESP32
C
471
star
28

esp-dsp

DSP library for ESP-IDF
C
458
star
29

esp-rainmaker

ESP RainMaker Agent for firmware development
C
442
star
30

rust-esp32-example

Example of Rust integration into an ESP-IDF project, for ESP32 series of chips
Rust
432
star
31

esp-serial-flasher

Library for flashing Espressif SoCs from other MCUs.
C
371
star
32

esp-dl

Espressif deep-learning library for AIoT applications
C++
369
star
33

openocd-esp32

OpenOCD branch with ESP32 JTAG support
C
355
star
34

esp-tflite-micro

TensorFlow Lite Micro for Espressif Chipsets
C++
348
star
35

esp-dev-kits

Docs, Schematics, Factory Firmwares for ESP Development Kits
C
343
star
36

esp-aliyun

Aliyun Iotkit-embedded, support esp32 & esp8266.
C
338
star
37

esp-idf-template

Template application for https://github.com/espressif/esp-idf
Makefile
336
star
38

idf-eclipse-plugin

Espressif-IDE (based on Eclipse CDT) for ESP-IDF CMake based projects 4.x and above
Java
306
star
39

esp-usb-bridge

USB to UART&JTAG bridge, implemented on ESP32-S2 or ESP32-S3
C
292
star
40

esptool-js

Javascript implementation of flasher tool for Espressif chips, running in web browser using WebSerial.
TypeScript
276
star
41

esp-aws-iot

AWS IoT SDK for ESP32 based chipsets
C
266
star
42

ESP31_RTOS_SDK

ESP31B SDK based on FreeRTOS. For ESP32 please see http://github.com/espressif/esp-idf
HTML
189
star
43

esp-protocols

Collection of ESP-IDF components related to networking protocols
C
185
star
44

esp-idf-provisioning-android

Android Provisioning application for ESP-IDF Unified provisioning
Java
184
star
45

esp-azure

SDK to connect ESP8266 and ESP32 to Microsoft Azure IoT services
C
174
star
46

esp-jumpstart

Jumpstart from concept to production
C
173
star
47

esp-bsp

Board support components for Espressif development boards
C
172
star
48

esp32-wifi-lib

ESP32 WiFi stack precompiled libraries
Shell
165
star
49

esp-gdbstub

C
157
star
50

esp-iot-bridge

A smart bridge to make both ESP and the other MCU or smart device can access the Internet.
C
153
star
51

idf-extra-components

Additional components for ESP-IDF, maintained by Espressif
C
151
star
52

esp32-doom

A proof-of-concept port of PrBoom to the ESP32. Needs psram hardware.
C++
151
star
53

esp-zigbee-sdk

Espressif Zigbee SDK
C
144
star
54

esp-google-iot

Google Cloud IoT SDK as an ESP-IDF Component
C
142
star
55

esp-nn

Optimised Neural Network functions for Espressif chipsets
Assembly
130
star
56

esp8266-rtos-sample-code

C
129
star
57

esp-idf-provisioning-ios

Swift
125
star
58

esp32-arduino-lib-builder

C
120
star
59

esp-mesh-lite

A lite version Wi-Fi Mesh, each node can access the network over the IP layer.
C
115
star
60

esp-modbus

ESP-Modbus - the officially suppported library for Modbus protocol (serial RS485 + TCP over WiFi or Ethernet).
C
110
star
61

esp-thread-br

Espressif Thread Border Router SDK
C
105
star
62

idf-installer

ESP IDF Windows Installer
Inno Setup
102
star
63

esp-insights

ESP Insights: A remote diagnostics/observability framework for connected devices
C
99
star
64

book-esp32c3-iot-projects

《ESP32-C3 物联网工程开发实战》配套代码
Swift
96
star
65

esp-rainmaker-android

ESP RainMaker Android app sources
Java
87
star
66

usb-pids

Customer-allocated USB PIDs under the Espressif VID
Shell
85
star
67

esp-lwip

Fork of lwIP (https://savannah.nongnu.org/projects/lwip/) with ESP-IDF specific patches
C
83
star
68

pytest-embedded

A pytest plugin that designed for embedded testing
Python
80
star
69

esp-ali-smartliving

阿里云生活物联网平台 & 天猫精灵 IoT 开放平台
C
77
star
70

esp-idf-cxx

C++ wrapper classes for ESP-IDF components.
C++
77
star
71

esp32c3-direct-boot-example

Example of ESP32-C3 (rev. 3 and later) "direct boot" feature.
CMake
68
star
72

esp32-bt-lib

ESP32 Bluetooth stack (below HCI layer) precompiled libraries
67
star
73

esp8266-nonos-sample-code

C
66
star
74

esp-qcloud

基于 ESP-IDF 原生开发接入腾讯 IoT Explorer,支持 ESP32/ESP32S2,快速实现腾讯连连控制。
C
65
star
75

esp-wasmachine

The Machine which can run WASM applications.
C
61
star
76

freertos-gdb

Python module for operating with freeRTOS kernel objects in GDB
Python
56
star
77

esp-moonlight

C
54
star
78

svd

SVD files for Espressif devices
54
star
79

openocd-on-esp32

OpenOCD port running on ESP32-S3 microcontrollers
C
54
star
80

xtensa-isa-doc

TeX
48
star
81

binutils-esp32ulp

Binutils fork with support for the ESP32 ULP co-processor
C
46
star
82

idf-component-manager

Tool for installing ESP-IDF components
Python
43
star
83

esp-rainmaker-ios

ESP RainMaker iOS app sources
Swift
41
star
84

esp-privilege-separation

Espressif Privilege Separation Framework
C
39
star
85

esp-adf-libs

C
38
star
86

esp-launchpad

Configurable Browser-based Image Flasher
CSS
38
star
87

esp-wolfssl

WolfSSL port for ESP-IDF & ESP8266_RTOS_SDK
C
38
star
88

ESP8266_RTOS_ALINK_DEMO

Alink 1.0 早期版本
Assembly
36
star
89

esp-faq

Python
35
star
90

esp-wdf

Espressif WASM Development Framework.
C
34
star
91

esp31-smsemu

C
34
star
92

esp-joylink

Demo project for JD joylink, support esp32 & esp8266.
C
34
star
93

esp8266-alink-v1.0

alink v1.0
C
32
star
94

newlib-esp32

Version of newlib used in ESP32 ROM and ESP-IDF
C
31
star
95

idf-env

idf-env tool helps set up and manage ESP-IDF installations
Rust
31
star
96

esp32-c3-book-en

Read the book here:
HTML
30
star
97

esp32-alink-demo

Demo project for alink, include embed and SDS
C
30
star
98

esp32-iotivity

Guide you to make your ESP32 support OCF/OIC.
C
29
star
99

esp8266-alink-sds

Demo project for alink SDS
C
27
star
100

esp-cryptoauthlib

Release only fork of https://github.com/MicrochipTech/cryptoauthlib
C
27
star