Do they make dip switches that combine into a single analog input?

What I'm looking for a set of dip switches that combine together to make a single analog input. I've seen 5 button momentary keyboard switches that combine into an analog wire (http://arduino-direct.com/sunshop/index.php?l=product_detail&p=334), but I was looking for something smaller where you would use it for configuration, and only takes one wire.

Yeah, it should be simple to make such a circuit with different valued resistors for each pin and or the switches together, but I was wondering if there was something pre-made. If so, what is the name of it, so that I can look for it?

I strongly suspect there is no such thing available.

retrolefty:
I strongly suspect there is no such thing available.

I figured as much after an initial search of some retailers. But I figured, maybe they are called something else. Thanks.


So you want a switch like this only with all the legs on one side connected as a common pin?
Or you want it premade with resistors?
Like a resistor network?

CrossRoads:

So you want a switch like this only with all the legs on one side connected as a common pin?
Or you want it premade with resistors?
Like a resistor network?
http://www.bourns.com/pdfs/r2r.pdf

R/2R is the term I didn't know, thanks.

Most convenient would be if the dip switches and the r/2r resistor network were bundled together, but a 4/6/8 bit r2r that I could hook up a standard through the hole/breadboard dip switch to would be fine. Basically I was starting to notice that I was running out of digital pins and I was wondering if there was a simple way to use one of the analog pins.

Hi, we have made some versions of what i guess you have been looking for for some years now
basically 4/8 pins are liked together then on the opposite switch side 4/8 each as a single output

With the R/2R network you may have to add an opamp to adjust offset and full scale value if necessary, as needed.

If you're running out of digital pins, why not use a shift register?

these r/2r do exist (bourns for example).
another way is to use a potmeter with up to 16 positions.