Simple starter project to output the turning of a potentiometer to a single light in an LED array. Turning the pot will move the lit LED left and right.

Check out the schematic attached. 

Simply load the code onto your Arduino (I used an UNO R3, but this should work with most models) and wire up things as shown. 

After that, just twist the pot and you should be able to control the position of the lit LED.