The Netduino forums have been replaced by new forums at community.wildernesslabs.co.
This site has been preserved for archival purposes only
and the ability to make new accounts or posts has been turned off.
The SPI pins on Netduino, to what pins on the Matrix? I tested 13 -> Data(7) , 12 -> OSC(9) (and 5V & GND), but nothing...
Also when running your code in debug, I get error on "ExtendedSpiConfiguration" class, row 99 (fieldInfo is null), where does "Custom_BitsPerTransfer" come from?
I only have one 2416 display so I only run one "InitDisplay".
I have the following connections:
Netduino - Matrix
Gnd 8
13 5
11 7
If I traced my wires right. And then you need one of the CSx-lines. You need to have the alpha version of the firmware that has the extended SPI stuff, otherwise it won't work.
Also when running your code in debug, I get error on "ExtendedSpiConfiguration" class, row 99 (fieldInfo is null), where does "Custom_BitsPerTransfer" come from?
Hi kenNET,
ExtendedSpiConfiguration is a class in the new SecretLabs.NETMF.IO.dll assembly, available in conjunction with the v4.1.1 alpha firmware. It adds a new "BitsPerTransfer" property to the SPI class to enable SPI transfers that aren't 8-bit or 16-bit.
ExtendedSpiConfiguration is a class in the new SecretLabs.NETMF.IO.dll assembly, available in conjunction with the v4.1.1 alpha firmware. It adds a new "BitsPerTransfer" property to the SPI class to enable SPI transfers that aren't 8-bit or 16-bit.
Chris
Tack!
Pins like you said Hauk. Chris after upgrading the firmware it works!
Now this is great fun, I have to order same more matrix displays...
Hej! Electronically it should work if they're using the same type of SPI-like interface, but I'm sure the addressing for the pixels is different, and also the support for different colors has to be added to the code. Basically the Sure LED-matrix displays are fairly dumb, they need to be driven on a raw, low level. Because of that each variation of the modules has to have its own code in the Netduino. For the current display I made some shortcuts on the structure of the memory buffer so it would perform quick in .NET. It may not be as easy/applicable to do that for the other modules.
Looks cool. The question is when you'll hit the limit on what the Netduino can handle in .NET. The more pixels the slower it'll get. The SPI-bus is plenty fast, but the formatting for the display is done in .NET code and in my code above it takes a significant amount of the available resources. If I were to create a more "production-quality" system then I wouldn't code the bit-formatting in .NET. I would either find a matrix display with its own processor that would handle text, scrolling, etc. And let the Netduino handle the high-level stuff, like TCP/IP, etc.
Hi there,
I have the LED matrix from sureelectronics http://www.sureelect...ods.php?id=1136 and I try to get it work with netduino. I've made all connections as kenNET shows in his pictures, I've upgraded to the firmware 4.1.1.0 but nothing. The code runs with the message "The thread '<No Name>' (0x2) has exited with code 0 (0x0)." but nothing on the matrix.
Any help will be appreciated.
Thanks.
It sounds like you don't have the beta-firmware with the variable-SPI feature.
/Hakan
Hi there,
I have the LED matrix from sureelectronics http://www.sureelect...ods.php?id=1136 and I try to get it work with netduino. I've made all connections as kenNET shows in his pictures, I've upgraded to the firmware 4.1.1.0 but nothing. The code runs with the message "The thread '<No Name>' (0x2) has exited with code 0 (0x0)." but nothing on the matrix.
Any help will be appreciated.
Thanks.
It sounds like you don't have the beta-firmware with the variable-SPI feature.
/Hakan
Thanks for the fast answer.
Yes, it's the beta from here http://forums.netdui...?showtopic=1592 but it has variable-SPI : 5. Variable-bit SPI (9 to 15 bit) capabilities (courtesy of community member CW2)
ok, that's a good start. My guess is that it's some signal that isn't set up properly, but it's hard to tell without looking. Do you have some analyzer or just LED that you can use to see if you have signal on the pins out from the Netduino?
Thanks for the fast answer.
Yes, it's the beta from here http://forums.netdui...?showtopic=1592 but it has variable-SPI : 5. Variable-bit SPI (9 to 15 bit) capabilities (courtesy of community member CW2)
ok, that's a good start. My guess is that it's some signal that isn't set up properly, but it's hard to tell without looking. Do you have some analyzer or just LED that you can use to see if you have signal on the pins out from the Netduino?
I've tested with some leds and all pins(13, 11, 0) have signal. Maybe I should try with an alpha firmware but I cannot find it although the beta I use has variable bit lenght SPI. I have no other ideas.
Did you connect one of the CSx pins as well? The 3 below are for the data, but then you need to select the module by hooking up one of the CSx-lines (I don't remember if it goes high or low, read datasheet or just try, no harm).
I've tested with some leds and all pins(13, 11, 0) have signal. Maybe I should try with an alpha firmware but I cannot find it although the beta I use has variable bit lenght SPI. I have no other ideas.
Did you connect one of the CSx pins as well? The 3 below are for the data, but then you need to select the module by hooking up one of the CSx-lines (I don't remember if it goes high or low, read datasheet or just try, no harm).
On the Netduino yea I think so (I don't have the code in front of me though). And you have GND as well hooked up? It should be DATA, WR, CSx and GND (plus power of course). It's hard to troubleshoot, but triple-check your connections, it can be hard to get the pins right on the matrix, I made a few mistakes there initially. It's possible there's been some change to the firmware that made my code incompatible, I don't have my stuff available so I can test it now either (moved, everything is in boxes). Sorry I can't help you.