-
Notifications
You must be signed in to change notification settings - Fork 166
Add I2S support #368
base: Dev
Are you sure you want to change the base?
Add I2S support #368
Conversation
Pre-flight tests
Adjusted example programThis is a reduced example audio playback program derived from https://github.com/miketeachman/micropython-esp32-i2s-examples. While it hasn't been tested with any I2S hardware connected, it doesn't crash the machine at least. Provision audio file
Program
|
Hi there, confirmed through [1], @ClemensGruber was able to record at least something. However, the recording is still a bit distorted and we will have to figure out why. With kind regards, |
This commit adds I2S support from Genuine MicroPython by Mike Teachman. See also micropython/micropython#4471
In case anyone is aiming to use the I2S module without having to rebuild the firmware, we are following the Pycom releases to build custom firmware images on top, see Squirrel firmware for Pycom/ESP32. Please read the installation instructions carefully. |
We did some more tests and used an updated code from @miketeachman to write data from an INMP411 I2S mic to the SD card with a PyCom FiPy, see https://community.hiveeyes.org/t/erschliessung-von-i2s-support-und-fft-fur-micropython-auf-pycom-esp32/2331/30 For the FiPy you have to a home brewed firmware with this I2S dirver, would be great if the official PyCom firmware has this driver build in! For the meantime use at least version FiPy-1.20.1.r1-0.7.0-vanilla-dragonfly-onewire-i2s.tar.gz or better a newer release, see Dragonfly firmware for Pycom/ESP32 |
This adds preliminary I2S support from Genuine MicroPython contributed by Mike Teachman through micropython/micropython#4471.
Corresponding example programs are available from [1] and [2]. However, they have not been tested with real I2S hardware yet.
A ready-made firmware image for the Pycom FiPy is available from [3].
Thanks a bunch, @miketeachman!
[1] https://github.com/miketeachman/micropython-esp32-i2s-examples
[2] https://gitlab.com/MrSurly/project-disco
[3] https://packages.hiveeyes.org/hiveeyes/foss/pycom/vanilla/FiPy-1.20.1.r1-0.7.0-vanilla-dragonfly-onewire-i2s.tar.gz