Hello, newbie here trying to learn about circuits a bit more.
I'm trying to understand how this tiny audio visualizer works, but I'm stuck at the audio input: video example.
I found a schematic of how it's connected at instructables.
and a "drawing" of the circuit
He's using an Attiny13a, but I'm guessing applying this to an arduino would have similar results.
As far as I understand, he's joining the left/right channels and connecting directly to pin 4.
There are multiple posts on this forum about audio input, so I want to summarize them before I continue: everybody suggests never to connect analog audio directly to a pin, because it's AC, and arduino is DC. Also, because audio will have negative voltages, while the arduino pins support -0.5-+5v, so there's a chance it can kill the arduino.
There are multiple circuit suggestions, but the common is the one I'm attaching. Some don't add the resistor between the audio and the capacitor, and others have different values for the capacitors and resistors, but the idea is always the same, to convert AC to DC and offset values to be in the range 0-5v. Is that correct?
If so: how does he get away with this circuit for this tiny audio visualizer? Is he just compromising the processor to be able to keep the circuit simple? And if so, would something like put the audio device at risk (mp3 player or whatever is used to generate audio)? or even though it's bad advice, an audio signal from an mp3 player is unlikely to cause damage?
Another example of someone connecting analog audio directly to a pin: Arduino Audio Input - YouTube



