I need someone to design Arduino program according to circuit application, I already have a sample, just to modify it.
1) Dimmable LED:
LED control proposes the use of PWM technique to dim the LEDs ,The duty cycles of the PWM that is used to drive the boost converter is being reduced periodically. This reduces the average current flow into the driver circuit and hence, dims down the LEDs. To further boost the circuit dimming capabilities, the duty cycles of the PWM supplies to the time multiplexing mosfets are further reduced.
2) Fault compensation: ( this part need to modify from sample code)
through the ADC pin in Arduino, we can sense the current flow in each of the LED string through the use of LM358 with a sensing resistor. Hence, when the one of the LEDs in the LEDs string is spoilt, it will be feedbacked to the micro-controller and LED failure protocol will be carried out immediately by adjust PWM duty cycles.