5-way Navigation switch and Arcade Bonnet

Moderators: adafruit_support_bill, adafruit

Forum rules
Talk about Adafruit Raspberry Pi® accessories! Please do not ask for Linux support, this is for Adafruit products only! For Raspberry Pi help please visit: http://www.raspberrypi.org/phpBB3/
Locked
User avatar
nl28382
 
Posts: 56
Joined: Wed Jan 11, 2017 10:13 am

5-way Navigation switch and Arcade Bonnet

Post by nl28382 »

I have been using a 2-Axis Analog Thumb Joystick as an analog joystick input with the arcade bonnet. However, it is difficult to keep the wires soldered to the tiny tabs on the joystick. My application does not have room for the breakout board.

I also have a Thru-hole 5-way Navigation switch which should be much easier to maintain a solder connection. I do not need analog input, just up, down, left, and right. Will the navigation switch work in place of the thumbstick? If so, what if any modification are needed?

User avatar
dastels
 
Posts: 15662
Joined: Tue Oct 20, 2015 3:22 pm

Re: 5-way Navigation switch and Arcade Bonnet

Post by dastels »

No, it's not a simple swap. The nav switch is digital with 4 switches (one in each direction) while the analog thumbstick has a variable resistance/voltage for each axis.

You could use some resistors to build a voltage ladder that's manipulated by the switches (each switch connects to the common pin when pushed). You'd need the voltage for an axis to be in the middle of the range when neither of the associated switches are pressed (e.g. up/down), 0v when down is pressed and a the appropriate high voltage when up is pressed.

Dave

Locked
Forum rules
Talk about Adafruit Raspberry Pi® accessories! Please do not ask for Linux support, this is for Adafruit products only! For Raspberry Pi help please visit: http://www.raspberrypi.org/phpBB3/

Return to “Adafruit Raspberry Pi® accessories”