Dear forum, why do my LEDs light up so slowly (about 2 seconds to full brightness) when I use a demux to drive a N-channel MOSFET?
I have several LEDs that I would like to light up in a complicated order (matrix, charlieplexing and similar stuff). To drive my LEDs I use an MCU to command a 3-to-8 demux that, in turn, switch on and off a set of N-ch MOSFETs. My circuit and my MCU program work fine with one exception: the LEDs take about two seconds to light up completely. I have attached the schematic of the most reduced circuit that exhibits this problem. I also made a
simulated version online.
I cannot understand why the LEDs are so "slow". They require between 1 and 2 seconds to start up. They respond much more quickly (but still slowly: 0.5 seconds) if the circuit has been going on for a minute or so. I suppose there is some (huge) capacitance somewhere, but where? In the demux?
If I remove the demux and I connect the gate of the 2N7000 MOSFET directly to the +5v rail, the LEDs will switch on and off instantly. So I am led to think that, somehow, the demux output is responsible for this slowdown. However, the
datasheet of my TI CD4051 says that the output channels have only 30pF of capacitance and a typical 30 ns of propagation delay.
What else could cause this slowdown?