- #1
- 28,949
- 4,244
I am trying to design a LED driver that will be PWM controlled by Raspberry PI. Actually I already have a prototype (based on PT4115) and it works - kind of. I need to start with LEDs being off and switch them on only when they are needed. Unfortunately, both driver and Raspberry are powered at the same time (separate PSUs, but same mains cable in a difficult to reach place). Raspberry PI GPIO pins are initially high and LEDS are on till the Raspbian boots up and my script can dim them out (they will be used rarely and for short periods of time). Just inverting the pins is not guaranteed to work (and will make controlling difficult and clumsy on the code side).
So it looks like the most reasonable option is too not power the driver till the Raspberry is up. That means delaying the moment power is supplied to the driver (for at least 60 seconds). I can imagine trying to implement it with a resistor, capacitor and MOSFET, but I wonder if there are no some "standard" solutions for such situations.
So it looks like the most reasonable option is too not power the driver till the Raspberry is up. That means delaying the moment power is supplied to the driver (for at least 60 seconds). I can imagine trying to implement it with a resistor, capacitor and MOSFET, but I wonder if there are no some "standard" solutions for such situations.