Great! I have a lot to study, absorb and understand. I'll probably follow up with a few questions tomorrow. Thx for all your effort. Much appreciated.Hi
I've modified my schematic in line with the comments below.
1. I've added filter/bypass capacitors (as Eric suggested). These basically ensure voltages remain stable.
2. You've determined that the 1K pullup prevents the power-on flash you were seeing earlier.
It didn't make sense (to me) for the mosfet to control power to the LDD-300 anymore.
So I connected the LDD-300L supply pins directly to the supply rails, and configured a mosfet (2N7000) to
provide a signal to an Atiny GPIO pin as an "enable" control signal for the LDD-300. You can configure the
Atiny to set the DIM pin low/high, or "in-between", to control the LDD-300 OFF/ON/DIM, repectively.
3. I replaced the NPN LED drive transistor with a 2N7000 NMOS.
This reduces the number of different transistors and current requirements.
4. I recommend keeping the PMOS reverse voltage circuit. Its more efficient than diodes.
I've included suggested part numbers for the mosfet and Zener.
5. Lastly, I still think the LM393 comparator function can moved to the ATiny.
These are just some observations and suggestions.
View attachment 361820



