Joystick interface basics
Archiver
Posts: 46,084
I'd like to hook a Joystick up to a BS2 to control 2 servos for a
tilt/pan application. Has anyone done this before? I searched
online and on LOSA for source code and all I found were dead links.
Thanks!
tilt/pan application. Has anyone done this before? I searched
online and on LOSA for source code and all I found were dead links.
Thanks!
Comments
article from Nuts & Volts:
http://www.parallax.com/dl/docs/cols/nv/vol2/col/70.pdf
-- Jon Williams
-- Applications Engineer, Parallax
-- Dallas Office
Original Message
From: Chris Drzewiecki [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=EiJy-Z4WLrfT1MIfmKnTdlPKLf2ftikbdnMh_AdBpkkXvJnntwseviZ9NTqTDbkcuRaUUwpT-ZhLr10]crd75@a...[/url
Sent: Tuesday, October 28, 2003 12:24 PM
To: basicstamps@yahoogroups.com
Subject: [noparse][[/noparse]basicstamps] Joystick interface basics
I'd like to hook a Joystick up to a BS2 to control 2 servos for a
tilt/pan application. Has anyone done this before? I searched
online and on LOSA for source code and all I found were dead links.
Thanks!
To UNSUBSCRIBE, just send mail to:
basicstamps-unsubscribe@yahoogroups.com
from the same email address that you subscribed. Text in the Subject
and Body of the message will be ignored.
Your use of Yahoo! Groups is subject to
http://docs.yahoo.com/info/terms/
This message has been scanned by WebShield. Please report SPAM to
abuse@p....
be able to control 2 independent servos?
--- In basicstamps@yahoogroups.com, "Jon Williams" <jwilliams@p...>
wrote:
> It's pretty easy to do with an old analog joystick. Take a look
at this
> article from Nuts & Volts:
>
> http://www.parallax.com/dl/docs/cols/nv/vol2/col/70.pdf
>
> -- Jon Williams
> -- Applications Engineer, Parallax
> -- Dallas Office
>
>
>
Original Message
> From: Chris Drzewiecki [noparse][[/noparse]mailto:crd75@a...]
> Sent: Tuesday, October 28, 2003 12:24 PM
> To: basicstamps@yahoogroups.com
> Subject: [noparse][[/noparse]basicstamps] Joystick interface basics
>
>
> I'd like to hook a Joystick up to a BS2 to control 2 servos for a
> tilt/pan application. Has anyone done this before? I searched
> online and on LOSA for source code and all I found were dead
links.
> Thanks!
>
>
>
> To UNSUBSCRIBE, just send mail to:
> basicstamps-unsubscribe@yahoogroups.com
> from the same email address that you subscribed. Text in the
Subject
> and Body of the message will be ignored.
>
>
> Your use of Yahoo! Groups is subject to
> http://docs.yahoo.com/info/terms/
>
>
>
>
> This message has been scanned by WebShield. Please report SPAM to
> abuse@p...
of RCTIME, you could use a two-channel ADC like the LTC1298. You can
use PULSOUT to update your servos...like this:
Update_Servos:
PULSOUT Servo1, s1width
PULSOUT Servo2, s2width
PAUSE 10
RETURN
At its worst case, this subroutine should take about 15 ms to run --
this gives you 5 ms to read the joystick and calculate the servo values.
Now, truthfully, if you just want to make a couple of servos follow a
joystick, you can do it with a couple of 556 timer chips and discrete
parts. If you want to do it in a micro and do it "on the cheap" you
could certainly use the BS1 which is making a come-back with a new
Windows editor to be released shortly.
-- Jon Williams
-- Applications Engineer, Parallax
-- Dallas Office
Original Message
From: Chris Drzewiecki [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=HeVsee_L9Y0cLAcwdhsWxg7sxmZvj6iGuhK1M__IwocOKIHR2z_UsL8s4vyFuMBvAbiuT8TxMMpO3ngT2Q]crd75@a...[/url
Sent: Tuesday, October 28, 2003 2:03 PM
To: basicstamps@yahoogroups.com
Subject: [noparse][[/noparse]basicstamps] Re: Joystick interface basics
Thanks. How accurate is the positioning with it? Also would a BS2
be able to control 2 independent servos?
--- In basicstamps@yahoogroups.com, "Jon Williams" <jwilliams@p...>
wrote:
> It's pretty easy to do with an old analog joystick. Take a look
at this
> article from Nuts & Volts:
>
> http://www.parallax.com/dl/docs/cols/nv/vol2/col/70.pdf
>
> -- Jon Williams
> -- Applications Engineer, Parallax
> -- Dallas Office
>
>
>
Original Message
> From: Chris Drzewiecki [noparse][[/noparse]mailto:crd75@a...]
> Sent: Tuesday, October 28, 2003 12:24 PM
> To: basicstamps@yahoogroups.com
> Subject: [noparse][[/noparse]basicstamps] Joystick interface basics
>
>
> I'd like to hook a Joystick up to a BS2 to control 2 servos for a
> tilt/pan application. Has anyone done this before? I searched
> online and on LOSA for source code and all I found were dead
links.
> Thanks!
>
>
>
> To UNSUBSCRIBE, just send mail to:
> basicstamps-unsubscribe@yahoogroups.com
> from the same email address that you subscribed. Text in the
Subject
> and Body of the message will be ignored.
>
>
> Your use of Yahoo! Groups is subject to
> http://docs.yahoo.com/info/terms/
>
>
>
>
> This message has been scanned by WebShield. Please report SPAM to
> abuse@p...
To UNSUBSCRIBE, just send mail to:
basicstamps-unsubscribe@yahoogroups.com
from the same email address that you subscribed. Text in the Subject
and Body of the message will be ignored.
Your use of Yahoo! Groups is subject to
http://docs.yahoo.com/info/terms/
This message has been scanned by WebShield. Please report SPAM to
abuse@p....
getting much more it would be great. Basically, I do want the 2
servos to follow the joystick. And eventually making it a wireless
connection. I want to use one of the buttons on the joystick to
trigger a switch that's hooked up to an electronic trigger on a
paintball gun. Basically it's going to be a remote controlled
turret that will eventually be phased into a robot rover. Sounds
crazy, huh [noparse]:)[/noparse]
--- In basicstamps@yahoogroups.com, "Jon Williams" <jwilliams@p...>
wrote:
> The accuracy will depend on the joystick pots and the A/D used.
Instead
> of RCTIME, you could use a two-channel ADC like the LTC1298. You
can
> use PULSOUT to update your servos...like this:
>
> Update_Servos:
> PULSOUT Servo1, s1width
> PULSOUT Servo2, s2width
> PAUSE 10
> RETURN
>
> At its worst case, this subroutine should take about 15 ms to run -
-
> this gives you 5 ms to read the joystick and calculate the servo
values.
> Now, truthfully, if you just want to make a couple of servos
follow a
> joystick, you can do it with a couple of 556 timer chips and
discrete
> parts. If you want to do it in a micro and do it "on the cheap"
you
> could certainly use the BS1 which is making a come-back with a new
> Windows editor to be released shortly.
>
> -- Jon Williams
> -- Applications Engineer, Parallax
> -- Dallas Office
>
>
>
Original Message
> From: Chris Drzewiecki [noparse][[/noparse]mailto:crd75@a...]
> Sent: Tuesday, October 28, 2003 2:03 PM
> To: basicstamps@yahoogroups.com
> Subject: [noparse][[/noparse]basicstamps] Re: Joystick interface basics
>
>
> Thanks. How accurate is the positioning with it? Also would a
BS2
> be able to control 2 independent servos?
>
> --- In basicstamps@yahoogroups.com, "Jon Williams"
<jwilliams@p...>
> wrote:
> > It's pretty easy to do with an old analog joystick. Take a look
> at this
> > article from Nuts & Volts:
> >
> > http://www.parallax.com/dl/docs/cols/nv/vol2/col/70.pdf
> >
> > -- Jon Williams
> > -- Applications Engineer, Parallax
> > -- Dallas Office
> >
> >
> >
Original Message
> > From: Chris Drzewiecki [noparse][[/noparse]mailto:crd75@a...]
> > Sent: Tuesday, October 28, 2003 12:24 PM
> > To: basicstamps@yahoogroups.com
> > Subject: [noparse][[/noparse]basicstamps] Joystick interface basics
> >
> >
> > I'd like to hook a Joystick up to a BS2 to control 2 servos for a
> > tilt/pan application. Has anyone done this before? I searched
> > online and on LOSA for source code and all I found were dead
> links.
> > Thanks!
> >
> >
> >
> > To UNSUBSCRIBE, just send mail to:
> > basicstamps-unsubscribe@yahoogroups.com
> > from the same email address that you subscribed. Text in the
> Subject
> > and Body of the message will be ignored.
> >
> >
> > Your use of Yahoo! Groups is subject to
> > http://docs.yahoo.com/info/terms/
> >
> >
> >
> >
> > This message has been scanned by WebShield. Please report SPAM
to
> > abuse@p...
>
>
> To UNSUBSCRIBE, just send mail to:
> basicstamps-unsubscribe@yahoogroups.com
> from the same email address that you subscribed. Text in the
Subject
> and Body of the message will be ignored.
>
>
> Your use of Yahoo! Groups is subject to
> http://docs.yahoo.com/info/terms/
>
>
>
>
> This message has been scanned by WebShield. Please report SPAM to
> abuse@p...