Society of Robots - Robot Forum
Software => Software => Topic started by: SciOlyStudent on January 29, 2008, 04:15:59 PM
-
I need to program a robot to move forward for a certain amount of time and then stop. I was thinking I could take the 50$ robot program and just delete everything, then putting in for it to move straight and then delay a certain amount of time. I have no programming experience whatsoever. Can someone fill in the blanks for me?
-
I need to program a robot to move forward for a certain amount of time and then stop
1/turn motors on
2/delay
3/motors off(you can give it a reverse voltage if its dc motor for a short amount of time as a break)
-
Sorry, I forgot to say I was using servos... what command would I give the microcontroller to make the servos stop?
-
you just tell e servo to go to a specific angle, and when its there it stops, did you modify ur sercos to make full turns?
-
I did modify the servos for full rotations. Now I have another problem... when I try to write the program I substituted for the photovore program, it wouldn't write... It says the device is missing or there is an unknown device. Any solutions?
-
search. million threads with the same question
-
won't you need encoders
-
how do you turn servos off?
-
stop sending the pulse (http://i43.photobucket.com/albums/e398/RussianCommy/smilies/eyes.gif)
-
lol ok, thx
-
won't you need encoders
At 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
-
won't you need encoders
At 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.
-
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.
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?
-
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.
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?
well the servo will run slower with less power , im assuming since it is a DC motor inside
maybe this calls for a switching regulator for each servo?
-
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...
-
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 run
if you use a voltage regulator ( a switching one, not a regulated one) then you can regulate the amount of voltage that they draw
use one regulator per servo .
Also, what is the voltage all the batteries, how many AAs or whatever battery you are using?
-
ok but make sure the batteries are fully charged when you test it and after each run
if you use a voltage regulator ( a switching one, not a regulated one) then you can regulate the amount of voltage that they draw
use one regulator per servo .
Also, what is the voltage all the batteries, how many AAs or whatever battery you are using?
Regular AAs... I know I know, its a waste but the competition limits me to using no more than 4 batteries at a maximum of 1.5V each... I would use NiMH except I couldn't find one with a voltage higher than 1.2V and I need 6V.
-
rechargable AA are 1.2v ;D