I've just assembled a led cube, and when I try to turn on all LEDs, the column connected to d0/rx pin is dimmer.
I'm using an andruino nano.
Is it possible to do something about it or do I need to live with it?
I did try to swap the d0 and d2 pins but still the column that is connected to d0 is still dimmer.
Also when only the d0 column is on it lights normally.
using pin 0 & 1 for anything is a bad plan. pins 0 & 1 are the serial port, where programs are uploaded and the Serial monitor outputs from Arduino to monitor
Where's your code & schematics & the other info as listed in the sticky?
Or do you really think the provided info is enough to diagnose your problem?
Indeed pins 0 and 1 are best left unused, unless you know what you're doing. Definitely don't try to set up a Serial connection if you want to use them.
Ok sorry, I've added the code, as for the build I'm connecting four layers of the cube by 4 330R resistors to pins A0, A1, A2, A3 (But I'm thinking to remove these resistors and add a 100R resistor for each column). As for the columns, they are connected to pins 13,12,11,10,9,8,7,6,5,4,3,2,1,0,A5,A4.
I'm suppling the arduino with 5V
Looking at that image again I see two columns that are a bit dimmer.
I also notice you use a Nano, which has a USB/TTL chip on board, and connected to the Serial pins.
As you obviously have ran out of pins, you can't use other pins for those two columns.
Possible solution: use a Pro Mini instead, as that does not have anything connected to the Tx and Rx pins when you don't have the FTDI cable connected.
kapicytryna:
Ok sorry, I've added the code, as for the build I'm connecting four layers of the cube by 4 330R resistors to pins A0, A1, A2, A3 (But I'm thinking to remove these resistors and add a 100R resistor for each column). As for the columns, they are connected to pins 13,12,11,10,9,8,7,6,5,4,3,2,1,0,A5,A4.
I'm suppling the arduino with 5V
Did you read the posts telling you why it is not advised to use pins D0 and D1?
We need to see your code.
Can you please read the first post in any forum entitled how to use this forum. http://forum.arduino.cc/index.php/topic,148850.0.html . Then look down to item #7 about how to post your code.
It will be formatted in a scrolling window that makes it easier to read.
Thanks.. Tom...
TomGeorge:
Did you read the posts telling you why it is not advised to use pins D0 and D1?
We need to see your code.
Can you please read the first post in any forum entitled how to use this forum. http://forum.arduino.cc/index.php/topic,148850.0.html . Then look down to item #7 about how to post your code.
It will be formatted in a scrolling window that makes it easier to read.
Thanks.. Tom...
Hmm i've added the code but i'm gonna paste it here if you can't see it
Ok so after some tinkering I resolved the issue by connecting pins 0/1 to the base of transistors that i'm using as a switch for both columns, now every column has the same brightness
What you really should do is create a minimal sketch that still shows the problem.
That first of all makes it small enough to post, small enough to actually be able to read for us, small enough so we know where to look for the problem (a messy 14k sketch is too much), and actually in the process of writing it there's a good chance you can find the problem yourself already as you're pinpointing where in the code the problem actually is.
So no matter which columns you connect to pins 0 and 1, they're dimmer, right? This code definitely proves it's not the code as all pins are treated exactly the same.
Try running it on a Pro Mini, as on both the Nano and Uno pins 0 and 1 are permanently connected to a USB/TTL converter.