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

no audio / scope data OK #12

Open
optimaxch opened this issue Feb 8, 2021 · 7 comments
Open

no audio / scope data OK #12

optimaxch opened this issue Feb 8, 2021 · 7 comments

Comments

@optimaxch
Copy link

hi,

[env:pico32]
platform = espressif32
board = pico32
framework = arduino
upload_port = COM5
monitor_speed = 115200

.bck_io_num   = GPIO_NUM_26,             // bit clock
.ws_io_num    = GPIO_NUM_32,             // word select L/R
.data_out_num = GPIO_NUM_25,           // data

upload OK, no error messages.

adafruit MX98357
210208ESP32audio

danke aus österreich
rudi

@cgreening
Copy link
Contributor

Hi Rudi,

Did you upload the filesystem image - that contains the WAV file - I'm not sure if there's much error checking on opening the file.

Thanks
Chris

@optimaxch
Copy link
Author

hi chris,
yes i tried with two boards, tried sine wave and sampleWAV and uploaded image with tool
(this is adafruit breakout )
i will try sparkfun next....
platformio

thanks from austria
rudi

@cgreening
Copy link
Contributor

Sorry Rudi - that was a silly question on my part - of course you've uploaded the file system - otherwise you wouldn't see any waveforms on the scope.

You have me stumped - can you post a photo of the connections going into the MAX? It might be worth trying the tie the gain pin and the SD pin to high or low - just make sure there's nothing weird happening from having them floating.

And you've definitely go power going the MAX breakout board?

@optimaxch
Copy link
Author

hi chris,
took me long to adapt your work to ESP32-pico, using platformio.
actually i needed to open a new project, and copied your files and libs to project directory.
using your example i2s_output.
i am running a sparkfun MAX98357 on 5V , gain pin grounded, with crisp sound - very clear!
when adding scope to speaker output - sound is gone...

i am looking for changing gain per software command ?
where to change the gain setting in lib ?

very satisfied , THANKS
good day & health
greetings to london from villach
rudi

@optimaxch
Copy link
Author

hi chris,
took me too long to figure out the correct audio settings, when adding own .wav file:

recording
audacity
audio host : Windows WASAPI
track : mono
preferences quality: 8000Hz / 16 Bit

file export wav
save as : wav (Microsoft)
encoding : Signed 16-bit PCM

maybe this helps, other audiophiles...
( its interesting you original sample file is 8000Hz / 32bit float )

can you help to play different .wav files one after next ?
i tried in the loop - without successssssss

thanks
rudi

@optimaxch
Copy link
Author

hi chris

i am unable to play separate .wav files one after next..
please can you help.
i like to create an short announcement voice, speaking a text according an event.
for example "power 1 " power 2"...

  • and i am unable to place your code inside loop .
    audio.txt

thanks from austria
rudi

@cgreening
Copy link
Contributor

Hey Rudi,

It might be worth having a look at the code I wrote for recording and playing from SD Card which I've updated to work with SPIFFS.

https://github.com/atomic14/esp32_sdcard_audio/tree/main/arduino-wav-sdcard

Jusy uncomment the line in config.h to switch on SPIFFs instead of SD Card.

It's quite a bit simpler and would work well in loops.

I need to come back and simplify the example code here.

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

2 participants