Olin has a point, (His post was mistagged) a PWM (even without the low pass
filter, since we're talking about the human eye) would work fine in place
of the DAC. I feel that an opamp is overkill for this application.
--Brendan
{Quote hidden}>How about a D/A converter into a current mirror?
>
>(view this in notepad or similar, must be monospaced font)
>
>
> +5V
> |
> |
> ---
> \ / LED
> ---
> | R /---------
> | +-----+-----/\/\/\/-----< DAC/PWM |
> | | | \---------
> \| | |/
> |-------+---|
> E /| |\ E
> | |
> +-------+-------+
> |
> ---
> ///
>
>I_R should be very close to I_LED
>
>If you don't care about the accuracy, you can use two normal transistors,
>but since this is a very temperature dependant circuit, if you want more
>accuracy, you'll need to get the two transistors on a heatsink together, or
>buy a current mirror in a single package.
>
>Depending on the current draw of the LED, you might also want to have a
>resistor between the LED and the transistor, though at normal LED currents,
>it shouldn't be necessary.
--
http://www.piclist.com hint: The PICList is archived three different
ways. See http://www.piclist.com/#archives for details.