juma_yetu:
There's a risk of taking the resistance too low (to 0, in fact), and having too large a current. I would still use an inline fixed resistor so that there's limited current even when the variable resistor is at 0.Or at least somehow physically prevent the pot from being turned lower than a couple of hundred ohms.
I have 22k pot, I won't turn it more then half, this will help, I guess
juma_yetu:
A wiser solution I'd say, is to wire the pot to an analog input and the led to a pwm pin, with resistor. Then analogRead() the pot, and divide that by 4 on the way to an analogWrite().
Why I am doing this actually, I don't have resistors, and only need I have for leds is to learn somethings on arduino, trying some codes etc. Other than that I have no use for resistor, thus I don't want to bother with getting one.