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

LoL Shield


  • Please log in to reply
8 replies to this topic

#1 aylek

aylek

    New Member

  • Members
  • Pip
  • 4 posts

Posted 17 September 2010 - 06:15 PM

Hey fellas, I'm interested in getting an LoL shield (along with a Memsic accelerometer) working with a netduino. I know, physically, the two are compatible, but are they electrically? Can the netduino drive that many LEDs *and* a Memsic accelerometer? EDIT: sorry forget to include a link to the LoL shield, http://jimmieprodger...kits/lolshield/

#2 Chris Walker

Chris Walker

    Secret Labs Staff

  • Moderators
  • 7767 posts
  • LocationNew York, NY

Posted 17 September 2010 - 06:22 PM

I met Jimmie at MakerFaire Rhode Island and we're trying to find a way to make it work. Some of those shields require a lot of power from the digital pins directly--which the low-power ARM processor on the Netduino doesn't have. In the near future, both Jimmie and us will be playing with a Netduino/LoL shield combo to see what we can make work... It would certainly be cool! Chris

#3 aylek

aylek

    New Member

  • Members
  • Pip
  • 4 posts

Posted 17 September 2010 - 06:30 PM

I met Jimmie at MakerFaire Rhode Island and we're trying to find a way to make it work. Some of those shields require a lot of power from the digital pins directly--which the low-power ARM processor on the Netduino doesn't have.

In the near future, both Jimmie and us will be playing with a Netduino/LoL shield combo to see what we can make work... It would certainly be cool!

Chris


Chris, so its possible to drive the LoL shield using an external driver? Hmm.. if thats the case, and since I'm a sw engineer trying on a hw eng's hat, can you recommend a driver I can use? :D

#4 Chris Walker

Chris Walker

    Secret Labs Staff

  • Moderators
  • 7767 posts
  • LocationNew York, NY

Posted 17 September 2010 - 06:45 PM

Chris, so its possible to drive the LoL shield using an external driver? Hmm.. if thats the case, and since I'm a sw engineer trying on a hw eng's hat, can you recommend a driver I can use? :D


Not sure. I think you'd need to wire in external power and a large set of resistors. I'll know more as we play with it--but right now I just don't have any good info on the LoL shield.

I do have a pretty blue and white one here though. After World MakerFaire NY, perhaps I can break it out :)

Chris

#5 aylek

aylek

    New Member

  • Members
  • Pip
  • 4 posts

Posted 17 September 2010 - 07:02 PM

Not sure. I think you'd need to wire in external power and a large set of resistors. I'll know more as we play with it--but right now I just don't have any good info on the LoL shield.

I do have a pretty blue and white one here though. After World MakerFaire NY, perhaps I can break it out :)

Chris


I back it!

#6 aylek

aylek

    New Member

  • Members
  • Pip
  • 4 posts

Posted 17 September 2010 - 09:06 PM

Chris, on this note, is the netduino able to drive a smaller set of LEDs, without using external drivers? Maybe 11-12 LEDs?

#7 Chris Walker

Chris Walker

    Secret Labs Staff

  • Moderators
  • 7767 posts
  • LocationNew York, NY

Posted 17 September 2010 - 09:25 PM

aylek, you can drive up to 160mA total from the Netduino's pins (see tech specs for details). 11-12 LEDs at 8mA each is no trouble.

#8 Kevin Hazzard

Kevin Hazzard

    New Member

  • Members
  • Pip
  • 8 posts
  • LocationMid-Atlantic USA

Posted 14 February 2011 - 03:31 AM

aylek, you can drive up to 160mA total from the Netduino's pins (see tech specs for details). 11-12 LEDs at 8mA each is no trouble.


Hey Chris, any word on this? I have been trying to port the LoLShield Code to C#. The LoLShield on my N+ lights dozens of the LEDs when I permute enabling the analog and digital ports but I'm not sure it can drive enough to support an entire font, for example. I'm struggling with this code though from the Arduino:

    if (i < 6) {
        DDRD  = _BV(i+2) | displayBuffer[i*2];
        PORTD =            displayBuffer[i*2];

        DDRB  =            displayBuffer[i*2+1];
        PORTB =            displayBuffer[i*2+1];
    } else {
        DDRD =             displayBuffer[i*2];
        PORTD =            displayBuffer[i*2];

        DDRB  = _BV(i-6) | displayBuffer[i*2+1];
        PORTB =            displayBuffer[i*2+1];      
    } 

Is there any way set the Direction Direction Register from *safe* .NET code?

Thanks, Kevin

#9 Chris Walker

Chris Walker

    Secret Labs Staff

  • Moderators
  • 7767 posts
  • LocationNew York, NY

Posted 14 February 2011 - 03:43 AM

Hey Chris, any word on this? I have been trying to port the LoLShield Code to C#. The LoLShield on my N+ lights dozens of the LEDs when I permute enabling the analog and digital ports but I'm not sure it can drive enough to support an entire font, for example. I'm struggling with this code though from the Arduino:

    if (i < 6) {
        DDRD  = _BV(i+2) | displayBuffer[i*2];
        PORTD =            displayBuffer[i*2];

        DDRB  =            displayBuffer[i*2+1];
        PORTB =            displayBuffer[i*2+1];
    } else {
        DDRD =             displayBuffer[i*2];
        PORTD =            displayBuffer[i*2];

        DDRB  = _BV(i-6) | displayBuffer[i*2+1];
        PORTB =            displayBuffer[i*2+1];      
    } 

Is there any way set the Direction Direction Register from *safe* .NET code?

Thanks, Kevin


Kevin,

No need to write low-level C memory access code. You can use the Microsoft.SPOT.Hardware.TristatePort class to switch between Input and Output on the fly. If you don't need to switch back and forth, OutputPort is "direction out" and InputPort is "direction in".

Chris




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.