I'm getting starter with the Arduino and I'm going through the classic tutorial, it says to connect the VO to a pot's wiper, and pot itself to +5v and ground, so I did.
I tuned it and it worked, but then I thought, why do I need a pot if I don't plan to move it from this value? Why don't I just replace it with a resistor? But I'm still very new to electronics, Ohm's law, etc, and I got confused.
Why do I need to connect a potentiometer to +5v source, if the resistor between VO and the GND will do? I unplugged the +5v from the pot and it still worked. I had to adjust the position, but it works just fine without it, so my question is, if it works without, why all tutorials tell us to connect it to a +5v?