
Redzone
USA
Asked
— Edited

Hello all,
Has anyone used a NeoPixel Ring before. I can't figure out how to wire it or connect it to EZB. Here is a link to the NeoPixel Ring site it has a data sheet. http://www.adafruit.com/product/1586
I have look at the I2C but not sure what address or how it is wired.
Thank you.
You might be happier with this slight mod of your code. It allows individual pixels to be set using the original Cp,r,g,b command and adds an Sr,g,b command which will change the color of the entire neopixel ring. It looks like you want the ring to gradually go bright to dim to bright again. With the code you have it will be doing that every 2.5 seconds or so. That might be a bit fast. delay(50) is a 50millisecond delay you get 25 of these in each brightness change loop. so it will go from bright to dim in about 1.25 seconds and dim to bright in 1.25 seconds. That seems fast to me. You might want to only change the brightness by 1 instead of 10. Not sure how response it will be to serial commands with the longer delays though.
I figured I would play with the delay when I have something in my hands to use. I'm thinking of it more as a heart beat than anything right now. I'll check out your code.
I also want the user to be able to set the color and then forget it unless they want to change the color. I figured the loop would allow them to change the color and then perform the heart beat type of series. I am guessing what the results will be until I get my anxious hands on these components.
I've been playing with a Neo Ring the last couple of days and have a script working thru the EZBv4. I have tried running the scripts above and get this error message for all 3 - what am I missing?
Arduino: 1.6.3 (Windows 8.1), Board: "Arduino Uno"
Neo_ring_from_forum.ino:1:1: error: 'Code' does not name a type
Neo_ring_from_forum.ino:36:1: error: 'Adafruit_NeoPixel' does not name a type
Neo_ring_from_forum.ino: In function 'void setup()':
Neo_ring_from_forum.ino:47:1: error: 'strip' was not declared in this scope
Neo_ring_from_forum.ino: In function 'void loop()':
Neo_ring_from_forum.ino:63:1: error: 'strip' was not declared in this scope
Neo_ring_from_forum.ino:73:1: error: 'strip' was not declared in this scope
Neo_ring_from_forum.ino:80:1: error: 'strip' was not declared in this scope
Neo_ring_from_forum.ino:86:1: error: 'strip' was not declared in this scope
Error compiling.
Thanks
Remove the word Code: from the top of your arduino file and try to compile it again.
If it still doesn't work, make sure that you have the Adafruit_NeoPixel library loaded into your user libraries.
Ok, that worked, got it loaded, however when I enter C in the serial monitor nothing happens. Are there some color values that have to be added/changed?
I don't have my arduino or neopixel yet. I think ARC would use something like this
SendSerial(d0, 9600, "C0,255,0,0" )
with the wire from the signal of D0 to the serial pin or rx pin on the arduino. I'm new at this part for sure as I don't even have one yet.