At least try to make up the subroutines, and if they don't work then post for someone to check them.··People on this forum usually don't want to do the work for you, but will help you through it.· Are you experienced in PBASIC?· What I gave you was just the same type of code I use for my boe-bot (which is PBASIC, I have NO experience with SX/B).· For a start with those subroutines, 100 is full one way, 150 is center, and 200 is full the other way. To find out the directions just do a couple of tests.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
LOOKDOWN ThisThread, [noparse][[/noparse]Your_?, My_?, Cool_Thing], looknum
LOOKUP looknum, [noparse][[/noparse]1, 2, 3], subnum
ON subnum GOTO Hope_this_helps, Thanks!, WOW!!
END
Comments
You have --
Anybody "not new" to robotics would know that the servo refresh rate is 20msec --·but you're pausing for 500msec (1/2 sec.)
Try PAUSE 19 (maybe PAUSE 20.)
150 is centered.
DO
PULSOUT RB.7, 150
PAUSE 20
LOOP
Bean
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Teacher: What is the difference between ignorance and apathy ?
Student: I don't know and I don't care
Teacher: Correct !
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
www.hittconsulting.com
·
thx PJ Allen, will you b my friend?
speed up over time?
slow down over time?
and move forward and backward?
thx
-Henry
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- Stephen
If it is like PBASIC then this would make the servo go all the way one way to all the way the other way and back.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Is this a "continuous" or a standard servo?
pulse var byte
at da top of the program, and now it works
thanks!
can I have a few example subroutines, then I will have no more questions
you know
like
Forward
Left
Right
Backwards
and so on
thx
-Henry
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔