
Perry_S
USA
Asked
— Edited
Trying to work through the neopixel tutorial. Is this working for others? I can't get the Arduino sketch to compile with new and old versions of IDE.
Is this working for others or is the problem on my end.
Thanks
You can delete your own tutorial.
If code formatting is giving you an issue, Upload the files as attached rather than pasting. I've mentioned this to you before. Simply press the attach file button. Select file, upload. Upload the files so they show as links. It's how I upload the source for big projects like plugin source etc.
Also, the tutorial update you made is missing the
I have had this working on my InMoov and on a couple of other bots. Unfortunately, the past 40+ hours I have been working because of an issue at work. Also, unfortunately this weekend is full of family stuff and more work. Trying to find time will be difficult but I will try to figure out what needs to happen to get it working again. It is just going to take time to find time to do it.
I haven't had any success Bob. I can compile the sketch from the reference thread and upload it. Once I did the neopixel quit running a previous script and went dark. Do you recall what the state of the ring was when the program initializes? Is it off? I don't know if the problem is with the Arduino and sketch or trying to activate it serially
I don't think it matters what state the ring is in when you activate it. I have found that I need to connect the EZB first then turn on the ring. If the Arduino is powered up before my EZB is connected it prevents my EZB from connecting. Try doing it in that order and see what happens.
No results with booting up in that order. When I mentioned initial state, I meant any lights or patterns on. Mine just stays dark. Trying to determine if the problem is Arduino to neo. I don't think so because I can run the adafruit examples through it.
Also, just to confirm, I am cutting and pasting the examples into the scripts I make with the script manager then running them. Is that the right way to activate it?
I just hooked up an old arduino that had the sketch on it and tested the neopixel ring. It works.
Now to go through the process of dumping the sketch from the tuto to it to see if I can get it to work. If not, I have this sketch backed up to my NAS and will get it for you.
First, let me document the wiring.
From EZ-B Ground on D5 to com port ground on Arduino Signal on D5 to RX on Arduino
Power regulator- This is for the Mini Pro. Yours may be different depending on the arduino. The Neopixel needs 5V though. 5v to Neopixel ring +5v_PWR pin 5v to Arduino 5v pin ground to Neopixel ring GND pin ground to Arduino GND pin on Power side of the board
Arduino Pin D6 to Input Pin on Neopixel Ring
Software setup - Installed Arduino 1.6.3 from https://www.arduino.cc/download_handler.php?f=/arduino-1.6.3-windows.exe
I am using the Adafruit NeoPixel by Adafruit version 1.0.4 library.
Adafruit_NeoPixel.zip
You will need to unzip the contents of the zip into your Arduino\libraries folder. [/EDIT]
The code verifies. I also verified it with Arduino Uno (I use mini pro's) and it compiled.
Here is my sketch that I use. NeoPixelRingSerial2.zip The zip file contains the sketch just in case a copy and paste doesn't work.