Quick Question on a simple Potentiometer sketch

StephenD420:
yea but I have no idea why when I connect the potentiometer to the 5v pin the Arduino shuts off. I got my Arduino already put together from SainSmart.

Got any ideas?

Thanks.
Stephen

Most likely incorrectly wired up pot. It's possible if you have wired ground or +5vdc to the wiper terminal instead of to the two end terminals, that the pot will 'short out' the power source when rotated in the wrong direction.