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

how do i modify the Output Pin for NoDAC #673

Open
Buttermesserente opened this issue Mar 24, 2024 · 3 comments
Open

how do i modify the Output Pin for NoDAC #673

Buttermesserente opened this issue Mar 24, 2024 · 3 comments

Comments

@Buttermesserente
Copy link

So i built the example with a single transistor as a amplifier and it uses the TX pin connected to the base to control the frequencies. for my project it would be important to use some other pin as the output source. is there any way to do this?

@kleinesfilmroellchen
Copy link

On the ESP8266, the I2S data pin is hard wired to the same GPIO as TX. Just like the pins for SPI1, SPI2 and I2C are hardwired too. The I2S data pin is required for the ΔΣ-DAC in the "NoDAC" output generator. You can't switch the output pin for other I2S-based outputs (DAC or SPDIFF) either.

@xXxOlivierxXx
Copy link

Add the following to your code:

#define I2S_SPEAKER_SERIAL_CLOCK GPIO_NUM_4 // BCLK
#define I2S_SPEAKER_LEFT_RIGHT_CLOCK GPIO_NUM_5 // WSEL
#define I2S_SPEAKER_SERIAL_DATA GPIO_NUM_17 // pin 17 on the ESP32S2 where the speaker is connected, or replace with any other pin

@kleinesfilmroellchen
Copy link

Add the following to your code:

This is ESP32-only, and @Buttermesserente has not specified what microcontroller they use.

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

3 participants