I am familiar with programming, however I am new to electronics. I have a project where I need to light 17 separate LEDs and be able to control each one individually. However there are only 13 digital pins.
What is the best way to deal with this?
Simplest is to use the analog pins as digital pins.
A0-A5= D14-D19.
Don't forget current limiting resistors on all pins to avoid damaging the arduino pins.
Or get some shift registers, such as 74AC299PC from Newark.com, 56 cents.
Nekomancer:
Thanks! never knew the analog pins could be used as digital pins!
The idea is simple. Analog out is PWM, about 500Hz.
If you are writing 0, it will be zero out.
If you are writing anything from 1 to 254, the output is anything else than 0 or clear 1.
Just write 255 and it is 1.
Easy
Do you know how PWM works? If yes, then it is easy. If not, ready this and it will be easy. Pulse-width modulation - Wikipedia
Well, it looks hebrew for me, but just use 1 and 255, and are your 17 outputs at least