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 5: Line 5:
== Wiring ==
== Wiring ==


On a resistive joystick the stick positions are detected by [http://en.wikipedia.org/wiki/Potentiometer potentiometers], one potentiometer for each axis.
On a resistive joystick the stick positions are detected by [http://en.wikipedia.org/wiki/Potentiometer potentiometers], one potentiometer for each axis. Every potentiometer has three connections, the center tap (slider, wiper) and two ends.


Each potentiometer is connected to the POT port (see [[Pins and Connectors]]) as follows:
Each potentiometer is connected to the POT port on the STorM32 board (see [[Pins and Connectors]]) as follows:
* The center tap (slider, wiper) goes to one of the pins POT-0, POT-1, or POT-2.
* The center tap 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.
* 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.
* {{WARNING|'''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.
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.
Line 20: Line 20:
=== DYS Joystick Controller ===
=== DYS Joystick Controller ===


Bruce356 at rcgroups has worked out the connection: [http://www.rcgroups.com/forums/showpost.php?p=29162712&postcount=1292 link].
Bruce356 at rcgroups has worked out the connection: [http://www.rcgroups.com/forums/showpost.php?p=29162712&postcount=1292 Joystick Connection Scheme].


[[File:Storm32-wiki-joystick-dys-ivale-2-01.jpg|480px]] [[File:Storm32-wiki-joystick-dys-1-01.jpg|480px]]
[[File:Storm32-wiki-joystick-dys-ivale-2-01.jpg|480px]] [[File:Storm32-wiki-joystick-dys-1-01.jpg|480px]]
Line 29: Line 29:
[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).
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, 3.3 V).


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.
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.

Revision as of 03:30, 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. Every potentiometer has three connections, the center tap (slider, wiper) and two ends.

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

  • The center tap 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: Joystick Connection Scheme.

Storm32-wiki-joystick-dys-ivale-2-01.jpg Storm32-wiki-joystick-dys-1-01.jpg

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, 3.3 V).

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.

Storm32-wiki-joystick-irun4fundotca-1-01.jpg