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

Using NeoPixels with Netduino Plus 2 - adafruit learning system


  • Please log in to reply
8 replies to this topic

#1 Chris Walker

Chris Walker

    Secret Labs Staff

  • Moderators
  • 7767 posts
  • LocationNew York, NY

Posted 08 November 2013 - 01:22 AM

Thank you for Frank Zhao for hacking the firmware on his Netduino and building out support for NeoPixels. Very cool.

Overview
"Good news for Netduino users who have been eyeing the glamorous NeoPixels strips and shapes in the Adafruit shop! We have managed to get NeoPixels working on the Netduino Plus 2 (shown below with a NeoPixel 8x8)"
Using NeoPixels with Netduino Plus 2 (learn.adafruit.com)

Posted Image

Chris

#2 Spoon

Spoon

    Member

  • Members
  • PipPip
  • 14 posts
  • LocationFort Collins, CO

Posted 08 November 2013 - 06:13 PM

I saw this blog post last night but haven't had a chance to check out the details.  Exciting!

 



#3 Dr Who

Dr Who

    Advanced Member

  • Members
  • PipPipPip
  • 261 posts
  • LocationNYC

Posted 09 November 2013 - 12:10 AM

Hello!

Is this just for the NP2 device or the NP1 or what? All I have here is the Netduino and the Mini. The author says the things are available from Github which is a good thing, but what devices are the target? And that means specific ones.



Doctor Who
"This signature does not exist!"

#4 Chris Walker

Chris Walker

    Secret Labs Staff

  • Moderators
  • 7767 posts
  • LocationNew York, NY

Posted 09 November 2013 - 12:46 AM

Hi Dr. Who, The article addresses Netduino Plus 2 specifically. You may be able to adapt it to Netduino gen 1 boards, but it's a native code hack so it may or may not be easily portable. Chris

#5 Dr Who

Dr Who

    Advanced Member

  • Members
  • PipPipPip
  • 261 posts
  • LocationNYC

Posted 09 November 2013 - 01:27 AM

Then that is the problem. I believe I can scare up the tools to rebuild the firmware both of my gen one devices, but at this point I'm facing a sign in a cave.

 

This does not explain why there are three individuals staring at the firm's address.



Doctor Who
"This signature does not exist!"

#6 Mark Anderson

Mark Anderson

    Member

  • Members
  • PipPip
  • 25 posts
  • LocationChciago

Posted 02 January 2014 - 05:48 PM

Would like to use these, but modifying firmware puts me off. How easy is it and what are the implications (upgrades, etc.)



#7 Chris Walker

Chris Walker

    Secret Labs Staff

  • Moderators
  • 7767 posts
  • LocationNew York, NY

Posted 03 January 2014 - 11:53 AM

Hi Mark,

Would like to use these, but modifying firmware puts me off. How easy is it and what are the implications (upgrades, etc.)

Netduino is designed for learning, so you can put your own firmware on there and switch back to the official firmware anytime. Just run Netduino Update and "upgrade" your board and you'll be back to the latest production firmware. If you're familiar with C and command-line C compilers, it can be a fun adventure. Chris

#8 Nils

Nils

    New Member

  • Members
  • Pip
  • 1 posts

Posted 11 January 2014 - 01:05 PM

As I didn't want to flash the firmware too, I've played around with some code and came up with a tiny solution based on SPI.
 
The idea behind it is that the MOSI pin might be fast enough for the needed timings. Actually others have successfully tried this with other microcontrollers before, so I "just" ported the approach to C# for a Netduino Plus 2.
 
The code is up on github: https://github.com/j...etMFNeoPixelSPI
 
Disclaimer: I'm not sure if this is a "valid" approach, and the code is not perfect, but it worked for me, at least for two NeoPixel modules (as I don't have a full LED stripe, so maybe someone might test it).
 


#9 curt c

curt c

    New Member

  • Members
  • Pip
  • 4 posts

Posted 20 November 2014 - 05:12 AM

Thank you Nils!

And for any other newbie (like me) that comes across this, the MOSI pin is 11 (the pin you connect to the data input on the neopixel). I saw that the NeoPixelSPI constructor took a pin as a parameter (Pins.GPIO_PIN_D10) and assumed that was the data pin. :wacko:






1 user(s) are reading this topic

0 members, 1 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.