0

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/
Please be positive and constructive with your questions and comments.

5-way Navigation switch and Arcade Bonnet

by nl28382 on Tue Sep 21, 2021 11:16 pm

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?

nl28382
 
Posts: 34
Joined: Wed Jan 11, 2017 10:13 am

Re: 5-way Navigation switch and Arcade Bonnet

by dastels on Wed Sep 22, 2021 9:24 am

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

dastels
 
Posts: 7543
Joined: Tue Oct 20, 2015 3:22 pm

Please be positive and constructive with your questions and comments.