Gibraltar
Asked — Edited

Rgb Array Picture

has anyone got a picture of an RGB array out of its casing . I want to see if it can be widened to fit my bots eyes.


ARC Pro

Upgrade to ARC Pro

Get access to the latest features and updates before they're released. You'll have everything that's needed to unleash your robot's potential!

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

PRO
Synthiam
#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...

Gibraltar
#12  

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