# MATRIX Voice HAL for ESP32
This is the official set of ESP-IDF components for [MATRIX Voice](https://www.matrix.one/products/voice).
## Get Started
**MATRIX Voice ESP32** has an ESP-WROOM-32. To develop applications for MATRIX Voice ESP32 you need:
* **PC** with either Windows, Linux or MAC operating system.
* **ESP32 Toolchain** to compile applications for ESP32.
* **ESP IDF**, the API for the ESP32.
* **Raspberry PI** to connect the MATRIX Voice and upload the Software into the ESP32 and keep updated the **FPGA** firmware.
## Pre-Requisites (Raspberry Pi)
Install the MATRIX Voice software in the **Raspberry PI**. It keeps the **FPGA** firmware updated and install few tools to flash the ESP-WROOM-32.
### Dowload Rasbian Stretch
Download the latest **Raspbian Stretch** and set up the Rasberry Pi. More information in:[https://www.raspberrypi.org/documentation/installation/installing-images/README.md](https://www.raspberrypi.org/documentation/installation/installing-images/README.md)
```
https://downloads.raspberrypi.org/raspbian_lite_latest
https://downloads.raspberrypi.org/raspbian_latest
```
### Install MATRIX Voice Software
```
# Add repo and key
curl -L https://apt.matrix.one/doc/apt-key.gpg | sudo apt-key add -
echo "deb https://apt.matrix.one/raspbian $(lsb_release -sc) main" | sudo tee /etc/apt/sources.list.d/matrixlabs.list
# Update packages and install
sudo apt-get update
sudo apt-get upgrade
# Installation
sudo apt install matrixio-creator-init
# Reboot
sudo reboot
```
## ESP-IDF and Toolchain Setup (PC)
### ESP32 toolchain
Follow the instructions according to your operating system to set up the ESP32 toolchain:
[https://esp-idf.readthedocs.io/en/latest/get-started/index.html#setup-toolchain](https://esp-idf.readthedocs.io/en/latest/get-started/index.html#setup-toolchain)
### ESP-IDF development framework
See setup guides for detailed instructions to set up the ESP-IDF:
[https://github.com/espressif/esp-idf](https://github.com/espressif/esp-idf)
#### Linux
It is recommended to set the PATH and IDF_PATH environment variables in the ~/.bashrc file
```
export PATH="$PATH:<route to toolchain>/xtensa-esp32-elf/bin"
export IDF_PATH=<route to ESP-IDF>/esp-idf
```
## Cloning, Compiling & Deploy (PC)
Clone de repo MATRIX Voice HAL
```
git clone https://github.com/matrix-io/matrixio_hal_esp32.git
```
Everloop example
```
cd matrixio_hal_esp32/examples/everloop_demo
make menuconfig
```
Configure the ESP framework environment. Save your configuration and then exit the application. Default configuration works well. Just skip the setup pressing *Exit* in the first window.
![ESP Framework configuration](ESP-IDF_config.png)
Now build the application with:
```
make
```
To deploy and flash the application into the ESP it's necessary to connect the MATRIX Voice to a Raspberry PI.
```
$ export RPI_HOST=pi@RASPBERRY_IP_ADDRESS
$ make deploy
*********************************
Copying files to the Raspberry PI
*********************************
pi@RASPBERRY_IP_ADDRESS password:
bootloader.bin 100% 19KB 5.7MB/s 00:00
arc_demo.bin 100% 382KB 10.7MB/s 00:00
partitions_singleapp.bin 100% 3072 2.6MB/s 00:00
*********************************
Programmig the ESP32
*********************************
pi@RASPBERRY_IP_ADDRESS password:
-----------------------------------
esptool.py wrapper for MATRIX Voice
-----------------------------------
esptool.py v2.2
Connecting......
Chip is ESP32D0WDQ6 (revision 1)
Uploading stub...
Running stub...
Stub running...
Configuring flash size...
Auto-detected Flash size: 4MB
Flash params set to 0x0220
Wrote 32768 bytes at 0x00001000 in 3.1 seconds (85.7 kbit/s)...
Hash of data verified.
Wrote 393216 bytes at 0x00010000 in 36.6 seconds (86.0 kbit/s)...
Hash of data verified.
Wrote 16384 bytes at 0x00008000 in 1.5 seconds (86.6 kbit/s)...
Hash of data verified.
Leaving...
Hard resetting...
```
### Serial Monitor (Rasberry Pi)
The ESP32 serial monitor is attached to the **ttyS0** in the Rasberry Pi. Configure the **ttyS0** serial port as:
```
Serial Device : /dev/ttyS0
Bps/Par/Bits : 115200 8N1
Hardware Flow Control : No
Software Flow Control : No
```
没有合适的资源?快使用搜索试试~ 我知道了~
用于MATRIXVOICE的ESP32HAL-httpswww.matrix.oneproductsvoice_C+.zip
共36个文件
h:13个
cpp:8个
mk:6个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 75 浏览量
2023-04-13
23:53:44
上传
评论
收藏 89KB ZIP 举报
温馨提示
用于MATRIXVOICE的ESP32HAL-httpswww.matrix.oneproductsvoice_C+.zip
资源推荐
资源详情
资源评论
收起资源包目录
用于MATRIXVOICE的ESP32HAL-httpswww.matrix.oneproductsvoice_C+.zip (36个子文件)
matrixio_hal_esp32-master
ESP-IDF_config.png 49KB
library.json 698B
examples
everloop_demo
Makefile 288B
main
component.mk 34B
everloop_demo.cpp 2KB
mic_energy
Makefile 284B
main
component.mk 34B
mic_energy.cpp 2KB
mic_fft
Makefile 281B
main
component.mk 34B
mic_fft.cpp 2KB
components
fft
component.mk 32B
kiss_fft.c 12KB
qmath.h 7KB
kiss_fft.h 3KB
_kiss_fft_guts.h 6KB
qmath.c 5KB
hal
everloop_image.h 2KB
wishbone_bus.cpp 4KB
component.mk 32B
microphone_array_location.h 1KB
everloop.h 1KB
wishbone_bus.h 2KB
microphone_core.h 2KB
microphone_core_fir.h 8KB
microphone_array.cpp 6KB
matrix_driver.cpp 1KB
circular_queue.h 2KB
matrix_driver.h 1KB
voice_memory_map.h 1KB
microphone_array.h 3KB
microphone_core.cpp 3KB
everloop.cpp 2KB
.gitignore 322B
README.md 4KB
make
deploy.mk 866B
共 36 条
- 1
资源评论
快撑死的鱼
- 粉丝: 1w+
- 资源: 9154
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功