dan3008
Posts: 1172
Joined: Wed Aug 15, 2012 1:05 pm

Thumb joystick

Tue May 06, 2014 8:50 pm

Hi guys

I'm working on a project, and wanted to use a thumb joystick like the one here

I'm only really bothered about it having 4 directions, and select. so ideally i'd like it to be momentary switches (for digital output), rather than pots (analog output), that way i can wire it to the pi dialectally without the need for a micro-controller.

Does anyone know, either of a set that comes with a preprogramed controller, or a microswitch version? or am i better simply doing things with buttons?

thanks

dan
dan3008 wrote:Pays your money, takes your choice

thak
Posts: 51
Joined: Wed Apr 10, 2013 6:22 pm

Re: Thumb joystick

Wed May 07, 2014 6:06 am

Hi,

Sadly we don't have much choise in small digital joystick...
You hazve this 2, but currently sold out (and the shop never answer me about when they will be available again)
http://www.arcadeshop.de/Miscellaneous-Thumb
stick-yellow_452.html
http://www.arcadeshop.de/Miscellaneous- ... k_451.html

Or you have this one, but he's maybe too small :
http://www.digikey.fr/product-detail/fr ... ND/2138044

Hope it help :-)

dan3008
Posts: 1172
Joined: Wed Aug 15, 2012 1:05 pm

Re: Thumb joystick

Wed May 07, 2014 9:22 am

thak wrote: Or you have this one, but he's maybe too small :
http://www.digikey.fr/product-detail/fr ... ND/2138044
Quiet the opposite, its too big, I'm looking at tiny ones, about the size of the PSP joysticks ... I'm sure i'll find a soultion, someone must be selling them with analogue to digital converters, or similar...
dan3008 wrote:Pays your money, takes your choice

dan3008
Posts: 1172
Joined: Wed Aug 15, 2012 1:05 pm

Re: Thumb joystick

Wed May 07, 2014 9:58 am

Ah, for now i'm just going to go with buttons. Not as clean as a joystick, but its only for my own personal use.
dan3008 wrote:Pays your money, takes your choice

scotty101
Posts: 4050
Joined: Fri Jun 08, 2012 6:03 pm

Re: Thumb joystick

Wed May 07, 2014 12:12 pm

dan3008 wrote:Quiet the opposite, its too big, I'm looking at tiny ones, about the size of the PSP joysticks ... I'm sure i'll find a soultion, someone must be selling them with analogue to digital converters, or similar...
The Nintendo Wii nunchucks output over an I2C interface.
Electronic and Computer Engineer
Pi Interests: Home Automation, IOT, Python and Tkinter

BMS Doug
Posts: 3823
Joined: Thu Mar 27, 2014 2:42 pm
Location: London, UK

Re: Thumb joystick

Wed May 07, 2014 12:51 pm

connect the adafruit joystick to a MCP3008 analogue to digital converter(about £5.00) and connect via SPI?
Doug.
Building Management Systems Engineer.

User avatar
Douglas6
Posts: 4918
Joined: Sat Mar 16, 2013 5:34 am
Location: Chicago, IL

Re: Thumb joystick

Wed May 07, 2014 1:24 pm

Adafruit also has this 5-way nav switch.

dan3008
Posts: 1172
Joined: Wed Aug 15, 2012 1:05 pm

Re: Thumb joystick

Wed May 07, 2014 3:59 pm

BMS Doug wrote:connect the adafruit joystick to a MCP3008 analogue to digital converter(about £5.00) and connect via SPI?
Didnt want to do that, takes up more space than i've got really :/
Douglas6 wrote:Adafruit also has this 5-way nav switch.
Perfect, thats exactly what I was looking for :D now just to find a UK seller at a similar price...


scotty101 wrote:
dan3008 wrote:Quiet the opposite, its too big, I'm looking at tiny ones, about the size of the PSP joysticks ... I'm sure i'll find a soultion, someone must be selling them with analogue to digital converters, or similar...
The Nintendo Wii nunchucks output over an I2C interface.
I'd seen that, and i'm looking at a nunchucky Just need to work out how to interface it with the Pi. If anyone has any usefull tutorials, pointing me at them would be appreciated.
dan3008 wrote:Pays your money, takes your choice

BMS Doug
Posts: 3823
Joined: Thu Mar 27, 2014 2:42 pm
Location: London, UK

Re: Thumb joystick

Wed May 07, 2014 8:07 pm

dan3008 wrote:
Douglas6 wrote:Adafruit also has this 5-way nav switch.
Perfect, thats exactly what I was looking for :D now just to find a UK seller at a similar price...
£5.09 on amazon (free delivery)

£2.39 also on amazon (£3.99 delivery)
Last edited by BMS Doug on Wed May 07, 2014 8:09 pm, edited 1 time in total.
Doug.
Building Management Systems Engineer.

dan3008
Posts: 1172
Joined: Wed Aug 15, 2012 1:05 pm

Re: Thumb joystick

Wed May 07, 2014 8:09 pm

posting more to keep a link to it than anything else, and to share the answer with others

I have found how to use a nunchuck on the pi in python:

firstly activate the I2C modules like so

and then, heres the code GitHub which can be modified for any use :)

edit

another useful link
dan3008 wrote:Pays your money, takes your choice

Return to “Gaming”