Control the LED color Without power the other servo
Is there a way to do so?
this is a very simple python script to change to RAPIRO's eye color.
i put a simple Loop and th crew some random RGB number so the colors would fade.
i wanted to use the #H fuction to turn of the servo but it power on the servo, change the led and power of. And so on. As a result, the robot is twitching,, thats kinda funny, any help on how to modify the Arduino sketch to do so?
here is the script if you want to play around..
bot = serial.Serial('/dev/ttyAMA0', 57600, timeout = 10)
#Define colors codes and maximum intensity
MAXRED = 255
MAXGREEN = 225
MAXBLUE = 255
MAXTIME = 050
RED = MAXRED
GREEN = MAXGREEN
BLUE = MAXBLUE
TIME = MAXTIME
s = "#PR" + str(RED).zfill(3) + "G" + str(GREEN).zfill(3) + "B" + str(BLUE).zfill(3) + "T"+ str(TIME).zfill(3)
#Print Max values, and Changing colors. All max= White.
#TIME is the fading speed 000 change the color instantaneously, 255 very slowly.
x = 1
print "To infinity and beyond! We're getting close, on %d now!" % (x)
x += 1
Probably, this problem would not be solved by software.
・Turn-on time of the servo switch too fast.
・ Input voltage of the DCDC to drop by the rush current of the servo.
・Soft-start does not work on the above factors. （And system reset）
・Voltage of the DCDC is not a normal value
・Between the DCDC and battery box, I was connected to an electric double layer capacitor (1.5F).
・I want to slow down the turn-on time of the servo switch. (I have not tried for modified of the board is required)
I have added Step-Down DCDC for Rpi and 1.5F capacitor.
It is worked fine. Your script also worked.
I also want to know if there are other ways.
Thanks oga for your information. Too bad nothing can be done software wise, your assumptions make senses..
script wise, i have no programming backround so i just doodle.
ideally i want to be able to use the wiimote and its ACC data to change the RDG led.
i'm sure you can help seeing how beautifully you polished the original ps3 controler script :)
I am not good at English and I'm not a good programmer.
However, I might be able to help you.
I'll try to modify wiimot script.
If I modify the script, I will up to git.
I modified script, and assigned motion to the button.