I am following both tutorials, with custom parts and with the original gameboy, since I found some of the custom parts, but not all of them.
I am having problems with the sound. It works, but not very well when connecting headphones. I am using the speaker and amplifier of the first tutorial:
https://www.amazon.es/gp/product/B00QIW ... UTF8&psc=1
https://www.amazon.es/gp/product/B00PY2 ... UTF8&psc=1
together with my own low pass filter and the headphones jack of the second tutorial:
https://www.amazon.es/gp/product/B00OK6 ... UTF8&psc=1
This is my config.txt configuration related to sound, as per the tutorial and some extra info I found in this forum:
dtoverlay=pwm,pin=18,func=2
disable_audio_dither=1
I tried to do the final wiring in a prototype board just to test it, as explained in the tutorial:

With this design, the sound was quite low and very dirty and noisy. After some try and error I found out that if I removed the ground connection from the In- pin in the amplifier, it got quite louder, but still noisy. After that I tried going down to the basics and connecting the speaker directly to the amplifier, so I did it as in the next diagram:

Notice the missing ground connection in the In- pin in the amplifier and the direct connection from the output of the amplifier to the speaker. As I say, with this configuration, the sound is very clear, so I decided to give it a go and apply it to the previous connection, so the final result is as shown in this diagram:

Notice the missing ground connection in the In- pin in the amplifier and the connection to the O- pin in the amplifier to the speaker.
Again, with this configuration the sound in the speaker is loud and clear. However, when I connect headphones to the jack, the sound becomes dirty and very noisy. If I turn the volume down using the potentiometer, the noise in the headphones gets higher than the sound itself (it does not happen in the speaker).
Since the signal goes through the jack before going to the speaker, I got to the conclussion that there is a wiring problem in the jack, probably related to that change I made in the wiring of the amplifier to get a clearer sound. Anyway, I couldn't find a way to connect all these parts to make it sound better, which is quite annoying, as I'm sure you understand. I expected the headphones sound better than the speaker! Do you have any ideas about how to solve this mess?
Thank you very much!