Author Topic: Digital rgb ledstrip driven by RFDuino  (Read 43574 times)

PeterS

  • RFduino Newbie
  • *
  • Posts: 18
  • Karma: +0/-0
    • View Profile
Digital rgb ledstrip driven by RFDuino
« on: November 07, 2013, 04:36:22 PM »
(Post should be in 'Interesting Uses and Applications' but could make a new topic over there  :(   )
Dear all,

I'm thinking about a project to control a digital RGB ledstrip with the RFDuino.
(I would like to start using the RFDuinos & NeoPixels in (next years) halloween props)

The ledstrip I had in mind is the "Adafruit NeoPixel Digital RGB LED Weatherproof Strip" (http://learn.adafruit.com/adafruit-neopixel-uberguide) or any compatible WS2812B LED with build in WS2811 IC

But some questions before I buy those strips (or 'Breadboard-friendly RGB Smart NeoPixel')
  • NeoPixels are normally 5v driven. Does somebody has experience with driving them with 3.3v output like RFDuino ?
  • According to the tutorial the NeoPixels need a 'strict' 800 kHz signal. For this reason the raspberry pie and order versions of arduino aren't recommended.
    Will this be an issue with the RFDuino's ?

kos

  • RFduino Newbie
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Re: Digital rgb ledstrip driven by RFDuino
« Reply #1 on: November 10, 2013, 11:08:14 AM »
Peter,

I would think it should work just fine. The reason the rpi and similar will not work is because they are not "real-time". I have a NeoPixel Ring and I'm using a Teensy 2.0 with it at the moment without issue. I anticipate once I receive my RFduinos it should be fine.

Now for the 3.3v question, I know that the power source for the NeoPixel VCC needs to be 5V, and I believe DIN must be as well. You may need a voltage step-up and a logic level converter to interface a 3.3v device with a 5V device. If you want to try parsing through the datasheet for the controller on that strip, here's a link: http://www.adafruit.com/datasheets/WS2811.pdf It looks like you may be able to get away without a logic level converter in this case.

I'm very curious about this as well, since I am planning to use an RFduino for my NeoPixel project. I'll let you know what I find out.

PeterS

  • RFduino Newbie
  • *
  • Posts: 18
  • Karma: +0/-0
    • View Profile
Re: Digital rgb ledstrip driven by RFDuino
« Reply #2 on: November 13, 2013, 01:17:38 PM »
Kos,

I installed the adafruit_neopixel library but when compiling for the RFDuino board I receive a page full of compile errors
ie
xx\libraries\Adafruit_NeoPixel\Adafruit_NeoPixel.cpp: In member function 'void Adafruit_NeoPixel::show()':
xx\libraries\Adafruit_NeoPixel\Adafruit_NeoPixel.cpp:788: error: 'Pio' was not declared in this scope
xx\libraries\Adafruit_NeoPixel\Adafruit_NeoPixel.cpp:788: error: 'port' was not declared in this scope
xx\libraries\Adafruit_NeoPixel\Adafruit_NeoPixel.cpp:789: error: expected initializer before '*' token
...
(similar to what Josh is describing in a 'RGB' post in the Getting Started section)

Library is correctly installed because when compiling for the UNO board I have 0 errors.

=> somewhere the adafruit libraries a (not yet) ready for the RFDuino (or RFDuino not reay for the Adafruit libraries  ;) )
Unclear to me if tweaking is need in the adafruit libraries.
or that something should be improved in the definition of the RFDuino


resources :
http://learn.adafruit.com/adafruit-neopixel-uberguide/arduino-library
http://learn.adafruit.com/adafruit-all-about-arduino-libraries-install-use/arduino-libraries
« Last Edit: November 13, 2013, 02:35:46 PM by PeterS »

PeterS

  • RFduino Newbie
  • *
  • Posts: 18
  • Karma: +0/-0
    • View Profile
Re: Digital rgb ledstrip driven by RFDuino
« Reply #3 on: November 13, 2013, 03:13:41 PM »
Similar issues with the fastSPI_LED2 library  (https://code.google.com/p/fastspi/)

Compile errors when compiled for RFDuino.
NO compile errors when same sample file (FirstLight) is compiled for Arduino UNO

PeterS

  • RFduino Newbie
  • *
  • Posts: 18
  • Karma: +0/-0
    • View Profile
Re: Digital rgb ledstrip driven by RFDuino
« Reply #4 on: November 15, 2013, 03:50:54 AM »
Looks like the rfduino is already on the radar of the fastled.io (fastspi_led) community. https://plus.google.com/102282558639672545743/posts/craCLvj4629

dale3h

  • RFduino Newbie
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Re: Digital rgb ledstrip driven by RFDuino
« Reply #5 on: November 21, 2013, 01:00:24 AM »
From what I understand, it will require modifications to the RFduino libraries. Let's hope someone out there can make these modifications because I am highly interested in running my Adafruit NeoPixel 144 and NeoPixel 60 strips with RFduino.

RFadmin

  • Administrator
  • *****
  • Posts: 77
  • Karma: +9/-2
    • View Profile
Re: Digital rgb ledstrip driven by RFDuino
« Reply #6 on: December 04, 2013, 12:31:49 PM »
We are looking at this library and will try to add support soon  ;)

PeterS

  • RFduino Newbie
  • *
  • Posts: 18
  • Karma: +0/-0
    • View Profile
Re: Digital rgb ledstrip driven by RFDuino
« Reply #7 on: December 19, 2013, 11:16:43 AM »
RFadmin,
Any progress in the support for the fastled.io libray ?


mkay

  • RFduino Team
  • *****
  • Posts: 405
  • Karma: +15/-0
    • View Profile
Re: Digital rgb ledstrip driven by RFDuino
« Reply #8 on: December 20, 2013, 02:04:02 PM »
Hi, we haven't used the fastio library, but we have been able to use the WS2812 library with modifications to drive the led strings. We are still testing it, but we should have a video and more info soon.

akbsteam

  • RFduino Newbie
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Re: Digital rgb ledstrip driven by RFDuino
« Reply #9 on: January 06, 2014, 05:03:31 AM »
mkay: is there an alpha version of that code I can try playing with?

disk91

  • RFduino Jr. Member
  • **
  • Posts: 24
  • Karma: +1/-0
    • View Profile
    • www.disk91.com
Re: Digital rgb ledstrip driven by RFDuino
« Reply #10 on: January 11, 2014, 07:28:00 AM »
Hi, we haven't used the fastio library, but we have been able to use the WS2812 library with modifications to drive the led strings. We are still testing it, but we should have a video and more info soon.

Hello, I'm trying to manage this kind of leds, but my timing seems to not be really good :( can you share your code ?
Are you driving the control of led with 3.3V or 5V ? if 5V what translator are you using ?
http://www.disk91.com - website
https://twitter.com/disk_91 - follow me on twitter

disk91

  • RFduino Jr. Member
  • **
  • Posts: 24
  • Karma: +1/-0
    • View Profile
    • www.disk91.com
Re: Digital rgb ledstrip driven by RFDuino
« Reply #11 on: January 12, 2014, 09:24:52 AM »
if it can help people, take a look to this article in my website, you'll find de C/asm code I used to get WS2812b lighting with rfduino :) enjoy !
http://www.disk91.com/2014/technology/hardware/rgb123-256-leds-and-rfduino-first-hacks/
http://www.disk91.com - website
https://twitter.com/disk_91 - follow me on twitter

sgilroy

  • RFduino Newbie
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Re: Digital rgb ledstrip driven by RFDuino
« Reply #12 on: January 27, 2014, 05:49:45 AM »
Has any progress been made with adding support for RFduino to either the FastLED or NeoPixel libraries? It looks like @RFadmin has not been active in the RFduino forum since December. Thanks!

zonker

  • RFduino Newbie
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Re: Digital rgb ledstrip driven by RFDuino
« Reply #13 on: January 29, 2014, 09:20:29 AM »
  Thank you for posting the links and info. I also got an RGB-123 kit, but I've been working with WS2811 strips and Arduino Pro Mini boards. February is my month to hack. (Maybe January was a much-needed vacation for our moderator? Hopefully, he'll be back soon, with help on the libraries.  :-)

if it can help people, take a look to this article in my website, you'll find de C/asm code I used to get WS2812b lighting with rfduino :) enjoy !
http://www.disk91.com/2014/technology/hardware/rgb123-256-leds-and-rfduino-first-hacks/

mkay

  • RFduino Team
  • *****
  • Posts: 405
  • Karma: +15/-0
    • View Profile
Re: Digital rgb ledstrip driven by RFDuino
« Reply #14 on: January 29, 2014, 12:40:13 PM »
Hi guys, this is not an official release, but it is a modified version of the Adafruit neopixel library with RFduino support.

Its working well on my end, let me know if you guys have any trouble with it.

 

anything