5-way switch 2 one analog input

Breakout boards, sensors, other Adafruit kits, etc.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
danlcarr
 
Posts: 8
Joined: Tue Dec 15, 2015 3:22 pm

5-way switch 2 one analog input

Post by danlcarr »

looking the product that had 5or 4-way switch 2 one analog input
and display. I lost the product link.

Thank you

User avatar
blnkjns
 
Posts: 963
Joined: Fri Oct 02, 2020 3:33 am

Re: 5-way switch 2 one analog input

Post by blnkjns »

Is it obsolete?
Maybe you could use this:
https://www.adafruit.com/product/2925
It is 8-way though.
Combined with 7 resistors, for example 1kΩ ones, between each pair of pins you get a voltage divider for analog output. The top end of the row goes to VCC, the bottom value to GND, middle pin to analog input.
The value can be retrieved by

Code: Select all

int n=(analogRead(ROTARYPIN)+73)/146;

Locked
Please be positive and constructive with your questions and comments.

Return to “Other Products from Adafruit”