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

Driving large LED-Matrix-Displays


  • Please log in to reply
33 replies to this topic

#21 sHINE

sHINE

    Member

  • Members
  • PipPip
  • 13 posts
  • LocationHamburg, Germany

Posted 22 June 2011 - 01:26 PM

Maybe I could translate the code to English but you might not need it since it should only illustrate the method I used to control the matrix... The display I've send to you is a 40x16 Red/Green one. The connection-scheme is inside the package, hope you understand it (It's hand-written ;)). Will give you the tracking code later via PM.

#22 sHINE

sHINE

    Member

  • Members
  • PipPip
  • 13 posts
  • LocationHamburg, Germany

Posted 23 June 2011 - 04:27 PM

Just analyzed my BASCOM-Routine to multiplex the display's: Can't use the most of it :( In Bascom it's possible to access each bit of a byte by directly indexing the bit like this: Dim LEDArray(64) As Byte 'We use every bit of a byte as a pixel, so for a 32x16 Single-Color-Display we need 64 bytes (64 bytes x 8 bits = 512 Pixel) To get the third pixel I just need to index the third bit directly: Pixel = LEDArray(x).3 This is the most efficient way to store each pixel in memory with no overhead. But this is not possible directly in .net, is it? Above method also doesn't support different brightness levels. I think I need to create some dictionary (is the collections namespace available in MF?) to store a custom object of type 'Pixel' which contains the color and brightness values... I'm on vacation from saturday for one week so I don't have much time to experiment ;( In the meantime, maybe Stefan got the display and will have time to play with it... btw. a quick tip for the row-decoding: To do it I just connect a 74HC595 Shift-Register before the display's input and connect the decoder's input to the shift-registers output. The Q7' 'Overflow' - Output of this register then connects to the display's data-input. So in the software one only needs to shift a bit more bits out to set the correct row. Hope you understand what I mean :) In short: For a 32x16 display, disable OE (high), shift 32 Bits of column-data out, shift 8 bits of row data out, latch (strobe) the register content to the output, enable OE (low). You could also connect the shift-register to the overflow-output of the display, you just need to swap the shifts then. Another option is to use a binary counter, like a 74HC4040 but then you need additional GPIO's. Regards Jan

#23 Stefan

Stefan

    Moderator

  • Members
  • PipPipPip
  • 1965 posts
  • LocationBreda, the Netherlands

Posted 28 June 2011 - 04:28 PM

Hi Shine, I just got your package, thanks! It's quite a large display actually, I take my first look at it the next weekend and keep you posted! Can't wait to play with it :D
"Fact that I'm a moderator doesn't make me an expert in things." Stefan, the eternal newb!
My .NETMF projects: .NETMF Toolbox / Gadgeteer Light / Some PCB designs

#24 sHINE

sHINE

    Member

  • Members
  • PipPip
  • 13 posts
  • LocationHamburg, Germany

Posted 14 July 2011 - 06:58 AM

Hey Stefan, Any news about this? Been very busy the last weeks, so I don't have time to play with it...

#25 Stefan

Stefan

    Moderator

  • Members
  • PipPipPip
  • 1965 posts
  • LocationBreda, the Netherlands

Posted 14 July 2011 - 07:17 AM

Been very busy the last weeks, so I don't have time to play with it...

I know the feeling :D
Same here, other things came in the way. Still have it laying on my desk though ;)
"Fact that I'm a moderator doesn't make me an expert in things." Stefan, the eternal newb!
My .NETMF projects: .NETMF Toolbox / Gadgeteer Light / Some PCB designs

#26 Stefan

Stefan

    Moderator

  • Members
  • PipPipPip
  • 1965 posts
  • LocationBreda, the Netherlands

Posted 16 July 2011 - 06:14 PM

When I only connect the 5V connections and Gnd connections, leds randomly burn, depending how I hold the display. Can it be just malfunctioning? Nothing else is connected.
"Fact that I'm a moderator doesn't make me an expert in things." Stefan, the eternal newb!
My .NETMF projects: .NETMF Toolbox / Gadgeteer Light / Some PCB designs

#27 Nevyn

Nevyn

    Advanced Member

  • Members
  • PipPipPip
  • 1072 posts
  • LocationNorth Yorkshire, UK

Posted 16 July 2011 - 06:20 PM

Have you tried grounding the inputs?

To be or not to be = 0xFF

 

Blogging about Netduino, .NET, STM8S and STM32 and generally waffling on about life

Follow @nevynuk on Twitter


#28 Stefan

Stefan

    Moderator

  • Members
  • PipPipPip
  • 1965 posts
  • LocationBreda, the Netherlands

Posted 16 July 2011 - 06:25 PM

Have you tried grounding the other connections?

nope. I could try that... tnx :)
"Fact that I'm a moderator doesn't make me an expert in things." Stefan, the eternal newb!
My .NETMF projects: .NETMF Toolbox / Gadgeteer Light / Some PCB designs

#29 Nevyn

Nevyn

    Advanced Member

  • Members
  • PipPipPip
  • 1072 posts
  • LocationNorth Yorkshire, UK

Posted 16 July 2011 - 07:02 PM

If the inputs are floating then you can get unpredictable results. Grounding the inputs gives a stable reference point.

To be or not to be = 0xFF

 

Blogging about Netduino, .NET, STM8S and STM32 and generally waffling on about life

Follow @nevynuk on Twitter


#30 sHINE

sHINE

    Member

  • Members
  • PipPip
  • 13 posts
  • LocationHamburg, Germany

Posted 26 July 2011 - 06:20 PM

Hey Stefan, the display is 100% operational, so Nevyn is right. The shift-register inputs needs to be connected to some defined level or you get some good ol Blinkenlights ;) btw. I did manage to optimize my bascom-code to be able to drive a 128x64 r/g-Display with nearly realtime update using an ftdi-controller... Regards Jan

#31 sHINE

sHINE

    Member

  • Members
  • PipPip
  • 13 posts
  • LocationHamburg, Germany

Posted 28 December 2012 - 09:45 PM

Hey ho...back on earth :)

 

Stefan, are u still alive? What's up with my display...still workin' on it? Or broke it, hehe?

 

And @Nevyn: Saw your led-cube on youtube...very impressive. Could you share some code? Have some 4x4x4 RGB-Cube without controller laying around...would be a nice project.

 

Regards

Jan



#32 Nevyn

Nevyn

    Advanced Member

  • Members
  • PipPipPip
  • 1072 posts
  • LocationNorth Yorkshire, UK

Posted 28 December 2012 - 10:37 PM

Jan,

 

 

And @Nevyn: Saw your led-cube on youtube...very impressive. Could you share some code? Have some 4x4x4 RGB-Cube without controller laying around...would be a nice project.

 

All of the code is public domain.  You can find it in the Wiki (would give you a link but the forum upgrade means the Wiki link has disappeared for the moment).  Or you can find it on Channel9 or my blog and also on Codeplex.

 

Hope this helps,

Mark


To be or not to be = 0xFF

 

Blogging about Netduino, .NET, STM8S and STM32 and generally waffling on about life

Follow @nevynuk on Twitter


#33 carb

carb

    Advanced Member

  • Members
  • PipPipPip
  • 352 posts
  • LocationCrystal River, Florida

Posted 29 December 2012 - 12:00 AM

Mark,

 

The Wiki link is http://wiki.netduino.com/



#34 sHINE

sHINE

    Member

  • Members
  • PipPip
  • 13 posts
  • LocationHamburg, Germany

Posted 23 October 2013 - 04:27 PM

Hi there!

 

Wow, time is tickin' away...Stefan, is my display still assembled or did you reused the shiftregisters for another project? ;)

 

Please give me an update. My last success was driving 128x64 RG-display with the netduino. That was in Jan. 13 or so. We moved to another house and all my electronic-hardware is still sleeping in the basement since then :(

 

Regards,

Jan






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.