Go Down

Topic: Cant Turn all Leds In a single Column of an LED matrix. (Read 961 times) previous topic - next topic

vortix2950

I created a 6x6 Led matrix and wired it to max7219 Chip.

I can turn any single Led I want but sometimes it doesn't work. After some testing, I narrowed it down to a specific pattern. If I turn more than 4 led in the same column, the display shuts down. Doesn't matter which column . it can be 5 from top, or 5 from bottom, doesn't matter. As long as its more than 4, it shuts own.


I wired the display according to this :



Paul__B


So, what value are you using on the  Iset resistor (not shown there) and reassure us you are not powering an Arduino from "Vin" or the barrel jack?

Also explain what you mean by "the display shuts down"?

Provide photos - in good light and focus - of your arrangement.

Grumpy_Mike

Also you need a decoupling capacitor across the power connections of that chip for it to work correctly.

vortix2950

Also you need a decoupling capacitor across the power connections of that chip for it to work correctly.
Thank you, I read some where that i should use a 10k Resistor. I changed it to 20k like it should be and works fine now.


So, what value are you using on the  Iset resistor (not shown there) and reassure us you are not powering an Arduino from "Vin" or the barrel jack?

Also explain what you mean by "the display shuts down"?

Provide photos - in good light and focus - of your arrangement.

Its fixed now But would it be a problem if I actually use a battery through the barrel? right now im  testing things in the USB.

Grumpy_Mike

#4
Aug 02, 2019, 06:53 am Last Edit: Aug 02, 2019, 06:57 am by Grumpy_Mike
Quote
But would it be a problem if I actually use a battery through the barrel?
Yes.
1) That is a criminal waste of battery power burning up its power.
2) If it is a 9V square battery then throw it away it is useless for powering much as they don't last very long.
3) The current will be too high for the internal regulator and it will overheat and at best shut down at worst burn out.

Quote
I read some where that i should use a 10k Resistor. I changed it to 20k like it should be and works fine now
By doing that you are reducing the current you are trying to use so your original problem was an inadequate power supply. Running it off the Arduino's 5V pin is a no go.

PaulRB

If you want to run the circuit on batteries, I would recommend 4xAA NiMH rechargeables. These can power the max chip directly, and the Arduino, through its 5V pin.

vortix2950

Yes.
1) That is a criminal waste of battery power burning up its power.
2) If it is a 9V square battery then throw it away it is useless for powering much as they don't last very long.
3) The current will be too high for the internal regulator and it will overheat and at best shut down at worst burn out.
By doing that you are reducing the current you are trying to use so your original problem was an inadequate power supply. Running it off the Arduino's 5V pin is a no go.
Ok, then all I need Is to rewire the 5V and ground to a battery instead of Arduino. everything else works the same right? I have a 450mh 2s battery. is that good?

Grumpy_Mike

The ground of the battery still needs to be connected to ground of the Arduino. But a 2s battery has a voltage of 7.5V so it is too high to connect directly to the chip. It needs dropping down to 5V, look for a buck converter to do this for maximum battery life.

vortix2950

The ground of the battery still needs to be connected to ground of the Arduino. But a 2s battery has a voltage of 7.5V so it is too high to connect directly to the chip. It needs dropping down to 5V, look for a buck converter to do this for maximum battery life.
what about a PDB?   i have one that takes 7.4 battery and it has a 5V connection in it. if I connect the display to the 5v slot and then connect the Arduino to another 5v slot, would that work? I wanna test it but I don't want to burn anything.



vortix2950

Excuse my marvelous skills in mouse drawing But would that work?

PaulRB

PDB?
Protein Data Bank?
Python DeBugger?
Post a clickable link please.

Grumpy_Mike

Quote
ut would that work?
No idea because I don't know what a PDB is, therefore I don't know if the two outputs from it have a common ground or are isolated.

The display's power and the Arduino's power need to share a common ground, here is why:-
http://www.thebox.myzen.co.uk/Tutorial/Power_Supplies.html

Why not drive the Arduino and display off the same supply? I think you are getting mixed up with powering the display from the Arduino's 5V pin, with powering the Arduino with an external supply through its 5V pin.

vortix2950

#12
Aug 02, 2019, 11:28 pm Last Edit: Aug 02, 2019, 11:29 pm by vortix2950
No idea because I don't know what a PDB is, therefore I don't know if the two outputs from it have a common ground or are isolated.

The display's power and the Arduino's power need to share a common ground, here is why:-
http://www.thebox.myzen.co.uk/Tutorial/Power_Supplies.html

Why not drive the Arduino and display off the same supply? I think you are getting mixed up with powering the display from the Arduino's 5V pin, with powering the Arduino with an external supply through its 5V pin.
PDB is power distribution board. https://www.amazon.com/gp/product/B0796PK1KB/ref=ppx_yo_dt_b_asin_title_o02_s02?ie=UTF8&psc=1


they use it to give 4 quadcopter motors equal power.

Paul__B


OK, a double BEC - substantial overkill, but that arguably would do the job.  :smiley-lol:

Grumpy_Mike

I wouldn't have thought this would be suitable at all. Using this board as a simple voltage regulator is way way over the top, if indeed it would work at all.

I repeat I would recommend a buck converter down to 5V.

Go Up