Skip to content
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

Using DAC ouput to amp instead of I2S #25

Open
griffinmt opened this issue Oct 26, 2022 · 8 comments
Open

Using DAC ouput to amp instead of I2S #25

griffinmt opened this issue Oct 26, 2022 · 8 comments

Comments

@griffinmt
Copy link

It is not clear (to me at least) what I need to do or set up to have the audio output use DAC instead of I2S. I am using a PAM8302 with attached volume control and running ESP-NOW. Any and all help would be appreciated.

[email protected]

@cgreening
Copy link
Contributor

The code is not currently set up to output to the DAC, but o think to should be straightforward to make it work. I'll have to have a look.

@griffinmt
Copy link
Author

griffinmt commented Oct 26, 2022 via email

@cgreening
Copy link
Contributor

Looks like it's already there!

in the config.h file, just comment out the line:

#define USE_I2S_SPEAKER_OUTPUT

@griffinmt
Copy link
Author

griffinmt commented Oct 26, 2022 via email

@griffinmt
Copy link
Author

your description states the following:
" modify the code to use the built-in DAC for output "

@cgreening
Copy link
Contributor

That should be all that's necessary - that will start writing samples out to the DAC.

Might be worth running a simple test to make sure you can output audio normally to the DAC and sound comes out.

@finlaydegrauwe
Copy link

I've been trying to achieve the same, but so far no result. I think it's something simple with defining the pin of the built-in DAC somewhere (GPIO 25 or 26), but I can't seem to figure out where to put this.

@FedericoBusero
Copy link
Collaborator

Can you check it again, a lot of fixes were made to the I2S implementation

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