InMoov syncronizing servos
I use MyRobotLab ( http://www.myrobotlab.org ) to run my 3D printed robotl InMoov (I http://www.mnmoov.fr ). This is a demo of how you can run servos syncronized. The right side servos are publishing ServoEvents that the left side servos are using. This way you can ensure that the servos always are in sync. In my robot, I'm using this method to make sure that the left and right eye move in sync. I also use it for the neck servos, so that the head can lean left and right. If the servos needs to move in opposite directions or with an offset, that can be done by using servo mappings. The two first values are the input values ( min and max ) and the next two are the output values that it should map to. The default is servo.map(0,180,0.180). For an offset of 10 degrees you would map like this (0,180, 10, 190). You can find an example of how it is done here: https://github.com/MyRobotLab/pyrobotlab/blob/master/home/Mats/SyncServos.py
Download
0 formatsNo download links available.