To power your LED with the MOSFET --
The constant current current circuit you described goes from +power to
the positive lead of the LED.
Connect the drain of the MOSFET to the negative lead of the LED and the
source to ground. Connect the gate to your a digital output of your
arduino via a 1k resistor. (The resistor value is not critical, except
if you are very concerned about turn on and turn off time, in which case
read the gate capacitance spec.) A high digital output will turn the
LED on and a low value with turn it off. If you let the gate float --
not connected to an active high or low-- you may get random turn on. If
this is a problem, connect a resistor in the 47k to 220k range (value
not critical, but should be at least 10x the other resistor) from the
gate to ground.
> --
> You received this message because you are subscribed to the Google
> Groups "NYCResistor:Microcontrollers" group.
> To view this discussion on the web visit
>
https://groups.google.com/d/msg/nycresistormicrocontrollers/-/QMtb1ZQrFoQJ.
> To post to this group, send email to
>
nycresistormi...@googlegroups.com.
> To unsubscribe from this group, send email to
>
nycresistormicrocon...@googlegroups.com.
> For more options, visit this group at
>
http://groups.google.com/group/nycresistormicrocontrollers?hl=en.