I'm attempting to drive a matrix of LEDs. Columns. Rows. It flickers too much for my liking, so I tried smoothing the LEDs with capacitors, but I'm getting very odd behaviour.
Here is a minimal schematic of my test setup:
The A1-A3 and C1-C3 lines are tristated when not in use. They don't go high/low, they go active/tristate. I figured this would allow me to parallel a capacitor across each LED without them affecting each other, but apparently not.
If I close the A1/C1 switch, I would expect the capacitor to affect the operation of that LED and no others.
Test sequence:
- Activate A1/C1. Wait.
- Deactivate A1/C1.
- Activate A3/C2. Wait.
- Deactivate A3/C2.
- Go to step 1.
I expected D1 to light, then fade out whilst D6 was lit. I expected the other LEDs to remain dark.
What actually happens is that D3 and D4 flicker noticeably as well. Given that the control lines are tristated when not in use, I'm at a loss to understand how the stored power is getting from the capacitor to these other LEDs.
It occurred to me that maybe some LEDs are passing reverse-bias current. LEDs aren't perfect diodes, but given that D1 is conducting forwards, I wouldn't expect that to be a factor.