8000 ESP32 support for I2S · Issue #4170 · micropython/micropython · GitHub
[go: up one dir, main page]

Skip to content

ESP32 support for I2S #4170

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
nickzoic opened this issue Sep 20, 2018 · 4 comments
Closed

ESP32 support for I2S #4170

nickzoic opened this issue Sep 20, 2018 · 4 comments

Comments

@nickzoic
Copy link
Contributor

This previously existed as micropython/micropython-esp32#185 but I'm replicating it here. The ESP32 has I2S hardware so it'd be nice to support it!

References:

@nickzoic
Copy link
Contributor Author

(I've got some hardware in the junkbox but have had no time to make any progress on this. If you've got the time and inclination, go for it!)

@AidanTek
Copy link

I am very keen to see this happen and will help in any way I can - implementation is above my current skill level but I would very much like to collaborate and learn.

I have a couple of I2S audio codecs - PCM1808 for stereo in, PCM5102 for stereo out and also have some Teensy Audio Adaptors with the SGTL5000 (Line In/Out and headphones out). The PCM1808 and PCM5102 are cheap (available on Mouser) and can be hand soldered if you are comfortable with easier surface mount soldering, modules are also available on eBay and other places. The audio quality is very good!

@miketeachman
Copy link
Contributor

As part of an air and noise pollution sensor project (https://hackaday.io/project/162059-street-sense) I needed to support an I2S microphone using the ESP32 port. Using the ESP-IDF I implemented support for both I2S Master Rx and Tx . I spent a good deal of effort to bring the C code from a "just works hobbyist" quality to "industrialized" quality.

I put in a PR to mainline uPy:
micropython/micropython#4471

Detailed class usage documentation and working uPy examples for popular microphone and audio DAC breakout boards (including the PCM5102) is here:
https://github.com/miketeachman/micropython-esp32-i2s-examples

Feedback and comments welcome at the PR or at the documentation repo

Mike

@dpgeorge
Copy link
Member

I2S is supported since 8a5bfe4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants
0