How to install and use a joystick: Difference between revisions

From STorM32-BGC Wiki V1
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
Page does need maintenance.
There are plenty different types of joysticks. The most common type is the resistive joystick, there the joystick positions are detected by [http://en.wikipedia.org/wiki/Potentiometer potentiometers], one potentiometer for each axis. Other types provide a PWM signal at their output. These types are usually easily identified by the electronic chips found on them - and by their significantly higher price.  


The STorM32 can handle both types, but only the situation of a resistive joystick is considered here, since they are cheaper and provide more compact solutions.


'''This joystick solution is from irun4fundotca.'''
== Wiring ==


Here's my joystick solution that wont break the bank (about $5-10usd). First off, its installed on a makeshift mount until I find a better one, due to selling my last one in frustration. It's a joystick sold on ebay for about $3.59usd with free shipping and comes with locking Molex. All that's needed is some wire, 3pin locking Molex housings, a 1-row 5-pin female Dupont header (to connect to POT pins GND,POT0,POT1,POT2,VCC).
On a resistive joystick the stick positions are detected by [http://en.wikipedia.org/wiki/Potentiometer potentiometers], one potentiometer for each axis.


All power on the joystick's ports is shared, so only one ground and vcc is needed. The other 3 wires provide the X(Roll- POT0), Y(Pitch-POT1), Z(button-POT2) signal.
Each potentiometer is connected to the POT port (see [[Pins and Connectors]]) as follows:
* The center tap (slider, wiper) goes to one of the pins POT-0, POT-1, or POT-2.
* One of the ends goes to the GND pin, and the other end to the 3.3 V pin.
* Be careful to not produce short cuts.


The stick related to a potentiometer can then be used for control in any available function by selecting the {{PARAMVALUE|Pot-0}}, {{PARAMVALUE|Pot-1}}, or {{PARAMVALUE|Pot-2}} option, depending on whether the potentiometer is connected to the POT-0, POT-1, or POT-2 pin.
Here's my connection drawing to make it simple using roll instead of pan as I don't have it connected on this one.
 
== GUI Settings ==
 
== Wiring Examples ==
 
=== DYS Joystick Controller ===
 
Bruce356 at rcgroups has worked out the connection: [http://www.rcgroups.com/forums/showpost.php?p=29162712&postcount=1292 link].
 
 
 
 
=== Irun4fundotca's Joystick Solution ===
 
Irun4fundotca at rcgroups has worked out this example:
[http://www.rcgroups.com/forums/showpost.php?p=28055684&postcount=358 Joystick Solution Details].


[http://www.rcgroups.com/forums/showpost.php?p=28055684&postcount=358 Joystick Solution Details]
This joystick solution wont break the bank (about $5-10usd). It's a joystick sold on ebay for about $3.59 USD with free shipping and comes with locking Molex. All that's needed is some wire, 3pin locking Molex housings, a 1-row 5-pin female Dupont header (to connect to POT pins GND, POT0, POT1, POT2, VCC).


A few other posts to help
All power on the joystick's ports is shared, so only one ground and Vcc is needed. The other 3 wires provide the X (Roll- POT0), Y (Pitch-POT1), Z (button-POT2) signal.
[http://www.rcgroups.com/forums/showpost.php?p=30547597&postcount=3145 Link 1]
[http://www.rcgroups.com/forums/showpost.php?p=30549962&postcount=3147 Link 2]
Here's the connection drawing to make it simple using roll instead of pan.

Revision as of 04:20, 22 January 2015

There are plenty different types of joysticks. The most common type is the resistive joystick, there the joystick positions are detected by potentiometers, one potentiometer for each axis. Other types provide a PWM signal at their output. These types are usually easily identified by the electronic chips found on them - and by their significantly higher price.

The STorM32 can handle both types, but only the situation of a resistive joystick is considered here, since they are cheaper and provide more compact solutions.

Wiring

On a resistive joystick the stick positions are detected by potentiometers, one potentiometer for each axis.

Each potentiometer is connected to the POT port (see Pins and Connectors) as follows:

  • The center tap (slider, wiper) goes to one of the pins POT-0, POT-1, or POT-2.
  • One of the ends goes to the GND pin, and the other end to the 3.3 V pin.
  • Be careful to not produce short cuts.

The stick related to a potentiometer can then be used for control in any available function by selecting the "Pot-0", "Pot-1", or "Pot-2" option, depending on whether the potentiometer is connected to the POT-0, POT-1, or POT-2 pin.

GUI Settings

Wiring Examples

DYS Joystick Controller

Bruce356 at rcgroups has worked out the connection: link.



Irun4fundotca's Joystick Solution

Irun4fundotca at rcgroups has worked out this example: Joystick Solution Details.

This joystick solution wont break the bank (about $5-10usd). It's a joystick sold on ebay for about $3.59 USD with free shipping and comes with locking Molex. All that's needed is some wire, 3pin locking Molex housings, a 1-row 5-pin female Dupont header (to connect to POT pins GND, POT0, POT1, POT2, VCC).

All power on the joystick's ports is shared, so only one ground and Vcc is needed. The other 3 wires provide the X (Roll- POT0), Y (Pitch-POT1), Z (button-POT2) signal.

Here's the connection drawing to make it simple using roll instead of pan.