The joystick is an input device. The analogue joystick is sometimes called a control stick. Used to control the movement of the pointer on the 2-dimensional axis. The joystick has two potentiometers for reading user input. A potentiometer is used to get the analogue output voltage for the XDirection movement. The other potentiometer is used to get the analogue output voltage for moving in the Y direction. The potentiometers are connected between + VCC and the ground. They only behave like a voltage divider network. The joystick has a rotatable holder. According to the movement of the bracket, the potentiometer button changes its position and the resistance of the potentiometer.
Output Voltage Mapping with XY Position
In the rest position, the output voltage is VCC / 2. Taking into account VCC = 5 volts, the following figure shows the voltage assignment with different XY positions.
When the joystick is in the rest position, the output values of terminal X and terminal Y are centre (2.5 V) of the specified range (0 V to 5 V). Depending on the movement of support, the output values vary from the minimum limit (0 V) to the maximum limit (5 V). This joystick also has a select button/switch support movement they were switch support that is operated when the joystick button is pressed.
Pin 1, 5 – VCC and GND Supply voltage(+5V) and the ground were given to Joystick.
Pin 2 –X-OUT This pin provides an analogue output voltage from 0 volts to VCC according to the movement of Holder in X-direction (axis).
Pin 3 – Y-OUT This pin provides an analogue output voltage from 0 volts to VCC according to the movement of Holder in Y- Y-direction (axis).
Pin 4 – Switch This pin has one tactile switch. When a switch is not pressed, this pin is connected to VCC through a resistor. When a switch is pressed, this pin is connected to Ground.
Joystick ni kifaa cha kuingiza. Joystick analog ni wakati mwingine aitwaye fimbo ya kudhibiti. Inatumiwa kudhibiti harakati ya pointer juu ya mhimili wa pande mbili. Joystick ina potentiometers mbili kwa ajili ya kusoma pembejeo ya mtumiaji. Potentiometer ni kutumika kupata analogue pato voltage kwa ajili ya XDirection harakati. potentiometer nyingine ni kutumika kupata analogue pato voltage kwa ajili ya kusonga katika mwelekeo Y. Potentiometers ni pamoja na + VCC na ardhi. Wao tu kutenda kama mtandao voltage divider. Joystick ina mmiliki rotatable. Kulingana na harakati ya bracket, kitufe potentiometer hubadilisha nafasi yake na upinzani wa potentiometer. XYZ: XYZ: XYZ: XYZ: XYZ: XYZ: XYZ: XYZ: XYZ: XYZ: XYZ: XYZ: XYZ: XYZ: XYZ: XYZ: XYZ: XYZ: XYZ: XYZ: XYZ: XYZ: XYZ: XYZ: XYZ: XYZ: XYZ: XYZ: XYZ: XYZ: XYZ: XYZ: XYZ: XYZ: XYZ: XYZ: XYZ: XYZ: XYZ: XYZ: XYZ: XYZ: XYZ VVV = 5V, na kipimo cha voltage cha XY ni sawa na kiwango cha voltage ya XY. Wakati joystick ni katika nafasi ya mapumziko, pato maadili ya terminal X na terminal Y ni katikati (2.5 V) ya mbalimbali maalum (0 V hadi 5 V). Kutegemea harakati ya msaada, thamani ya pato hutofautiana kutoka kikomo cha chini (0 V) hadi kikomo cha juu (5 V). Joystick hii pia ina kitufe cha kuchagua na kugeuza; ni kitufe cha kugeuza kinachoendeshwa wakati kitufe cha joystick kinasukumwa. Pini 1, 5 <unk> VCC na GND Supply voltage ((+5V) na ardhi zilipewa Joystick. Pini ya 2 - X-OUT: Pini hii hutoa voltage ya analog ya nje kutoka volts 0 hadi VCC kulingana na mwendo wa Holder katika mwelekeo wa X. Pini ya 3 - Y-OUT: Pini hii hutoa voltage ya analog ya pato kutoka volts 0 hadi VCC kulingana na mwendo wa Holder katika mwelekeo wa Y-Y. Pin 4 - Switch: Pin hii ina switch moja ya kugusa. Wakati kubadili si kushikiliwa, pin hii ni kushikamana na VCC kupitia upinzani. Wakati kubadili ni kubonyeza, pin hii ni kushikamana na ardhi.