Got a New Neopixel? Here Is a Quick Start Guide!
by Arbormakes in Circuits > Arduino
329 Views, 2 Favorites, 0 Comments
Got a New Neopixel? Here Is a Quick Start Guide!
I know that in my last instructable I said I will be regular, but I have not.
Well, I did try, but I did not have any good ideas:
Wax covered match: KABOOM!*
Crayon candle: Fissssssss... KABOOOM!**
Fancy math art: Got the angles wrong!
Anyway I'm back with something that did not explode, so I hope you enjoy it.
*Exaggeration
**Double Exaggeration
You Will Need:
An Arduino uno
A neopixel (mine is not the real thing but it works the same way)
A computer
A usb B to A type cable
The codes in step 4
Arduino IDE
Connection (neopixel)
I soldered these wires on myself.
There is a red wire connected to 5v (positive).
There is a black wire connected to GND (negative).
And a grey wire connected to digital input.
Ignore the white wire, we are not using it in this project.
Connection (Arduino)
Connect the RED wire to 5V, the BLACK wire to GROUND, the GREY wire to PIN 6, and the ARDUINO to the COMPUTER.
Codes: Boring But Important
I can't provide codes because I do not have pro membership and that means I cannot upload downloadable files.
But here is where you get them:
Open arduino IDE
Click on 'examples'
Click on 'from libraries'
Select 'adafruit neopixel'
Do not choose button cycler, it is not compatible with how we set the neopixel.
The codes you can use are:
RGBstrandtest
simple
simple new operartor
In the simple new operator look for this:
// pixels.Color takes RGB values, from 0,0,0 up to 255,255,255
pixels->setPixelColor(i, pixels->Color(0,150,0)); // Moderately bright green color
Check those three numbers, 0,150,0.
The first zero is the brightness of red, the 150 is the brightness of green, and the last zero is the brightness of blue. Adjust these and make your own colors!
here is one more:
strandtest
Enjoy!
Show your cool neopixel to your family and friends!
And if you keep a lookout for my latest instructables you will not be dissapointed. JUST CLICK THAT ORANGE 'FOLLOW' BUTTON!