Joysticks
Joysticks are analog input devices commonly used in embedded systems, gaming controllers, and robotics for directional control.
Common Types
- Analog Joystick: Outputs variable voltage (e.g., 0–Vcc) via potentiometers for X and Y axes.
- Digital Joystick: Provides discrete direction signals (up/down/left/right/press).
- Thumb Joystick: Small form factor, often with built-in pushbutton (e.g., FC-28 or similar modules).
Pinout (Typical Analog)
| Pin | Description |
| VCC | Power supply (3.3V or 5V) |
| GND | Ground |
| X | Analog X-axis output |
| Y | Analog Y-axis output |
| SW | Button switch (active low) |
Interfacing Tips
- Connect X/Y to ADC pins on MCU.
- Poll SW pin with pull-up resistor.
- Use dead zone calibration in firmware.