Shop OBEX P1 Docs P2 Docs Learn Events
more questions on servoes. — Parallax Forums

more questions on servoes.

ArchiverArchiver Posts: 46,084
edited 2000-10-17 18:05 in General Discussion
Hello all.
I have been lurking on this list for a long time now and have seen some
great advice given to help people out. Hopefully some one will be able to
help me with this one.

I have a couple of futaba 148 servos running on the bs2 using the following
code to move them one at a time left to right then back again.
most var word
least var word
SERVO var word
Servoa var nib
Servob var nib
speed var byte
Servoa=10 'The Signal Pin that you are connecting the SERVO with
Servob=9

for SERVO = 505 to 505 step 12 '1.2mS to 1.8mS
pulsout Servoa,SERVO
pause 15
next
speed=1
most=300
least=200
Start:
for SERVO = least to most step speed '1.2mS to 1.8mS
pulsout Servoa,SERVO
pause 15
next
pause 500
for SERVO = most to least step speed '1.8mS to 1.2mS
pulsout Servoa,SERVO
pause 15
next
pause 500
for SERVO = least to most step speed '1.2mS to 1.8mS
pulsout Servob,SERVO
pause 15
next
pause 500
for SERVO = most to least step speed '1.8mS to 1.2mS
pulsout Servob,SERVO
pause 15
next
pause 500
goto Start

I am using the servos for a pan and tilt mounting on a web cam. What I would
like to do is control the position of the servos suing either Qbasic program
or a couple of slide pots.

Any suggestions or pointers to web sights detailing this type of thing would
me a great help as I have no idea where to even start

Thanks and sorry about the bit posting.
John. Foster

Comments

  • ArchiverArchiver Posts: 46,084
    edited 2000-10-16 22:14
    John:
    I built a simple servo tester using a 555 timer IC that positions the servo
    with a pot. If you are interested, let me know.

    Ray McArthur

    Original Message
    From: John Foster <fossiljack1@b...>
    To: <basicstamps@egroups.com>
    Sent: Monday, October 16, 2000 11:06 AM
    Subject: [noparse][[/noparse]basicstamps] more questions on servoes.

    > I am using the servos for a pan and tilt mounting on a web cam. What I
    would
    > like to do is control the position of the servos suing either Qbasic
    program
    > or a couple of slide pots.
    >
  • ArchiverArchiver Posts: 46,084
    edited 2000-10-16 22:38
    I'd be interested..

    Jason

    Ray McArthur wrote:

    > John:
    > I built a simple servo tester using a 555 timer IC that positions the servo
    > with a pot. If you are interested, let me know.
    >
    > Ray McArthur
    >
    >
    Original Message
    > From: John Foster <fossiljack1@b...>
    > To: <basicstamps@egroups.com>
    > Sent: Monday, October 16, 2000 11:06 AM
    > Subject: [noparse][[/noparse]basicstamps] more questions on servoes.
    >
    > > I am using the servos for a pan and tilt mounting on a web cam. What I
    > would
    > > like to do is control the position of the servos suing either Qbasic
    > program
    > > or a couple of slide pots.
    > >
  • ArchiverArchiver Posts: 46,084
    edited 2000-10-16 22:42
    Ray McArthur wrote:

    > John:
    > I built a simple servo tester using a 555 timer IC that positions the servo
    > with a pot. If you are interested, let me know.
    >
    > Ray McArthur
    >
    >

    Ray,

    I would certainly be interested!

    Rus

    --
    Rus Hardy
    "Lucky Devil"
    Atrophies - Ghoulishly Original Awards & Trophies
    http://www.bluedestiny.com/Atrophies/
    SpiderBucky & SpiderThrifty - Boney Superheroes
    http://www.bluedestiny.com/SpiderBucky/
    Keeper of the Bucky-n-Thrifty Flame
    http://www.boneyardbargains.com/
    "my mind wanders....I'm just along for the ride"
  • ArchiverArchiver Posts: 46,084
    edited 2000-10-17 18:05
    Hi John

    Look at <http://home.iprimus.com.au/nooyen/servo.htm> for standalone
    Servo Pulse Generator with NE556 Dual Timer



    John Foster wrote:
    >
    > Hello all.
    > I have been lurking on this list for a long time now and have seen some
    > great advice given to help people out. Hopefully some one will be able to
    > help me with this one.
    >
    > I have a couple of futaba 148 servos running on the bs2 using the following
    > code to move them one at a time left to right then back again.

    ...snip...

    > I am using the servos for a pan and tilt mounting on a web cam. What I would
    > like to do is control the position of the servos suing either Qbasic program
    > or a couple of slide pots.
    >
    > Any suggestions or pointers to web sights detailing this type of thing would
    > me a great help as I have no idea where to even start
    >
    > Thanks and sorry about the bit posting.
    > John. Foster

    Bye
    Arnaldo Braun
    mailto:abraun@t...
    Florianopolis - SC - Brazil
Sign In or Register to comment.