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.

marcoe

Member Since 16 Apr 2012
Offline Last Active Oct 25 2015 01:29 AM
-----

#59432 WS2812 Addressable LEDs

Posted by marcoe on 29 July 2014 - 12:33 PM

Hi guys, this is not a "project" but it should be interesting to all the LED's fans.

 

I recently bought this set of addressable LEDs from Sparkfun:

https://www.sparkfun.../products/12877

They are very inexpensive RGB LEDs with a WS2812 inside, same idea behind Adafruit's NeoPixels ( https://learn.adafru...pixel-uberguide ) but in a regular 8mm or 5mm LED enclosure.

 

Apparently netduino's GPIO ports don't have enough speed to drive this directly as it needs 800Khz clock and data, so there is a tutorial  (https://learn.adafru...tduino/overview) on how to re-write netduino's firmware to make it happen. I'm not a big fan of messing with firmwares, so I searched some more and found jCoder's blog ( http://jcoder.me/blo...ws2812-rgb-led/ ) with a pretty great solution for this, which is to use SPI port to send data to the LEDs.

 

I made some changes on jCoder's code:

   - Changed the order of RGB data. Originally it was GRB because in WS2812 docs it describes this way, but these LEDs were behaving differently, so I changed to RGB and it worked.

   - Created some crazy color changing code.

 

 

Attached Files




#27411 Setting DateTime

Posted by marcoe on 16 April 2012 - 09:43 PM

Hi Marcoe and welcome to the Netduino forums!

I've got a SNTP client which fetches the time from the web and synchronises it with the netduino: Toolbox.NETMF.NET.SNTP_Client
The code that actually sets the date and time is one line:

Utility.SetLocalTime(this.LocalDate);


Thanks a lot !! it worked the way I wanted.


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.