ARC Pro

Upgrade to ARC Pro

Elevate your robot's capabilities to the next level with Synthiam ARC Pro, unlocking a world of possibilities in robot programming.

#57  

@rentaprinta I originally put the arduino code together from examples on the adafruit site. (There are references in the posts.) I didn't have a neopixel ring to test it and still don't. It is quite possible that there is a mistake/error in the code. It seemed to solve the problem the original poster of this string of messages needed a fix for. So the poster was happy and I was glad I could help.

#58  

@RobertL184

Sorry for the question: So the best solution is , not to use the "scanner" fx or do you know a method or somebody what/who can fix the error?

Boris

#59  

@renta, I'm not sure what the Scanner FX looks like. Can you describe it? Maybe I have it in my Arduino sketch.

#60  

Hi Bob!

The Scanner FX is a red dot/pixel what starts on the left site and turn to the right and back to the left and so on.

Image the "Knight Rider" Light but not as a stripe - now in a circle.

Sometime the red light starts and make the moving, but sometime the red light goes on for one second and then goes off and thats it.

Like i said. all other oves like the Wipe;Fade;Rainbow,Color works fine! Only the Scanner makes problems!

Boris

#61  

@Renta, I hope this is the "Scanner FX you're looking for. I think we are using the same Arduino sketch, if not then it probably won't work - I could send you mine.

Try this, this will run indefinitely or until another command is sent,


SendSerial(1.D18, 9600, "W250,0,0,250,0,0")
SendSerial(1.D18, 9600, "C0,0,0")
SendSerial(1.D18, 9600, "S250,0,0,250,0,0")

If you want it run for a set period of time, Try this example, this will run for 60 seconds, then stop.


SendSerial(1.D18, 9600, "W250,0,0,250,0,0")
SendSerial(1.D18, 9600, "C0,0,0")
SendSerial(1.D18, 9600, "S250,0,0,250,0,0")
sleep(60000)
SendSerial(1.D18, 9600, "C0,0,0")

Change the port to your setting

#62  

@RobertL184 Hi Robert, I tried your code for multitasking with a neopixel ring and no matter what input I use (C, R, F or T....) the pixels stay dark! I know the HW setup and connections are all correct. Am I missing something or there is something missing from the code? In order to successfully compile the code I added

void Ring1Complete();

right above the neoPatterns Also, added

Ring1.setBrightness(50);

to set overal brightness

And my final question is: I have added a potentiometer to Arduino multi-tasking code part-3 which is working fine. The pot is for controlling the brightness, however I would like to learn how to remove serial input from your code and make it go through all the animations steps within the loop. I now I can use the strandtest to achieve my goal, but then due to delay() I have to wait for the entire loop to complete before seeing the new brightness setting (through potentiometer).

Thanks, Ron

#63  

If you don't want the serial interface you should check out the code in this adafruit learning guide.

https://learn.adafruit.com/multi-tasking-the-arduino-part-3/overview

You can modify the update routine to read your potentiometer and modify the brightness at that point. It may not modify the brightness immediately but it should modify the within a reasonable amount of time.

#64  

@RobertL184 Thank you for your quick reply. I'm sorry if I was not clear with question. I have the pot working with the Adafruit multi-tasking part-3 and it's responsive. I would like to get your code working for my project and the issue I am running into is that all LEDs are dark and I have combed through the code and I was not able to find the culprit.

BTW - I added my potentiometer code to your code and monitored it via serial UI and it's working. I would like to know if there is anything missing from the code causing the ring to stay dark. If not, then I am doing something wrong.

Thanks