Espd: Difference between revisions

From SGMK-SSAM-WIKI
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
 
(12 intermediate revisions by the same user not shown)
Line 1: Line 1:
== espd ==
How to setup and use pure data on the esp32 lyrat audio dev board
 
== Installation from scratch ==
 
=== install espressif audio development kit ===


How to setup and use pure data on the esp32 lyrat audio dev board
  git clone --recursive https://github.com/espressif/esp-adf.git
  cd esp-adf
  ./install.sh
  . ./export.sh
 
=== put an alias in .zshrc/.bashrc to source adf toolchain later ===
 
  alias get_adf='. $HOME/esp/esp-adf/export.sh'
 
 
=== download `espd` at https://msp.ucsd.edu/ideas/2022.10.02.espd/ and unzip it to folder of your likening. ===
 
=== checkout puredata (inside the espd folder) and apply patches ===
 
  cd espd
  git clone https://github.com/pure-data/pure-data.git pd
  cd pd
  git checkout 05bf346fa32510fd191fe77de24b3ea1c481f5ff
  git apply ../patches/*.patch
 
=== adjust wifi settings with your ssid/password and host ip ===
 
  vim main/espd.h
 
  # fix bug, comment out this line: i2s_mclk_gpio_select(I2S_NUM_0, GPIO_NUM_0);
  vim main/espd.c
 
=== setup esp32 config ===


=== Installation from scratch ===
  cp sdkconfig.lyrat sdkconfig


1) install espressif audio development kit
=== compile ===


    git clone --recursive https://github.com/espressif/esp-adf.git
  idf.py build
    cd esp-adf
    ./install.sh
    . ./export.sh


2) put an alias in .zshrc/.bashrc to source adf toolchain later
=== upload ===


    alias get_adf='. $HOME/esp/esp-adf/export.sh'
  idf.py -p /dev/ttyUSB0 flash

Latest revision as of 23:58, 15 February 2024

How to setup and use pure data on the esp32 lyrat audio dev board

Installation from scratch

install espressif audio development kit

 git clone --recursive https://github.com/espressif/esp-adf.git
 cd esp-adf
 ./install.sh
 . ./export.sh

put an alias in .zshrc/.bashrc to source adf toolchain later

 alias get_adf='. $HOME/esp/esp-adf/export.sh'


download `espd` at https://msp.ucsd.edu/ideas/2022.10.02.espd/ and unzip it to folder of your likening.

checkout puredata (inside the espd folder) and apply patches

 cd espd
 git clone https://github.com/pure-data/pure-data.git pd
 cd pd
 git checkout 05bf346fa32510fd191fe77de24b3ea1c481f5ff
 git apply ../patches/*.patch

adjust wifi settings with your ssid/password and host ip

 vim main/espd.h
 
 # fix bug, comment out this line: i2s_mclk_gpio_select(I2S_NUM_0, GPIO_NUM_0);
 vim main/espd.c

setup esp32 config

 cp sdkconfig.lyrat sdkconfig

compile

 idf.py build

upload

 idf.py -p /dev/ttyUSB0 flash