Sabertooth Kangaroo icon Sabertooth Kangaroo — Movement panel enabling Kangaroo & Sabertooth encoder-based speed/velocity control, UART/PC serial options, tuning and encoder setup. Try it →

ARC Pro

Upgrade to ARC Pro

Stay on the cutting edge of robotics with ARC Pro, guaranteeing that your robot is always ahead of the game.

Author Avatar
Ireland
#9  

@bborastero one possibility only if you have lots of space is to use two RGB arrays then you could use one array for left and one for right I am considering this option at present but I have plenty of space

Author Avatar
PRO
Synthiam
LinkedIn Thingiverse Twitter YouTube GitHub
#10  

@bborasteroyour script is good... it will change the color randomly. what you can do, is use the ServoSpeed() command to add a little bit of smooth transition between random colors. Such as this...


servospeed(d9, 1)
servospeed(d10, 1)
servospeed(d11, 1)

:loop
PWMRandom(d9,0,100)
PWMRandom(d10,0,100)
PWMRandom(d11,0,100)
Sleep(1000)
goto (loop)

I set the sleep() to a longer delay so you can wait for the transition to complete. The ServoSpeed() sets the ramping between two different PWM positions. Here is a video example...

This shows the PWM for the servo...

This shows how the ramping occurs...

#11  

Ok, that is something I did not know... Nice tip!

Author Avatar
Gibraltar
#12  

thanks @DJ Sures always good to hear from you :)