Paul__B:
BennX:
I guess it's a simple question but I am confused.
Yes, it is a very simple question, but somehow you managed to get everyone else confused!
When the Arduino is powered down, the protective diodes to each and every pin pull the pins down to Vcc and if Vcc is clearly zero, then all pins are pulled down to (nearly) ground by definition. You need to invert the sense of OE with another gate such as a 74HC14 (one of the six inverters).
You could do this with a transistor and pull-up however I warn you that the simple circuit with just collector resistor, base resistor and pull-up does not in general switch fast enough for logic circuits. For OE to control a LED, this does not matter much.
In fact, your design is very strange insofar as you are controlling both individual LEDs in the RGB and the common cathode, and that you are controlling OE in any case. This is clearly unnecessary, why would you want to do it?
Thanks for your reply. I think that the 2N3904 circuid is fast enough for what i am doing. I multiplex at 8Khz and it has a max time of 300Mhz so it should do fine.
Yes it seems to be strange.
I do multiplex 125 rgb Leds by the GND (N Mosfet) and PWM them by the Vcc with the PNP by pushing several 0/1 thrue it. I do have 25 Leds per level which are all connected thrue 3 wires to a PNP to pwm. (75 lines in total) To now enable that i can handle all 125 Leds i multiplex those 5 levels with the n Mosfet. In conclusion I have a 5x5x5 Cube where i can set every single LED and have different colors. (I could post the code here and you'll understand whats happening)
To be sure that i dont have any flickering while setting the next level i disable the outputs which shuts down the cube. Then i set the next 75 color bits for the next level and enable the ouputs. (Well we can't see it) I even push the next 80 bit in it after this i clock one time the shiftregister data to the storage register data and then enable the registers again. (Just to be sure)
Grumpy_Mike:
This is clearly unnecessary, why would you want to do it?
Yes he has been told that before in another thread.
The point here is that you should never power only part of a circuit.
If you absolutely must do this then I would use opto isolators for all connections between the Arduino and the rest of the circuit.
Yes i know that this should not happen but in fact that it meight could happen because of the user (me) i want to be safe that i dont get in trouble. The Powersupply i am going to use has 2,5A and the whole cube (125*3 leds at 20mA) would be to much for it. But a single level shouldnt be a problem. I want to prevent the system from damage here.
Regards