background image

 

 

 

Grove - Thumb Joystick   

Version

  

 

 

1.0 

Release date

   

9/20/2015 

Wiki:

 

http://www.seeedstudio.com/wiki/Grove_-_Thumb_Joystick

 

Bazaar: 

http://www.seeedstudio.com/depot/Grove-Thumb-Joystick-p-935.html

 

Summary of Contents for 101020028

Page 1: ...1 Grove Thumb Joystick Version 1 0 Release date 9 20 2015 Wiki http www seeedstudio com wiki Grove_ _Thumb_Joystick Bazaar http www seeedstudio com depot Grove Thumb Joystick p 935 html ...

Page 2: ...2 Document Revision History Revision Date Author Description 1 0 Sep 21 2015 Victor He Create file ...

Page 3: ...3 Contents Document Revision History 2 1 Introduction 2 2 Features 3 3 Application ideas 4 4 Specifications 5 5 Usage 6 5 1 With Arduino 6 5 2 With Raspberry Pi 7 6 Resources 10 7 Support 11 ...

Page 4: ...ision of Seeed Technology Inc this manual has been compiled and published which covered the latest product description and specification The content of this manual is subject to change without notice Copyright The design of this product including software and its accessories is under tutelage of laws Any action to violate relevant right of our product will be penalized through law Please conscious...

Page 5: ...ement by generating analog signals The joystick also has a push button that could be used for special applications When the module is in working mode it will output two analog values representing two directions Compared to a normal joystick its output values are restricted to a smaller range i e 200 800 only when being pressed that the X value will be set to 1023 and the MCU can detect the action ...

Page 6: ...3 2 Features Grove Interface 5V 3 3V Compatible Analog Output ...

Page 7: ...4 3 Application ideas Game Controller Robot remote ...

Page 8: ...5 4 Specifications Item Min Typical Max Unit Working Voltage 4 75 5 0 5 25 V Output Analog Value X coordinate 206 516 798 Output Analog Value Y coordinate 203 507 797 ...

Page 9: ...nnect the module to the A0 A1 of Grove Basic Shield using the 4 pin grove cable 2 Plug the Grove Basic Shield into Arduino 3 Connect Arduino to PC by using a USB cable 4 Copy and paste code below to a new Arduino sketch Please click here if you do not know how to upload Thumb Joystick demo v1 0 by http www seeedstudio com connect the module to A0 A1 for using void setup Serial begin 9600 void loop...

Page 10: ... The output value from the analog port of Arduino can be converted to the corresponding resistance using the formula R float 1023 sensorValue 10 sensorValue 5 2 With Raspberry Pi 1 You should have got a raspberry pi and a grovepi or grovepi 2 You should have completed configuring the development environment otherwise follow here 3 Connection Plug the sensor to grovepi socket D4 by using a grove ca...

Page 11: ...ou wish to connect two joysticks use ports A0 and A2 skip A1 Uses two pins one for the X axis and one for the Y axis This configuration means you are using port A0 xPin 0 yPin 1 grovepi pinMode xPin INPUT grovepi pinMode yPin INPUT The Grove Thumb Joystick is an analog device that outputs analog signal ranging from 0 to 1023 The X and Y axes are two 10k potentiometers and a momentary push button w...

Page 12: ...ogRead yPin Calculate X Y resistance Rx float 1023 x 10 x Ry float 1023 y 10 y Was a click detected on the X axis click 1 if x 1020 else 0 print x x y y Rx Rx Ry Ry click click time sleep 5 except IOError print Error 5 Run the demo sudo python grove_thumb_joystick py ...

Page 13: ...10 6 Resources Grove Thumb Joystick Eagle File Analog Joystick Datasheet ...

Page 14: ...11 7 Support Ask questions on Seeed Forum ...

Reviews: