more questions on servoes.
Archiver
Posts: 46,084
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
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
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.
>
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.
> >
> 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"
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