KEY FEATURES OF FUNDUINO JOYSTICK SHIELD:
- 2-Axis joystick
- 4 large buttons
- 2 small buttons
- Bluetooth / Serial interface
- I2C interface
- nRF24L01 interface
- Nokia 5110 LCD interface
- Interface connector
- Power switch to switch between 3.3 and 5V
The shield has a voltage slide switch that allows you to select whether you are using it with a 5V board like an Arduino Uno or Mega 2560 or a 3.3V MCU like the Arduino Due. Be sure to set it to the correct voltage for the board you are using.
The X-Axis potentiometer of the joystick is connected to A0. The Y-Axis potentiometer is connected to A1. The analog inputs on a microcontroller read values over a range of 0-1023 (for typical 10-bit ADC inputs). The X-Axis and Y-Axis controls should read around 512 (midpoint) when the control is at rest. As the joystick is moved, one or both of the controls will register higher or lower values depending on how the control is being moved. The joystick also has a button ‘K‘ which is activated by pressing the joystick down. This button is connected to D8.
There are a total of 6 buttons on the board (not including the one on the joystick) labeled A-F. The 4 large buttons are typically used for up/down/left/right or similar functions. The two smaller buttons are typically used for less commonly used functions such as ‘select’ or ‘start’ since they are less accessible / less likely to be pressed accidentally. All buttons have pull-up resistors and pull to ground when pressed.
- Button A – Connects to D2
- Button B – Connects to D3
- Button C – Connects to D4
- Button D – Connects to D5
- Button E – Connects to D6
- Button F – Connects to D7
The RX/TX lines are brought out to a separate 4-pin female header along with 3.3V and Ground. This can be used for connecting a 4-pin 3.3V Bluetooth device or other TTL serial device.
The I2C SDA and SCL lines are brought out to a separate 4-pin male header along with 5V and Ground. This is in addition to the normal A4/A5 location of these lines. This allows for easy attachment of I2C devices.