hi guys, im new to arduino or to programming. i have made an 3x3x3 led cube with arduino uno and used someone else code for it as attached, but the problem now is when i upgrade it to 5x5x5 i have used 5 decoder to control the column and i do not know how to modify the code for it. anyone could help me with it? i feel i have to change this line of code in the cpp files digitalWrite(colPins[col], val); thanks!
the ino file you provided shows that each led column is independently controlled by an arduino pin, and each level is controlled by it's own pin as well. Is this how you have the 5x5 cube set up as well?
5x5 columns = 25 output pins for columns
5 pins for levels
hey bad_crc, that ino file was originally for 3x3x3 led cube which driven from direct pin but now i have a 5x5x5 i can no longer use direct. i have used a 3-8 line decoder for it
hey ieee488, i just use only used arduino uno with some decoder ,transistor ,resistor to the leds
The extra hardware of your 5x5x5 cube, requires you to control/program your cube in a different way as your 3x3x3-cube.
Only knowing you've used an arduino uno with some decoder, transistor and resistor to the leds, it unfortunately is hard to tell what code you could/should adapt. A schematic of what you've built, would make it a lot easier to see what's possible.
Converting the code from your 3x3x3-setup to your current 5x5x5-cube might... also be harder as starting from scratch when using a different setup.
I don't know whether you've designed the hardware yourself or perhaps found a schematic, the more info/links you can provide, the easier it is for other people to help you.
ok so i have written a new code for my 5x5x5 from scratch. it work and i have done a very simple animation but i cant seems to light up 5 column together. im controlling my led by using 1decoder to choose one of the 4 decoder to turn on and either one of then to turn on the led. 0~7 for the first decoder, 8~15 for second decoder ,16~23 third decoder , 24 for the last decoder,
any help will be appreciated
thanks