Hi to all, I need to generate a variable current, in the range 0-120uA sourcing it into an IC to dim LEDs. I also need to read the LEDs current, that is different from 0-120 uA (LEDs current will be in the range 0-2,5A).
I'll use an IC that features a buck-boost controller to drive LEDs. Then I'll read current flowing into LEDs with a shunt (through microcontroller's ADC). After reading current, I need to adjust it: the buck-boost controller can be analog dimmed through a current sourced into a pin.
Now, how can I generate this current with a microcontroller?
Thank you Andrea