Description
A joystick similar to analog devices used for example in PlayStation 2 controllers. The detection of the direction of movement is done via two potentiometers - one (4.7 kΩ) for each axis. The device also has a button activated by pressing the handle.
To use the device sufficient is microcontroller with analog-to-digital converter (analogue input in theArduino). Information about the position of the handle is transmitted via an analog signal, in which voltage corresponds to the given position. Each axis has a separate analog pin. The status of the button is detected via the digital output which, in case of activation, reaches a low status.
Connection
Using the board to connect the joystick is reduced to the following pins:
- VCC - supply voltage (5 V).
- GND- ground of the system.
- VRx - the analog output for the vertical axis (in the middle position, the value is equal to half of the supply voltage VCC/2).
- VRy- Analog output for the horizontal axis (in the middle position, the value is equal to half of the supply voltage VCC/2).
- SW- Digital signal button, in case of activation, it reaches the value of the GND, deactivated - is in thefloating status - so you need to add a pulling-up resistor to power.
Attention!
|
Useful links |