update on arduino class d amplifier
Changing the ADC prescalar to 128 helps enormously with the sound quality.
ADCSRA = 0b10101111; // AD-converter on, interrupt enabled, prescaler = 128
Now it sounds like a 1970’s AM radio. If you had a really bad radio in the 1970’s. But, it is clearly playing music, and some of it is even intelligible.