Hey, I am really new to this so keep things simple if possible, but I'm having a strange problem with a simple circuit. What I've narrowed the problem down to is this:
I have a potentiometer connected so that a 5v pin goes to the middle terminal, one of the side terminals goes to Analog In pin A0, and the other leg goes to a ground pin. Basically, whenever I turn the pot.'s shaft so that close to 0v are going into pin A0, and thus close to 5v are going to the ground pin, the lights on the Arduino dim or shutoff and it smells like something's burning. This exact circuit worked a week ago perfectly, but now it does this and it appears the Arduino stops running its code, or at least stops looping the loop().
Why is this happening? Am I putting too much current into the ground pin? Why was it working before, but not now?