Southport UK
Offline
Full Member
Karma: 1
Posts: 195
Been at it a long time...still learning every day.
|
 |
« Reply #90 on: November 02, 2012, 07:40:15 am » |
hello guys, hope you still know me How could we forget you...  Hello mate.  Simple maths is what you need...for 36 frames you need 2 bytes for each current segment so : per frame: ___________________ 12 current segments 2 bytes each 12*2 = 24 ___________________ 36 frames 36*24 = 864 ___________________ PLUS you may need 1 PWM set 1 byte for each LED = 132 Bytes needed for each frame set = 864+132 = 996 For 3 devices 3*996 = 2988 therefore you need less than 3KB for each 36 frame set.
|
|
|
|
|
Logged
|
Sponge. I'm allowed to have it 'cos it's not sharp.
|
|
|
|
Wisconsin
Offline
God Member
Karma: 4
Posts: 994
I LOVE THIS STUFF!!!!
|
 |
« Reply #91 on: November 02, 2012, 12:35:54 pm » |
three AS1130's i'm going to use to show a moving font on the 11x396 screen.
Hold up! you can't do an 11x396 matrix using 3 as1130's . Each 1130 can drive 132 leds MAX. your 11x396 would need 33 1130's to drive that kind of matrix buddy.
|
|
|
|
|
Logged
|
Accelerate to 88 miles per hour.
|
|
|
|
Southport UK
Offline
Full Member
Karma: 1
Posts: 195
Been at it a long time...still learning every day.
|
 |
« Reply #92 on: November 04, 2012, 09:29:09 am » |
To (almost) quote the great Bob Dylan... "the answer my friend is blowing in the datasheet" Have a good read.  ...and...I even gave you a link to an explanation of multiplexing...read THAT as well. Now I don't mind answering questions for someone who makes the effort and has the abilities required for the task, but actually THINKING for someone, then answering the questions, then answering the same questions again is really starting to make me lose the will to live........
|
|
|
|
« Last Edit: November 04, 2012, 09:33:13 am by Hexadec »
|
Logged
|
Sponge. I'm allowed to have it 'cos it's not sharp.
|
|
|
|
Wisconsin
Offline
God Member
Karma: 4
Posts: 994
I LOVE THIS STUFF!!!!
|
 |
« Reply #93 on: November 04, 2012, 10:55:30 am » |
Please binary, just read the datasheet, look at the cross-plexing diagram and then think about how digital electronics works
|
|
|
|
|
Logged
|
Accelerate to 88 miles per hour.
|
|
|
|
Southport UK
Offline
Full Member
Karma: 1
Posts: 195
Been at it a long time...still learning every day.
|
 |
« Reply #94 on: November 04, 2012, 01:40:26 pm » |
The datasheet is not as bad as some...but it IS hard to understand because it assumes quite a high level of knowledge and understanding from the reader. (quite rightly  ) If you read up on how a screen/frame/matrix of LEDs is scanned...all will become clear. 
|
|
|
|
|
Logged
|
Sponge. I'm allowed to have it 'cos it's not sharp.
|
|
|
|
Southport UK
Offline
Full Member
Karma: 1
Posts: 195
Been at it a long time...still learning every day.
|
 |
« Reply #95 on: November 04, 2012, 02:15:40 pm » |
Are you just trying to wind me up?
Read how I2C works (hint 7 or 8 bit addresses).
OR
A better idea...YOU use address 0x60 in YOUR code and then you'll KNOW why mine is as it is.
|
|
|
|
« Last Edit: November 04, 2012, 02:54:16 pm by Hexadec »
|
Logged
|
Sponge. I'm allowed to have it 'cos it's not sharp.
|
|
|
|
Southport UK
Offline
Full Member
Karma: 1
Posts: 195
Been at it a long time...still learning every day.
|
 |
« Reply #96 on: November 04, 2012, 03:50:36 pm » |
This is the last time I'm going to do your thinking/research!  Read this: http://www.arduino.cc/en/Reference/WireSpecifically: Note
There are both 7- and 8-bit versions of I2C addresses. 7 bits identify the device, and the eighth bit determines if it's being written to or read from. The Wire library uses 7 bit addresses throughout. If you have a datasheet or sample code that uses 8 bit address, you'll want to drop the low bit (i.e. shift the value one bit to the right), yielding an address between 0 and 127.
|
|
|
|
« Last Edit: November 04, 2012, 03:52:47 pm by Hexadec »
|
Logged
|
Sponge. I'm allowed to have it 'cos it's not sharp.
|
|
|
|
Southport UK
Offline
Full Member
Karma: 1
Posts: 195
Been at it a long time...still learning every day.
|
 |
« Reply #97 on: November 05, 2012, 03:59:29 am » |
I've already got some code that may be useful to you. I wrote it for the CCS C compiler.
What chip are you going to use and which compiler?
|
|
|
|
|
Logged
|
Sponge. I'm allowed to have it 'cos it's not sharp.
|
|
|
|
Southport UK
Offline
Full Member
Karma: 1
Posts: 195
Been at it a long time...still learning every day.
|
 |
« Reply #98 on: November 05, 2012, 06:27:33 am » |
Oh well...I'm not familiar with either. C is C though... 
|
|
|
|
|
Logged
|
Sponge. I'm allowed to have it 'cos it's not sharp.
|
|
|
|
Southport UK
Offline
Full Member
Karma: 1
Posts: 195
Been at it a long time...still learning every day.
|
 |
« Reply #99 on: November 05, 2012, 07:29:50 am » |
The program is pretty much C if you take out the Arduino Library stuff ie. wire.write() is i2c_write() or i2cWrite() in many C compiler libraries. BTW I would use and adapt the LAST set of code I posted... 
|
|
|
|
|
Logged
|
Sponge. I'm allowed to have it 'cos it's not sharp.
|
|
|
|
Southport UK
Offline
Full Member
Karma: 1
Posts: 195
Been at it a long time...still learning every day.
|
 |
« Reply #100 on: November 05, 2012, 09:21:33 am » |
yeah..it has better comments and is laid out better. also uses PWM (if you need it) I have also put some subroutines at the end that you may find useful. 
|
|
|
|
« Last Edit: November 05, 2012, 09:25:36 am by Hexadec »
|
Logged
|
Sponge. I'm allowed to have it 'cos it's not sharp.
|
|
|
|
Southport UK
Offline
Full Member
Karma: 1
Posts: 195
Been at it a long time...still learning every day.
|
 |
« Reply #101 on: November 05, 2012, 02:03:08 pm » |
@Funky I've bitten the bullet...after seeing 500 LEDs for $14 inc shipping I've ordered 2 x 4" x 10" stripboards and I going for it...  I can join the stripboards to make 8" x 10" which is big enough for a 24 x 22 matrix of LEDs (528) plus the AS1130s. Wish me luck with all that soldering..... 
|
|
|
|
|
Logged
|
Sponge. I'm allowed to have it 'cos it's not sharp.
|
|
|
|
Wisconsin
Offline
God Member
Karma: 4
Posts: 994
I LOVE THIS STUFF!!!!
|
 |
« Reply #102 on: November 05, 2012, 02:32:52 pm » |
Awwww yeaaaa. Dude, you have as much luck as I can give, but i'm not a leprechaun so it may not make a difference.
Lemme know how it goes. I really want to make a rain animation using these ICs and all that as my end goal
|
|
|
|
|
Logged
|
Accelerate to 88 miles per hour.
|
|
|
|
Southport UK
Offline
Full Member
Karma: 1
Posts: 195
Been at it a long time...still learning every day.
|
 |
« Reply #103 on: November 05, 2012, 03:17:53 pm » |
More good news...  I've finally had the time to hook up a logic analyser to the AS1130 and it seems that I have a problem when using the wire library to read the registers...I haven't yet figured out what it is...but over reading all the registers around the Interrupt Status Register actually gets to read it AND clear the interrupt bit....Yeeeeeeaaawwwww! This is the final problem with this chip....  Will keep you updated.
|
|
|
|
|
Logged
|
Sponge. I'm allowed to have it 'cos it's not sharp.
|
|
|
|
Wisconsin
Offline
God Member
Karma: 4
Posts: 994
I LOVE THIS STUFF!!!!
|
 |
« Reply #104 on: November 05, 2012, 03:30:03 pm » |
So there may be an unknown internal connect?
|
|
|
|
|
Logged
|
Accelerate to 88 miles per hour.
|
|
|
|
|