How do I know what resistor to use??

sorry:

I = V/R = 5V/1kOhm = 5mA // how do you get 1mA?

you are right. my fault. sorry :slight_smile: