Author Topic: Adafruit Neopixel is compatible  (Read 12376 times)

posicat

  • Newbie
  • *
  • Posts: 7
Adafruit Neopixel is compatible
« on: June 22, 2013, 09:42:54 am »
I just downloaded the code for the Adafruit neopixel LED strip and put it on one of my Digisparks, it works perfectly without modification (I ran the strandtest sample code).  I was driving an almost 1m long strip (I stole 2 of the LED's for another project) powering the strip and the Digispark off of 4.5v (3x AA batteries) without any issue.

Just thought I'd pass that along for anyone who was wondering.

PosiCat

lecreate

  • Newbie
  • *
  • Posts: 1
Re: Adafruit Neopixel is compatible
« Reply #1 on: October 04, 2013, 06:59:59 pm »
Good to know. I just purchased the NeoPixel 8 RGB LED strip for a small project and though the digispark would be a perfect application. Thanks for sharing!

cpldcpu

  • Newbie
  • *
  • Posts: 30
Re: Adafruit Neopixel is compatible
« Reply #2 on: October 06, 2013, 08:59:42 am »
You can also use my lightweight WS2812 library to control Neopixel/WS2812 LED strips. Compared to the neopixel lib it uses a lot less memory.

https://github.com/cpldcpu/light_ws2812


TimO

  • Newbie
  • *
  • Posts: 36
Re: Adafruit Neopixel is compatible
« Reply #3 on: October 20, 2013, 06:53:10 am »
I'm planning on trying to use one of the eight pixel units with a Digispark, to create a very simple bicycle POV unit.  Basically this is a strip of LEDs on a bicycle spoke, with the pattern changed as the wheel rotates, so Persistence Of Vision (POV) lets your create images on the wheel.

I think I can get away with mounting a small battery and the Digispark on the hub, and then just cable tie the NeoPixel to a spoke.  Very rough and ready, but enough to experiment with.  If it works, I may expand upon the number of LEDs, and waterproof things!

With no wheel synchronisation, I'll be limited to pretty coloured patterns, but with a reed switch on the wheel, and magnet on the frame, I should be able to do more complicated images, such as scrolling text messages. :)

TimO

  • Newbie
  • *
  • Posts: 36
Re: Adafruit Neopixel is compatible
« Reply #4 on: November 02, 2013, 03:51:58 pm »
I just plugged this all in and tried out the Adafruit test example, and it worked flawlessly!  I guess it's as much about how ridiculously easy it is to wire this up, three wires from the DigiSpark with +5V, GND and data, and you're done!

The only issue I have, is that with the Adafruit 8 NeoPixel stick, it's so bright, that it's hard to look at!  Not really a problem when I need to use it, but a pain when playing with it under normal room lighting. :)

dougal

  • Sr. Member
  • ****
  • Posts: 289
Re: Adafruit Neopixel is compatible
« Reply #5 on: November 03, 2013, 12:51:37 pm »
@TimO: Save your eyeballs with this global maximum brightness setting:

Code: [Select]
strip.setBrightness(127); // for half-strength. Try lower values if needed to find your comfort level.
Voila!

TimO

  • Newbie
  • *
  • Posts: 36
Re: Adafruit Neopixel is compatible
« Reply #6 on: November 04, 2013, 06:20:21 am »
LOL, yes that would make sense, although I'm considering stripping the code down to its bare minimum, so I can fit as much as possible into a DigiSpark, so the global brightness may go.  Once it's all spinning on a wheel, it'll probably dim the image out a bit anyway, and I may also reduce the brightness in an attempt to allow more LEDs to be illuminated simultaneously and/or increase battery lifetime.  If it's too bright for prototyping, I'll just use compiler directives to switch between a full and reduced brightness version.

marcmerlin

  • Newbie
  • *
  • Posts: 15
Re: Adafruit Neopixel is compatible
« Reply #7 on: March 29, 2017, 09:58:52 pm »
For anyone looking, the adafruit neopixel lib does work unmodified on both the original digispark (ATtiny85) and the digispark pro (ATtiny 167), however the digispark is so starved in RAM that you can only define around 100 pixels in your neopixel strand, or the chip will run out of RAM and nothing will light up.

Cowzero

  • Newbie
  • *
  • Posts: 2
Re: Adafruit Neopixel is compatible
« Reply #8 on: February 18, 2019, 01:31:34 am »
Thanks for the info It is a good website, no harassment.