-
Notifications
You must be signed in to change notification settings - Fork 1
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
Many Questions: Which ESP, Wiring Diagram, MAX98357A Compatibility, and Expandability #1
Comments
Hey
The specific pinout is not required, you only need pins that can output, are not bootstrap pins, and do not output garbage on boot. I also have a pull down resistor on WSEL (>20k, going from WSEL -> GND) to limit some noise (pops, cracks), but that may be unnecessary with your adapter.
|
Excellent, your reply motivated me to try, but I fell a little short. Here's what I've done so far, I really am not sure which commands I should be running.
There was no activity on the snapserver output from 192.168.1.135 which is the ESP32 snapclient. During one try, I got this error:
At this point, I had not wired up the MAX98357A. I thought this might be causing a problem. I tried it again with these pins connected: I left all the other pins, including LRC disconnected, but it made no difference. I realize, I didn't define a name of this ESP32 snapcast client anywhere. I feel like I'm very close. Any ideas? |
Ah, so close! for the SSID/Pss you can set the environment variables when building -- This log
Is saying that the tcp connection to the server got refused, so the ESP returned from main, causing it to drop its wifi connectivity. This is because I've not gotten around to implementing mDNS so the server IP is hardcoded 😞 If you update this line with your server's IP, it should connect |
Wow, I was really close! Also, I did run into an error with flac, which makes me think my compile settings were wrong.
Up to this point I had been using
After a while, I did start seeing resync messages on the espflash monitor. I expect this is normal, but I did see a task_wdt error
|
Ha, I cannibalized an old Xiaomi bluetooth speaker and got it working. |
To use flac you can build with Make sure to reduce the default buffer on snapserver, if unset it will default to 1 second |
What's the command to recompile?
or
|
Oops, that's for the But I've just pushed a change, adding |
Thanks. I tried cloning https://github.com/ruuda/claxon one directory higher. Did you use a specific version? arning: error[E0412]: cannot find type |
I did use a specific version! I just pushed an updated Cargo.toml pointing to this branch |
Awesome. I got flac working with those fixes. I'll keep testing this. |
I bought the UDA133A because it looked like it'd be better with those caps, along with having stereo and pre-soldered headphone jack. I don't know if it's better. If you want to use mono speakers, you probably do not want the UDA133A, as it won't merge L+R into a single channel, like the MAX98357A does |
I've just pushed support to emit low-volume audio if there is no data coming from the snapserver for a while |
Interesting, I didn't think you'd actually do it! I ran into some trouble again. It seemed to stop after this:
I could still ping it, but there was no activity on the snapcast server. |
I have the same issue 😬 I ended up disabling SNTP syncing on my devices for now, but I'll look into it soon |
I just pushed an update which fixes this, when addressing some I also changed the WSEL and BCLK pins around, as they line up more easily that way with my board 😞 I'll figure out a way to make the pins configurable |
Excellent.
The only trouble left is on my end:
I do have a question about the volume settings. Perhaps I mentioned before that I trying to figure out how to run Spotify in Home Assistant as the "player" and not have to use either a desktop player or mobile player. Typically I leave the volume at 100% in the player, and use Snapcast to adjust the individual volume, using Home Assistant, however even through the terribly noisy output on my ESP+MAX98357A, I can tell that the Spotify player volume is influencing the output volume. I suppose my question is, is this intended? Also, I see rumblings that Spotify might also finally release "High Definition" audio... do you think this will be beyond the capabilities of the ESP32? Again, I'm glad I am on this journey with you. |
Do you mean that it does not work? If so, you can change the volume of the sample that is played to be louder; Change this On the sound quality, you mean that it's choppy/popping/scratchy, even with the snapcast volume at 100%?
Not entirely sure what you mean here?
Should be fine -- I doubt the will go above FLAC at 48kHz which is already supported. |
I apologize for my late response. I ordered a bunch of UDA1334A boards and they just arrived. The difference between the UDA1334A and MAX98357A is night and day. I didn't want to upload a sample of how bad the output I was getting was, because it is really terrible and not worth your time debugging. I will experiment with the volume settings, but now this is irrelevant because I am able to plug directly into a speaker with a built-in amplifier. The output sounded fine on a headphone as well. I will test the keep-alive audio in the next day or so. I need to solder on some pin headers; it seems my first attempt didn't work, so on my second attempt I tried a different board and kept pressure on by hand. I think the next step for me is to design a 3d-printable case to sandwich the boards together so that D18, D19, and D21 go straight down to the UDA1334A's BLCK, DIN, and WSEL pins, and then just run some jump wires from 3V3t to VIN and GND to GND. |
I've had more time to test the UDA1334A boards. I'm even more convinced how awesome your work is.
A question:
One more idea:
|
White Noise test
|
@DavidVentura this project is fantastic. Do you have a tip jar? I have some additional feedback.
|
Hi! I saw you posted on a hackernews a few days ago. I've wanted to try this out because I have been using thin clients with Snapcast which cost a lot more and take up a lot more space. I've been waiting for a project like this.
I have a lot of questions.
Again, awesome project! This really drops the cost down of having a multi-speaker audio system.
The text was updated successfully, but these errors were encountered: