7.3 Joystick
The WSTK has an analog joystick with 9 measureable positions. This joystick is connected to the WGM110 Module pin
PD4
and uses
different resistor values to create voltages measurable by the internal ADC on the WGM110 Module. The joystick output is connected to
AD Channel 0 (
ADC0
). The figure below shows the connection between the joystíck and the WGM110 Module.
PD4 (ADC0)
WGM110
Figure 7.3 Connection between the Expansion Board Joystick and WGM110 Module AD Channel 0.
The table below lists the expected output voltage from the joystick in correspondence with the 9 defined main directions.
Table 7.1. Joystick Resistor Combinations and Expected Output Voltages in 9 Main Directions
Direction
Resistor combinations [kohm]
Expected joystick output voltage [V]
1
Center press
0.1 / (0.1 + 10)
0.033
Up (N)
60.4 / (60.4 + 10)
2.831
Up-Right (NE)
{(N // E) / {(N // E) + 10 } = 21.34 / (21.34
+ 10)
2.247
Right (E)
33 / (33 + 10)
2.533
Down-Right (SE)
(S // E) / {(S // E) + 10)} = 7.67 / (7.67 + 10) 1.433
Down (S)
10 / (10 + 10)
1.650
Down-Left (SW)
(S // W) / {(S // W) + 10)} = 6 / (6 + 10)
1.238
Left (W)
15 / (15 + 10)
1.980
Up-Left (NW)
(N // W) / {(N // W) + 10)} = 12.01 / (12.01
+ 10)
1.801
Note:
1) These calculated values assume a VMCU of 3.3V.
UG172: Wizard Gecko Wi-Fi® Module Wireless Starter Kit SLWSTK6120A User's Guide
Expansion Board
silabs.com
| Smart. Connected. Energy-friendly.
Rev. 1.0 | 17