Global Moderator
Boston area, metrowest
Offline
Brattain Member
Karma: 269
Posts: 17031
Available for Design & Build services
|
 |
« Reply #15 on: October 12, 2012, 02:32:19 pm » |
You could do that, only need 8 bytes, maybe a starting sync byte, ignore all messages until the synyc byte comes in. Or a sync message every 10 frames or something similar.
|
|
|
|
|
Logged
|
|
|
|
|
0
Offline
Newbie
Karma: 0
Posts: 37
:D
|
 |
« Reply #16 on: October 12, 2012, 02:36:03 pm » |
Yep something like that, though im still not totally sure exactly how im going to go about it. Like I said, i'm not much of a software guy... Though I think I would need the end product to be something like this https://www.sparkfun.com/products/759 (only much smaller).
|
|
|
|
|
Logged
|
|
|
|
|
Valencia, Spain
Offline
Edison Member
Karma: 72
Posts: 2488
|
 |
« Reply #17 on: October 12, 2012, 02:47:46 pm » |
but do you have any ideas on how I would do the communication?
Depends on the speed you need. Both will have serial ports (easy, but slow). Both will have SPI (a bit harder but fast).
|
|
|
|
|
Logged
|
No, I don't answer questions sent in private messages...
|
|
|
|
0
Offline
Newbie
Karma: 0
Posts: 37
:D
|
 |
« Reply #18 on: October 12, 2012, 02:49:40 pm » |
I'd probably need SPI, though how slow is slow if I wanted to go the serial port route? Also the main atmega, would run at 8MHZ so it wont be super speedy anyways...
|
|
|
|
« Last Edit: October 12, 2012, 02:51:20 pm by Nadav Ami »
|
Logged
|
|
|
|
|
Offline
Edison Member
Karma: 114
Posts: 2205
|
 |
« Reply #19 on: October 12, 2012, 02:54:21 pm » |
Any smd avr with sufficient number of pins will do.
|
|
|
|
|
Logged
|
|
|
|
|
Valencia, Spain
Offline
Edison Member
Karma: 72
Posts: 2488
|
 |
« Reply #20 on: October 12, 2012, 02:56:46 pm » |
I'd probably need SPI, though how slow is slow if I wanted to go the serial port route? Also the main atmega, would run at 8MHZ so it wont be super speedy anyways...
It's not really about "fast" or "slow", it's whether it's fast enough for your needs. First you have to figure out how much data you need to send...
|
|
|
|
|
Logged
|
No, I don't answer questions sent in private messages...
|
|
|
|
0
Offline
Newbie
Karma: 0
Posts: 37
:D
|
 |
« Reply #21 on: October 12, 2012, 03:00:15 pm » |
Well I figure since its an 8x8 matrix, I would need to transmit 64bit strings of data at a time (maybe a few extra bits to signal a new frame is coming in or things like that)
|
|
|
|
|
Logged
|
|
|
|
|
Global Moderator
Boston area, metrowest
Offline
Brattain Member
Karma: 269
Posts: 17031
Available for Design & Build services
|
 |
« Reply #22 on: October 12, 2012, 03:01:42 pm » |
30 frames/second * 64 bytes/frame * 11 bits/byte = 21,129 bits per second. Go to 90 frames/second (for "overhead") = 63K bits/second Serial will not be a problem. Use 115,200 if you are concerned. 2 MBit/second SPI is not needed.
|
|
|
|
|
Logged
|
|
|
|
|
0
Offline
Newbie
Karma: 0
Posts: 37
:D
|
 |
« Reply #23 on: October 12, 2012, 03:07:27 pm » |
Sweet! That actually makes perfect sense. Now as to how I would do that, would I just do a Serial.write on one end and a Serial.read on the other? and when setting it up I would set Serial.begin to 115200?
|
|
|
|
|
Logged
|
|
|
|
|
Valencia, Spain
Offline
Edison Member
Karma: 72
Posts: 2488
|
 |
« Reply #24 on: October 12, 2012, 03:15:04 pm » |
Ok, The McGyver in me just had to know if you can really sand down a chip to that sort of thickness. So I grabbed a dead MZX7219 and some sand paper, and... yes you can! I easily got it under 2mm thick (actually 1.85mm) without exposing any silicon. With a 0.8mm PCB that meets your "under 3mm" goal.   It's probably not a good way to do it if you want to make a lot of them, but it can be done. :-)
|
|
|
|
« Last Edit: October 12, 2012, 03:24:41 pm by fungus »
|
Logged
|
No, I don't answer questions sent in private messages...
|
|
|
|
0
Offline
Newbie
Karma: 0
Posts: 37
:D
|
 |
« Reply #25 on: October 12, 2012, 03:20:47 pm » |
Sweet, its good to know that I can be done! But i'm going to go with the atmega method. Since it is meant to be a production thing (hopefully). And im actually doing a layered pcb assembly à la EEV Blog so its going to be two .8mm pcbs, with a 1.6mm pcb core. The core will have all the places for the ICs and other parts milled out. And the Top and bottom will make it look good, also all of the parts will be on the top pcb. Then ill stick them all together with double sided tape (2mm around the perimeter of the board).
|
|
|
|
« Last Edit: October 12, 2012, 03:35:47 pm by Nadav Ami »
|
Logged
|
|
|
|
|
Worried About Waste
Offline
God Member
Karma: 8
Posts: 849
|
 |
« Reply #26 on: October 12, 2012, 03:39:11 pm » |
@JoeN: I'm probably going to have them made in batches of about 50 to 100, still a bit early to know for sure.
Yeah, I wouldn't use that circuit either then. That is going to raise the cost quite a bit. I think about this stuff from a hobbiest point of view that I can get 4 or 6 of anything as samples and if I need to buy a few more that isn't going to break the bank - all because I make these things quantity 1 or 2.
|
|
|
|
|
Logged
|
|
|
|
|
0
Offline
Newbie
Karma: 0
Posts: 37
:D
|
 |
« Reply #27 on: October 12, 2012, 03:45:18 pm » |
Exactly, with the atmega, I can get the for about $3 from digikey, so its really great.
|
|
|
|
|
Logged
|
|
|
|
|
Global Moderator
Boston area, metrowest
Offline
Brattain Member
Karma: 269
Posts: 17031
Available for Design & Build services
|
 |
« Reply #28 on: October 12, 2012, 05:43:32 pm » |
|
|
|
|
|
Logged
|
|
|
|
|
Worried About Waste
Offline
God Member
Karma: 8
Posts: 849
|
 |
« Reply #29 on: October 13, 2012, 02:42:40 am » |
$1.36 in the quantities he is talking about if this makes it to production. Atmel prices their product pretty darn reasonable if you ask me.
|
|
|
|
|
Logged
|
|
|
|
|
|