int selector = analogRead(A0);
CurPatt =map(selector,0,255,0,16);
The analogRead function returns 0 to 1023. Shouldn't that be:
CurrPatt = map(selector, 0, 1023, 0, 16);
I really don't see how we can be of more help you without seeing your code.
Please read the forum guidelines to see how to properly post code and some information on making a good post.
Use the IDE autoformat tool (ctrl-t or Tools, Auto format) before posting code in code tags.
Also, please post a schematic. Written descriptions are always more ambiguous than a drawing. Hand drawn, photographed and posted is fine. Include all pin names/numbers, components, their part numbers and/or values and power supplies.
Photos can be of help as well.