Hello! I am working on an LED cube for fun and practicing the use of transistors in a nice way. I've experimented with transistors a bit before, but I'm running into something that is making me a bit confused.
I am currently using 4 transistors (all 2N2222) to control the ground (X) (which, for the cube, is linked per 4x4 segment), and 4 transistors to control the Z axis of the cube. Due to this layout, 16 others are operating the individual anodes (which are per row (X) per layer (Z)), where the origional idea was to use the 16 in groups of 4, where the pins from the Arduino (Pins 8-11) control one of each in the groups of 4 and the 4 previously mentioned transistors control which group get power (Pins 4-7). In theory, this seemed okay until I started to notice the cube would illuminate everything as if all the 'power' transistors are giving power to all groups. The control on the group pins however seem to be working okay, as is the ground.
I looked up in Google about the transistor and found this. The issue is their solution revolves around controling the cathode, which I already am and with correct operation. My goal is to now control the anodes but if the transistors are just going to act like 'diodes' then doesn't that defeat the purpose of being a transistor in the first place?
My question is how do I go about solving this? The logic of the program is okay, but this circuitry issue is giving me a headache.
-Flame