Go Down

Topic: led cube quick questions (Read 500 times) previous topic - next topic

zedpython

So i am making a led cube, and i need to control all ledds individually, if i want to turn on or off a light can i do this
Code: [Select]
void setup() {
 

pinMode(A15, OUTPUT);
pinMode(A14, OUTPUT);
}

void loop() {
 
  digitalWrite(A15,HIGH);
  digitalWrite(A14,LOW);

}


if i connect the anode of the led to A15 and cathode to A14, can i  safely use the digitalWrite function to control the led? any problems with this?

septillion

If you also include a resistor, yes.
Use fricking code tags!!!!
I want x => I would like x, I need help => I would like help, Need fast => Go and pay someone to do the job...

NEW Library to make fading leds a piece of cake
https://github.com/septillion-git/FadeLed

UKHeliBob

Quote
i am making a led cube, and i need to control all ledds individually, if i want to turn on or off a light can i do this
How many LEDs are there in this cube and how are they wired ?
Please do not send me PMs asking for help.  Post in the forum then everyone will benefit from seeing the questions and answers.

zedpython

i have a led cube with 5 layers, to choose the layer i want to switch the ground pin to the different layers, but it has to switch really fast, is there a component i can electronically use as a switch?

http://prntscr.com/inix5i

something like this?

MarkT

A transistor, darlington or logic-level MOSFET.  Google "low side switching transistor" or such. 

With 5x5x5 cube there might be 20mA x 25 = 0.5A per layer to switch, which is getting close to
the limit for a single transistor - a darlington or logic-level MOSFET might be a safer bet (MOSFET
should run cooler with less voltage wasted).
[ I DO NOT respond to personal messages, I WILL delete them unread, use the forum please ]

TomGeorge

Hi,
Have you looked at what the other  LED cubists use on their projects?

google     driving LED cubes

Tom.... :)
Everything runs on smoke, let the smoke out, it stops running....

Wawa

#6
Mar 07, 2018, 05:24 am Last Edit: Mar 07, 2018, 05:31 am by Wawa
You were told not to cross-post.
https://forum.arduino.cc/index.php?topic=524151.0

It might be wise to post a complete diagram of that cube instead of a camera tripod.
If you're using 74HC595 shift registers for the cathodes, consider replacing them with the TPIC6B595.
That chip is (almost) the same as the 74HC595, but has stronger mosfet outputs.
Leo..

robtillaart

Moderator merged related topics
Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)

Go Up