space




Monday, August 13, 2012

Servo Test

A servo test of a robot built using AS3 glue, flash and an Arduino Uno.


(click to enlarge)

Some notes, the board only supports up to two servos and so does flash glue. You can by changing some of the programming get the AS3 glue to support as many servos as you want but you have to power them separately (i used a simple radioshack voltage regulator and a nine volt battery.) also you should multiplex the movements so that the servos are accurate. otherwise you get a lot of analog noise and the servos are not that precise. to multiplex in flash action script i did something like the following:

var speed:Number = 500;
setInterval (move, speed, 9, 10);
setInterval (move, speed*2, 10, 145);

function move (Pin:Number, Rotation:Number):Void
{
a.writeAnalog(Pin,Rotation);
}


No comments:

Post a Comment