Rapiro Led Color Functionality?

Hi,

I have been using the test sketch of rapiro for a little while now and my rapiro functions fine. When I do the walk serial command, its eyes light up blue. When I do the other serial commands like wave both hands, however, the green display of the led only lights up for a few seconds and does not light up anymore unless I do the stop serial command to restart it. This is basically the led color functionality for the other functions of rapiro for me besides the walking. My power supply is fine as it is using Energizer Recharge batteries on the battery pack that are fully charged, so power is not an issue. What can I modify in the sketch so that the leds light up while rapiro moves while doing its other functions? Any help would be appreciated. Thanks.

posted by roboticsmaster on 2015-04-10 09:45

The 3 before last numbers in each item in the movements array are the RGB values so for example:

{ 90,120,120,130, 90,180, 90, 90, 90, 90, 90, 90,255,2554 253, 7},

255 = red
254 = green
253 = blue

If all of those are zero Rapiro's eyes will be off.

With sketch 7 the eyes should always be blue, if they're still going off maybe the wires aren't push in enough?

posted by iamnotwhoyouthink on 2015-05-01 05:30

Okay, forgive me if what I say is wrong:
I have to manipulate the last three numbers in the main sketches to manipulate the led values?

I am looking at the green led sketch and have analyzed the last three numbers in two different sets.

{ 90, 90,120, 90, 90, 60, 90, 90, 90, 90, 90, 90, 0, 0, 0, 10},
{100, 90,120,130,110, 60, 50, 70, 90, 90, 90, 90, 0,255, 0, 5},
{ 90, 90,120, 90, 90, 60, 90, 90, 90, 90, 90, 90, 0,255, 0, 5},
{ 80, 90,120,130,110, 60, 50, 70, 90, 90, 90, 90, 0, 0, 0, 5},
{ 90, 90,120, 90, 90, 60, 90, 90, 90, 90, 90, 90, 0,255, 0, 10},
{ 90, 90,120,130,110, 60, 50, 70, 90, 90, 90, 90, 0,255, 0, 5},
{ 90, 90, 0, 90, 90,180, 90, 90, 90, 90, 90, 90, 0, 0, 0, 0},
{ 90, 90, 0, 90, 90,180, 90, 90, 90, 90, 90, 90, 0, 0, 0, 0}

So from what I can tell, the three numbers correspond to the red, green and blue value of the rgb led, and in this case, the highest value of 255 is put in the green value in the green sketch. So assuming that the green is correctly corresponding to its right value, and this will go the same for the other colors based on their corresponding values, is it the millisecond time as the last number of the sketch that affects how long Rapiro's lights stay on for a movement like waving both hands and having a yellow light display? I thank you for the info on the organization of values, it's just I still don't understand what it is in the sketch specifically that only turns on the led colors other than blue for a short time. The connection from the rgb led board to the main board is fine, and the blue always shows up for me but to no avail, the other colors only display on the different movements for a short time. Thank you for your patience.

posted by roboticsmaster on 2015-05-05 10:19

Or, perhaps it could be another situation where the servos are taking the current of the battery pack and the led is not getting enough. This is possible as the walking command relies on four servos (legs) which isn't too much power drawn to the servos, but with the arm movement, six servos (both arms) draw out all the current and leave little for the rgb led board. I'll have to experiment and purchase a suitable adapter soon..

posted by roboticsmaster on 2015-05-05 10:37

Read Terms of Service upon submitting. 投稿する前に利用規約をお読みください。