Shop OBEX P1 Docs P2 Docs Learn Events
need help with Line follower module, servos — Parallax Forums

need help with Line follower module, servos

ArchiverArchiver Posts: 46,084
edited 2002-06-25 07:13 in General Discussion
i think i fixed the code for the line follower, i had switched up the
values for the pins on my servos but now the boe-bot only follows the
black line for one step forward and then stops. this is just like what
i had going on before when i ran the program to test the servos. when
i ran programs that should have had the right wheel turning full
speed, left wheel turning full speed.. it would only move once and
then it would stop instead of running continuously. how do i fix this?
i mean these are pre-modified servos that came in the kit so they
should be able to turn continously.

please help. thanks.

-z.


--- In basicstamps@y..., "idlereason" <idlereason@y...> wrote:
> i only used the code that's there to download on the
> site(www.parallaxinc.com/linefollower) and it didnt have any DEBUG
> statements in it. any other ideas on why it's not moving and
> following the line?
>
> i'm new to this but once you run a program in the basic stamp
editor,
> does that clear what was in the basic stamp before and just runs the
> code you just downloaded to the bs2? and how do i clear everything
> that's in there? i'm still lost on what problem is though.
>
> thanks for the help.
>
>
>
>
> --- In basicstamps@y..., Rodent <daweasel@s...> wrote:
> > Did you add any DEBUG statements -- these will often trip up
servos
> if they
> > are within the code loop that talks to the servos.
> >
> >
Original Message
> >
> > > i recently got the Parallax Line Follower Module(#29115) to
attach
> > > onto my Boe-bot for a line following project and i'm having
> problems
> > > with it. I ran the first test file to make sure each of the
> detectors
> > > detects the black line and that seems to be working fine. But
when
> i
> > > try the other files(LF_SIMPLE.BS2 and LF_CONTEST.BS2), the
Boe-bot
> > > won't move at all. It just stays there, apparently it's
detecting
> the
> > > line but the servos dont do anything and nothing happens. Please
> give
> > > me some help on this, I've gotta get this going by tomorrow at
the
> > > latest. Any and all suggestions for what i should check and do
> would
> > > be greatly helpful.
> > >
> > > Also when i was going through chapter 1 of the Robotics text
that
> > > comes with the Boe-bot, and it has basic programs that move the
> right
> > > and left wheels clockwise and counterclockwise.. i ran those and
> the
> > > boe-bot would move in the correct direction with the right wheel
> but
> > > it would only move once in that direction. the code calls for it
> to
> > > be an infinite loop so i assume the wheel should keep going in
> that
> > > direction, not just move once. what do you think could be the
> problem
> > > here and is this affecting the line follower module from moving
> the
> > > boe-bot to follow the black line?
Sign In or Register to comment.