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

Control WS2811 LED Strip

ws2811

  • Please log in to reply
8 replies to this topic

#1 derekbackus

derekbackus

    New Member

  • Members
  • Pip
  • 2 posts

Posted 05 January 2013 - 02:20 PM

Hi all.

 

Does anyone have an example of the Netduino controlling a WS2811 LED strip? I've been looking for samples, but all I can find is references to FastSPI used with the Arduino but nothing for the Netduino.

 

Thanks, Derek



#2 Stefan

Stefan

    Moderator

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

Posted 06 January 2013 - 11:08 AM

Hi Dereck and welcome to the Netduino forums!

 

I haven't seen the WS2811 being used with a Netduino. The WS2801 works though, code can be found at http://netmftoolbox....are.RgbLedStrip

Not sure if it would work the same 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

#3 JerseyTechGuy

JerseyTechGuy

    Advanced Member

  • Members
  • PipPipPip
  • 870 posts

Posted 06 January 2013 - 01:02 PM

I'm working on building a RBG illuminator for Paranormal Investigation and have looked at both the WS2801 and WS2811. I believe the WS2801 is being phased out and the 2811 is the replacement. The main difference is a 3wire interface vs 4wire. Cost is also a little less on the WS2811. I haven't gotten far enough to tell if the drivers are different as I'm still designing the prototype boards but what I've read they should be the same.

#4 derekbackus

derekbackus

    New Member

  • Members
  • Pip
  • 2 posts

Posted 06 January 2013 - 01:59 PM

From what I've read, the timing is different (and critical) for the 2811. I've read here (http://doityourselfc...l-compatibility) that the 1804 and 2811 are compatible, but with timing differences.

 

I'm not advanced enough to know how to make it all work yet.

 

Thanks, Derek



#5 Nevyn

Nevyn

    Advanced Member

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

Posted 06 January 2013 - 02:11 PM

Stefan,

 

Not sure if it would work the same though.

 

They are radically different.  There was a recent post on HackaDay about LEDs controlled with the WS2811.  You can find the write up here

 

Regards,

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


#6 charliewallace

charliewallace

    New Member

  • Members
  • Pip
  • 1 posts

Posted 21 January 2013 - 06:44 AM

Question - is the OneWire library the solution?

 

I'd like to use a Netduino Plus 2 to control this 60-led-per-meter strip, that uses the WS2811: https://www.adafruit.com/products/1138, But the description says I can't use Netduino:  

 "...it will not work with the Raspberry Pi, Basic Stamp, NETduino, any other interpreted/virtual machine microprocessor..."

 

Tragic that Netduino fails to pass this test, given how much more powerful the cpu is compared to the AVR. 

 

I've read on this forum that the OneWire library didn't make it into the NETMF 4.2 release, but was included in some beta version of 4.1.  Could someone comment on whether this could be used to achieve the timing stability needed for this? 

 

Or - is it feasible to implement unmanaged code to send out the bits, and just mask interrupts for timing stability?  You need to send all the led data at once, but you don't need to refresh, so this would only hold off the managed code when the state changes.

 

I understand that the actual device being used is the WS2814[color=#ff0000;]2812[/color], which combines the leds with an embedded ws2811 in a single package.  Here's the data sheet:

  http://www.nooelec.c...iles/WS2812.pdf

 

thanks!

  Charlie



#7 Juzzer

Juzzer

    Advanced Member

  • Members
  • PipPipPip
  • 135 posts
  • LocationHertfordshire, UK

Posted 29 April 2013 - 12:46 PM

Well [color=rgb(40,40,40);font-family:helvetica, arial, sans-serif;] "...it will not work with the Raspberry Pi, Basic Stamp,[/color] NETduino[color=rgb(40,40,40);font-family:helvetica, arial, sans-serif;], any other interpreted/virtual machine microprocessor..." is wrong ;)[/color]

 

http://www.ghielectr...share/entry/649



#8 kathy82

kathy82

    New Member

  • Members
  • Pip
  • 1 posts

Posted 30 July 2013 - 03:46 AM

[color=rgb(40,40,40);font-family:helvetica, arial, sans-serif;]On Netduino, the SPI itself is very fast, but the delay between one "Write" and another one is very long. So long that the natural delay itself could act as "start" for the ws2801 led strip. [/color]



#9 TinkeringTurtle

TinkeringTurtle

    Advanced Member

  • Members
  • PipPipPip
  • 55 posts

Posted 16 September 2014 - 05:41 PM

On Netduino, the SPI itself is very fast, but the delay between one "Write" and another one is very long. So long that the natural delay itself could act as "start" for the ws2801 led strip.

 

In case someone runs across this thread, check out this tutorial to write your own low level write function to get around this...

 

https://learn.adafru...tduino/overview






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.