I now tried different speakers, the different amps, different ports, external 5V-Supply, different codes but nothing seams to work... I am gonna order a different type of ESP32 and try again
Have you linked the out pads you didn't say? The 5v pin does not supply 5v unless you short those pads. If you are powering the amp from a second supply the grounds on the esp and the amp will need to be connected
As a last resort ditch the boards and solder the wires.
Yes i did that, there is a solder-point on top that i brigded... The Amp gets around 4.8V from the connected 5V-Pin, that should be enough.
The only thing i find weird, that usually where the speakers are connected, there should be at least a few mV but it showes me 0V... Maybe i am just stupid, i literally started like 3 Days ago
That voltage is normal, there is small drop caused by diode between usb and 5V pin.
Are your pins soldered properly? Power off your esp, and check continuity between esp and max pin by pin.
I used my multimeter again and i can confirm that all off the pins are connected the right way...
Maybe i shorted out the ESP32 or something, is there a way how i can check this?
Like does the ESP32 have a check for the pins to see, if they still work?
For anyone wondering:
I figured it out... The logs in ESPHome always shows you the logs after you pressed the button for the logs... I always wondered why the logs are so empty...
Well after i found the glorious technology of "Opening a 2nd Tab in Edge", my ESP32 was just lacking the Ram, so i configured the PSRAM and boom, now it works...
I feel so stupid, after 3 Days of trying it was literally just 3 Lines of code
Just a tip - you can throw in a small capacitor right in front of the DAC between vin and gnd. Adding the capacitor will help smooth out any spikes/valleys you get if your speaker tries to pull more power as it plays various sounds.
If you hear slight static or clicking when it plays, try a capacitor.
You want it to be between the leads bringing the vin/gnd to the DAC and the DAC itself. I would move your vin/gnd lines to the 1st row on your tiny breadboard, then put the cap on the 2nd row, and then have your DAC leads plugged into the 3rd row. Wire it like you're powering the capacitor, and the capacitor is providing the power to the DAC.
In my project (basically the same) I used a 16v 470u capacitor. Tiny enough that you could easily have it in whatever you're building with enough juice to help the DAC out for those very brief moments. The 16v is plenty of room if powered by 5v.
Capacitor or not, sound quality will not really improve (it varies, from almost acceptable (still worse than a cheap FM radio) to just bad, with low volume all over). Maybe there are better DACs for the esp32-s3 around, but the max98357a is not among them.
The capacitor isn't to improve the audio quality; that will depend on the DAC and the speaker. We're not making stereo systems here In my situation, it's just a doorbell/simple announcement speaker. The capacitor only helps with the crackling audio.
I'm aware of that (ideally even two capacitors, one small directly at the pin, a larger electrolytic one a little mroe away), but the quality sadly still remains pretty bad. I'm not looking for HiFi either, but would have been happy with "kitchen radio" quality (and better volume, without additional amplifiers).
I use them extensively to convert my vintage radios to a more modern radio signaal than short wave. I have no quality issues, no crackling or dropping out issues with these boards and the quality is fine, and perfectly acceptable. I don't mess about with decoupling caps or stuff.
I have at least one radio in each room of the house, all in sync using sendspin and never have an issue, or at least not had any issues with the esp32 s3 boards. Non s3 boards do cause issues though, but that's another story many are working on.