shaynet
Newbie level 4
i am building a 8*8*8 led cube but the thing is that i decided to make a lighting fixture out of it
so the idea is to turn it on to light up the room and then turn on the effects when i need to impress someone.
i decided to control the cube with an Arduino board connected to 4 daisychained tlc5940's for the columns and 8 i/o ports controlling the layers.
the thing is that if i just fill the whole cube in the normal way that it's done in such cubes (shifting between layers) every led lights up only 1/8 of the time and it won't give enough light, so in lighting mode i have to be able to turn on all of the leds at the same time to give enough light.
my idea was that since the tlc5940's work as current sink i would source every layer threw a p-channel mosfet controlled individually by an i/o port of the arduino.
in effect mode every column of the cube will be connected to a tlc channel and it will be set to sink the current of one led, and in lighting mode all of the columns will be connected (threw a 1w resistor for every column) to one n-channel mosfet that will sink all of the cubes current and it (the mosfet) will be controlled by a pwm channel of the arduino. so basically what i get in lighting mode (for every column) the i have 8 leds in parallel and they are all current limited by a single 1w resistor.
i attached a schematic that illustrates how a column will be controlled, please take note that the p-channel mosfets (layer control) are for a whole layer 64 leds and the n-channel mosfet sinks the whole cube.
what do you think about this setup? would it work? is there something that needs changing? or am i just stupid?!
i think that IRLZ44N mosfet will be a good choice for the n-channel mosfet but i don't really have any ideas as to what to use for the p-channel mosfets, please advice me what logic level p-channel mosfets i can use
so the idea is to turn it on to light up the room and then turn on the effects when i need to impress someone.
i decided to control the cube with an Arduino board connected to 4 daisychained tlc5940's for the columns and 8 i/o ports controlling the layers.
the thing is that if i just fill the whole cube in the normal way that it's done in such cubes (shifting between layers) every led lights up only 1/8 of the time and it won't give enough light, so in lighting mode i have to be able to turn on all of the leds at the same time to give enough light.
my idea was that since the tlc5940's work as current sink i would source every layer threw a p-channel mosfet controlled individually by an i/o port of the arduino.
in effect mode every column of the cube will be connected to a tlc channel and it will be set to sink the current of one led, and in lighting mode all of the columns will be connected (threw a 1w resistor for every column) to one n-channel mosfet that will sink all of the cubes current and it (the mosfet) will be controlled by a pwm channel of the arduino. so basically what i get in lighting mode (for every column) the i have 8 leds in parallel and they are all current limited by a single 1w resistor.
i attached a schematic that illustrates how a column will be controlled, please take note that the p-channel mosfets (layer control) are for a whole layer 64 leds and the n-channel mosfet sinks the whole cube.
what do you think about this setup? would it work? is there something that needs changing? or am i just stupid?!
i think that IRLZ44N mosfet will be a good choice for the n-channel mosfet but i don't really have any ideas as to what to use for the p-channel mosfets, please advice me what logic level p-channel mosfets i can use