Pages: [1]   Go Down
 Author Topic: help with 8x8 common anode rgb matrix panel  (Read 1277 times) 0 Members and 1 Guest are viewing this topic.
Offline
Newbie
Karma: 0
Posts: 11
 « on: November 10, 2012, 02:16:30 pm » Bigger Smaller Reset

I am trying to understand how the common anode matrix works
here is what my setup looks like in LT spice and I will be trying to simulate it and get results such as power, current, and voltage.

so the common anodes are connected to a DC voltage, in this case I used +5 volts
and the RGB pins have to have PWM on it so that it knows when to turn on/off according to the duty cycle

can someone help me clarify on that, thanks alot of reading this.

What I think:
If one row is of LEDS is turned on, so 8 LEDS = 8X3 = 24 LEDS * 20mA = 480 mA needed to supply for 1 row? since 20 mA is usually for max brightness.
Do I use P=V*I to calculate power so 5 Vdc * I = power? what about the Voltage in the PWM?
 Logged

Eugene, Oregon
Offline
Sr. Member
Karma: 9
Posts: 388
 « Reply #1 on: November 10, 2012, 02:38:00 pm » Bigger Smaller Reset

480ma@5v is the max per column, and not really PWM, its the same as all LEDs on, 0ma with all LEDs off, and somewhere in between for PWM.

I have a test rig that uses 8 RGB LEDs, and I've hooked it up to an external power supply, because that sounds like too much current for the arduino.

Your diagram doesnt include any resistors, or IC's or other helpful info, but from what I can tell, controlling RGB LEDs with PWM is going to be limited with a common cathode setup, common anode setup doesnt seem to be as limiting in driving options.
 Logged

Offline
Newbie
Karma: 0
Posts: 11
 « Reply #2 on: November 10, 2012, 02:50:18 pm » Bigger Smaller Reset

well here is my hardware config, im just trying for a basic simulation in LT spice

im trying to simplify the panel so that I can observe voltage, current, and power waveforms.

So my question is, for a common anode matrix 8x8
do you hook up a voltage DC source at the anodes
and what do you hook up to the RGB pins.

for a simple simulation, I do not want to make the circuit from the chips im using for my project, i just want to simulate a simple 8x8 common anode matrix and understand the waveforms.

 Logged

Manchester (England England)
Online
Brattain Member
Karma: 604
Posts: 33430
Solder is electric glue
 « Reply #3 on: November 10, 2012, 02:51:37 pm » Bigger Smaller Reset

Read this it will show you what you are trying to do.
http://www.thebox.myzen.co.uk/Workshop/LED_Matrix.html

Depending on how you drive it you will need to supply power for a whole row or column when you multiplex it.

Quote
so the common anodes are connected to a DC voltage, in this case I used +5 volts
No that needs to be switched as well as the cathodes. There needs to be resistors in the cathodes or you need to drive the cathodes with a constant current drive.
 Logged

Offline
Newbie
Karma: 0
Posts: 11
 « Reply #4 on: November 10, 2012, 03:15:10 pm » Bigger Smaller Reset

thanks for the website that helped,

since im using a common anode matrix, and will be doing row scanning

im using a PNP transistor current source, what kind of signal is coming from the arduino pin? is it just a digital High/Low (1/0) or a certain voltage
 Logged

Manchester (England England)
Online
Brattain Member
Karma: 604
Posts: 33430
Solder is electric glue
 « Reply #5 on: November 10, 2012, 03:20:43 pm » Bigger Smaller Reset

Quote
s it just a digital High/Low (1/0)
Yes.

Do you want brightness control over the matrix?
If so then it is a lot more tricky.
This project of mine in effect is an 8 by 8 matrix with brightness control, but with a fancy layout.
http://www.thebox.myzen.co.uk/Hardware/Hexome.html
 Logged

Offline
Newbie
Karma: 0
Posts: 11
 « Reply #6 on: November 10, 2012, 03:22:34 pm » Bigger Smaller Reset

well im using the LED drivers TLC 5940 to do the pwm for me
and using the atmega 328P, programming it with the arduino uno.

so that should take care of the brightness/dimming?

i am just trying to simulate a basic 8x8 common anode matrix (row scan) in LTspice

trying to obtain voltage/current waveforms.
 « Last Edit: November 10, 2012, 03:28:40 pm by jhtran » Logged

Manchester (England England)
Online
Brattain Member
Karma: 604
Posts: 33430
Solder is electric glue
 « Reply #7 on: November 10, 2012, 03:34:43 pm » Bigger Smaller Reset

Quote
so that should take care of the brightness/dimming?
Yes it will but it will have to be synchronized with the matrix scanning, it is what that project does.

Quote
i am just trying to simulate a basic 8x8 common anode matrix (row scan) in LTspice
Why?
You can just draw out what the waveforms will be.

Quote
trying to obtain voltage/current waveforms.