Netduino home hardware projects downloads community

Jump to content


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.
Photo

HT1632 interface (alpha)


  • Please log in to reply
53 replies to this topic

#21 kenNET

kenNET

    Advanced Member

  • Members
  • PipPipPip
  • 69 posts
  • LocationSweden

Posted 26 January 2011 - 05:21 PM

The source code is here: Netduino Stuff code, under LedMatrix.


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".

Any suggestions? I have this Matrix http://www.sureelect...oods.php?id=979

/Ken

#22 Hauk

Hauk

    Member

  • Members
  • PipPip
  • 18 posts
  • LocationSan Diego, CA

Posted 26 January 2011 - 06:06 PM

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.

#23 Chris Walker

Chris Walker

    Secret Labs Staff

  • Moderators
  • 7767 posts
  • LocationNew York, NY

Posted 26 January 2011 - 07:19 PM

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.

Chris

#24 kenNET

kenNET

    Advanced Member

  • Members
  • PipPipPip
  • 69 posts
  • LocationSweden

Posted 26 January 2011 - 09:33 PM

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.

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...

/Ken

#25 RvBCrS

RvBCrS

    Advanced Member

  • Members
  • PipPipPip
  • 31 posts
  • LocationZutphen, Netherlands

Posted 26 January 2011 - 09:49 PM

Hi Ken, great stuff.. Any chance you could post your code so I can try it out? Cheers, Ramon
Blog: Morrison Blog
Twitter: @rvbcrs

#26 kenNET

kenNET

    Advanced Member

  • Members
  • PipPipPip
  • 69 posts
  • LocationSweden

Posted 26 January 2011 - 10:06 PM

Hi Ken, great stuff.. Any chance you could post your code so I can try it out?

Cheers,

Ramon


Sure, but I'm just a "user", The code is written by Hauk. You find it here: https://github.com/H...L/NetduinoStuff

Pins are:
Matrix - Netduino
5 (WR) - 13
7 (DATA) - 11
1 (CS1) - 0 (I/O)

if you have more than one display, connect Matrix pin 2 (CS2) to I/O 1 (and so on if you have 3 or 4 matrix)

Also update Netduino firmware to latest Alpha.

Attached Files



#27 Hauk

Hauk

    Member

  • Members
  • PipPip
  • 18 posts
  • LocationSan Diego, CA

Posted 26 January 2011 - 10:17 PM

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...

/Ken



Ahh, sweet that it works for you!

#28 kenNET

kenNET

    Advanced Member

  • Members
  • PipPipPip
  • 69 posts
  • LocationSweden

Posted 26 January 2011 - 10:34 PM

Hauk, do you think this Matrix http://www.sureelect...ods.php?id=1095 will work with your code? It's HT1632C-based 32*16 LED Bi color. /Ken

#29 Hauk

Hauk

    Member

  • Members
  • PipPip
  • 18 posts
  • LocationSan Diego, CA

Posted 26 January 2011 - 10:55 PM

Hauk, do you think this Matrix http://www.sureelect...ods.php?id=1095 will work with your code? It's HT1632C-based 32*16 LED Bi color.

/Ken


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.

/Håkan

#30 kenNET

kenNET

    Advanced Member

  • Members
  • PipPipPip
  • 69 posts
  • LocationSweden

Posted 27 January 2011 - 10:25 AM

I asked Sure Electronics if the SPI interface and addressing for the pixels similar to DE-DP11114 and I got back

No, they are not the same. Have a nice day!


Think I need to study the doc when I have time.

Doc (32x16): http://www.sure-elec...2_Ver1.0_EN.pdf
Doc (the one I have now): http://www.sure-elec...7_Ver1.0_EN.pdf

Btw. I found new cool Matrix, what do you think of this one: http://www.embeddeda...pdetails/pid/66

/Ken

#31 Hauk

Hauk

    Member

  • Members
  • PipPip
  • 18 posts
  • LocationSan Diego, CA

Posted 27 January 2011 - 06:51 PM

I asked Sure Electronics if the SPI interface and addressing for the pixels similar to DE-DP11114 and I got back



Think I need to study the doc when I have time.

Doc (32x16): http://www.sure-elec...2_Ver1.0_EN.pdf
Doc (the one I have now): http://www.sure-elec...7_Ver1.0_EN.pdf

Btw. I found new cool Matrix, what do you think of this one: http://www.embeddeda...pdetails/pid/66

/Ken


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.

#32 haya

haya

    New Member

  • Members
  • Pip
  • 5 posts

Posted 28 April 2011 - 07:18 PM

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.

#33 Hauk

Hauk

    Member

  • Members
  • PipPip
  • 18 posts
  • LocationSan Diego, CA

Posted 28 April 2011 - 08:04 PM

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.



#34 haya

haya

    New Member

  • Members
  • Pip
  • 5 posts

Posted 28 April 2011 - 08:13 PM

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)

#35 Hauk

Hauk

    Member

  • Members
  • PipPip
  • 18 posts
  • LocationSan Diego, CA

Posted 28 April 2011 - 09:02 PM

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)



#36 Michel Trahan

Michel Trahan

    Advanced Member

  • Members
  • PipPipPip
  • 155 posts

Posted 28 April 2011 - 11:24 PM

I'll have to try this out :)
Started with C in 1985, moved to Vb3 ... to vb6 and stopped. Now started with .Net and learning C# and VB.net and wishing VB.net was on MF !

#37 haya

haya

    New Member

  • Members
  • Pip
  • 5 posts

Posted 29 April 2011 - 08:06 AM

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.

#38 Hauk

Hauk

    Member

  • Members
  • PipPip
  • 18 posts
  • LocationSan Diego, CA

Posted 29 April 2011 - 04:15 PM

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.



#39 haya

haya

    New Member

  • Members
  • Pip
  • 5 posts

Posted 29 April 2011 - 04:39 PM

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).

pin 0 is for CS right ?

#40 Hauk

Hauk

    Member

  • Members
  • PipPip
  • 18 posts
  • LocationSan Diego, CA

Posted 29 April 2011 - 04:59 PM

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.

pin 0 is for CS right ?






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

home    hardware    projects    downloads    community    where to buy    contact Copyright © 2016 Wilderness Labs Inc.  |  Legal   |   CC BY-SA
This webpage is licensed under a Creative Commons Attribution-ShareAlike License.