Spread the love
The end result.
Pre-Knowledge.
Setup your Arduino.
http://brisbaneroboticsclub.id.au/setup-your-arduino/
Install the Arduino Learning Board Library.
http://brisbaneroboticsclub.id.au/arduino-import-learning-board-library/
References.
Nil.
Wiring Diagram.
Joystick | Arduino |
GND | GND |
+5V | 5V |
VRX | A0 |
VRY | A1 |
SW | A2 |
Code.
File>Examples>Arduino Learning Board>ALB_Joystick
Run the Code.
Upload the code to the Arduino Board and Open the Serial Monitor (Tools>Serial Monitor).
Move the joystick and watch the Serial output display values.