DFR0061

DFR0061 Datasheet


Joystick Module For Arduino SKU:DFR0061

Part Datasheet
DFR0061 DFR0061 DFR0061 (pdf)
PDF Datasheet Preview
Joystick Module For Arduino SKU:DFR0061

Contents
• 1 Introduction
• 2 Specification
• 3 PinOut
• 4 Tutorial

Connection Diagram Sample Code
• 5 Trouble shooting
• 6 More

Introduction

Lots of robot projects need joystick. This module provides a affordable solution to that. Simply connect to two analog inputs, the robot is at your commands with X,Y control. It also has a switch that is connected to a digital pin. This joystick module can be easily connect to Arduino by IO Expansion Shield For Arduino V5 SKU DFR0088 with supplied cables.

Specification
• Supply Voltage 3.3V to 5V
• Interface Analog x2,Digital x1
• PH2.0 Interface
• Size:35x39mm
• Weight:15g

PinOut

Pin X

Pin Y

Pin Z

Tutorial

Connection Diagram

Pin X

Pin Y

Pin Z

Sample Code

Libary installation
// # // # Editor // # Date

Lauren from DFRobot :
// # Product name Joystick Module // # Product SKU DFR0061
// # Version
// # Description // # Modify the Sample code for the Joystick Module
// # Connection:

X-Axis -> Analog pin 0

Y-Axis -> Analog pin 1

Z-Axis -> Digital pin 3
int JoyStick_X = 0 //x int JoyStick_Y = 1 //y int JoyStick_Z = 3 //key
void setup
pinMode JoyStick_Z, INPUT Serial.begin 9600 // 9600 bps void loop int x,y,z x=analogRead JoyStick_X y=analogRead JoyStick_Y z=digitalRead JoyStick_Z Serial.print x ,DEC Serial.print "," Serial.print y ,DEC Serial.print "," Serial.println z ,DEC delay 100 ;

Trouble shooting

More question and cool idea,visit DFRobot Forum

Powered By DFRobot 2008-2016
More datasheets: M5432 SL005 | ST16C1450CJ28TR-F | ST16C1450IQ48-F | ST16C1450CQ48-F | ST16C1450CJ28-F | ST16C1450IJ28-F | 1003SURD/S530-A3 | EA-ACC-027 | U4089B-PFNY | U4089B-PFNG3Y


Notice: we do not provide any warranties that information, datasheets, application notes, circuit diagrams, or software stored on this website are up-to-date or error free. The archived DFR0061 Datasheet file may be downloaded here without warranties.

Datasheet ID: DFR0061 508626