Beginners: please read this post and this post before posting to the forum.
0 Members and 1 Guest are viewing this topic.
I need to program a robot to move forward for a certain amount of time and then stop
won't you need encoders
Quote from: cooldog on January 29, 2008, 08:47:01 PMwon't you need encodersAt first, I thought so too, but I'm going to run tests to see how long it takes the robot to travel a distance and then just make the program delay that long and then stop the servos
this might work HOWEVER it will only be accurate if power to the servo is the same all the time , the same weight of robot , and the same surface.
Quote from: airman00 on January 30, 2008, 06:46:42 PMthis might work HOWEVER it will only be accurate if power to the servo is the same all the time , the same weight of robot , and the same surface.Hmmm... I've thought of the last two and they don't matter (always the same weight on a flat, smooth surface), but the power one concerns me... won't a servo run at the same speed you tell it to despite low battery power?
At any rate, all I have to do is run the tests for my robot with fully charged batteries, the same for the competition. It only has to go a maximum of 10 meters...
ok but make sure the batteries are fully charged when you test it and after each runif you use a voltage regulator ( a switching one, not a regulated one) then you can regulate the amount of voltage that they drawuse one regulator per servo . Also, what is the voltage all the batteries, how many AAs or whatever battery you are using?