Award
Congratulations RobertL184, for answering the question and has received an EZ-Credit award! Share what you have learned and create a tutorial to help others by clicking here.

Help Connecting A Neopixel Ring

Assistance Requested

Help merne with their question and receive $10 of EZ-Credit to get more robots and parts from our store. The following information was provided about their previous efforts searching tutorials for a resolution.

merne claims to have checked these sources:
 
#41

@ d.cochrane, did all of it work?

#42

I just edited my last post, you can see what I tested.

#43

Thanks Dave, got it working - very cool. I am trying to change the color in the "Fade",
Could you explain to me what numbers in this string represent( not the port and baud rate)

SendSerial( D18,9600,"F255,0,0,0,0,0,50,20,1"Winky

Thanks

#44

/ Fr1,g1,b1,r2,g2,b2,s,t,d - Fade between color r1,g1,b1 and color r2,g2,b2 in s steps with interval t and direction d

Speeding it up or slowing it down would be the 50 and 20. the 50 is the number of steps it uses to fade, and 20 is how quickly it does it.

SendSerial(d0, 9600, "F255,0,0,0,0,0,50,25,R"Winky looks pretty good to me personally. The only one I couldnt get to work right was the Wipe.

/ Cr1,g1,b1 - Set whole Ring to same color specified by r1,g1,b1
/ Rt,d - Rainbow with interval t and direction d
/ Tr1,g1,b1,r2,g2,b2,t,d - Theater Chase between color r1,g1,b1 and color r2,g2,b2 with interval t and direction d
/ Wr1,g1,b1,t,d - Color Wipe in color r1,g1,b1 with interval t and direction d
/ Fr1,g1,b1,r2,g2,b2,s,t,d - Fade between color r1,g1,b1 and color r2,g2,b2 in s steps with interval t and direction d
/ Sr1,g1,b1,t - Scanner with color specified by r1,g1,b1 and interval t
/ Pp,r1,g1,b1 - Set individual pixel p to color specified by r1,g1,b1

@Robert, thanks again, you did an awesome job on this.

#45

Thanks Dave, How do I change to color in the Fade from red (thats what it's set to) to Blue?
Yes, Robert this is good!

#46

RED

Code:


SendSerial(d0, 9600, "F255,0,0,0,0,0,50,25,R")



GREEN

Code:


SendSerial(d0, 9600, "F0,255,0,0,0,0,50,25,R")




BLUE

Code:


SendSerial(d0, 9600, "F0,0,255,0,0,0,50,25,R")

#47

@Merne, I have a second arduino mini pro tested with the code loaded and ready to ship if you would like me to send it to you. Let me know.

#48

Thanks Dave, I get it now!

#49

Not sure why you have an R in the last field of Fade command. It should either be a zero or a one.

For forward:

Code:



SendSerial(d0, 9600, "F0,0,255,0,0,0,50,25,0")



For reverse:

Code:




SendSerial(d0, 9600, "F0,0,255,0,0,0,50,25,1")



Glad it is working for you. I didn't know if I should post it without testing, but I wanted you to have a decent jump off point. It should be fairly responsive to serial commands. I trust you will post any fixes. I have no clue at the moment why color wipe might not work. Only the serial decoding and setup of commands is really mine. The rest comes from the adafruit lesson 3.

Post a video of it working sometime if you can.

#50

will do when I get off of work. Thanks!



Okay, the neopixel ring, not camera controlled by an Arduino mini pro...