Is this calculation correct ?

Those are not rotary encoders. They are single or multipole selector switches.

If you would follow the examples from the Google results and post a clear schematic diagram (not a Fritzing diagram) of what you intend to build, you will get more informed help.

That's this I want to building:
http://forum.arduino.cc/index.php/topic,20125.0.html

If you see, you will see a black box with 20 rotary encoder on upper panel of this airplane.

As others have suspected, it seems you want to read several switches using one analog input. The technique is discussed in this series of posts: Keypad programming for arduino - Programming Questions - Arduino Forum

What switches will you be using?

I repeat, I will use ONE rotary encoder each time I turn to the desire value I want to getting. I will NOT read multiple rotary encoder at each time. That's the point I want to.

What's difference between "Rotary Encoder", "Encoder Switch", and "Rotary Encoder Switch" ?

Sorry, you are not making any sense to me. Try posting a schematic diagram of the circuit you have in mind.

Rotary encoders are intended to be read by two digital input pins of a microprocessor, and are used to select values from a range of possibilities, all under program control. Here are some examples of their use: Arduino Playground - RotaryEncoders

I see. So connect up rotary encoders then.

A Rotary Switch and a Rotary Encoder are two completely different things.

A Rotary Encoder is kind of like an endless potentiomener (though digital). They are often used in car stereos for the volume control. You know it instantly as there is no "top" and "bottom" position, and as you turn it there are distinct small clicks.

A Rotary Switch is a multi-pole 1-of-N selector. It's just like any other switch, it just happens to be round.

What you are dealing with are Rotary Switches, NOT Rotary Encoders. It gets very very confusing when you use the wrong term for things. Please call them Rotary Switches from now on for simplicity.

If the Rotary Switches you are working with are simple On-Off, or On-On (two-way) switches you can use them as you would any switch on the Arduino. Yes, you can use a chain of resistors (but a ladder of resistors is better), but the resolution of the Arduino's ADC does limit the number of switches you can use on each chain.

I would suggest break your chain into a few smaller chains and use more ADC channels, otherwise you're not going to be able to distinguish between some of the switches at one end of the chain.

Hmm... I thinking that it is better I use this MyCockpit forum for such questions because that is about airplane hobby. They should understanding me better.

In the DigiKey.Com, they have 6.2 Ohms resistors at 2 watt, does it mean that I need 38 watt power supply ?

Qwseyvnd:
In the DigiKey.Com, they have 6.2 Ohms resistors at 2 watt, does it mean that I need 38 watt power supply ?

No, it means you need a basic understanding of electronics, which you seem to be lacking at the moment. We can help you, but only if you help us.

Please, I beg you, provide us with a SCHEMATIC of what you are trying to design. Those fritzing diagrams are worse than useless.

Even if you cannot draw a proper schematic, draw an illustration of what you want to do. If you do not have a drawing package, sketch it on paper then take a GOOD quality photograph and post that

I believe this is the goal?
With the voltage Analog_IN = 5V*Rx/(R1 + Rx) with = R2, R3, R4... as selected by the rotary multipole switch.

Qwseyvnd:
Rotary Encoder - COM-09117 - SparkFun Electronics
I have roughly same as this. The pins is exact same.

You need to tell us if this is -exactly- what you are using. If so, that is in fact a rotary encoder. You don't read off a bunch of resistors. It only requires 2 input pins on the Arduino.

But I shall have 20 pieces of such, so I need 40 pins. That's why I am wanting resistors.

Anyway, I asked my uncle who has a job as a salesman in a business that he joined to start up with some friends for many years ago which content electronics and satellite. He has a lot knowledge about electronic and is educated. So, I asked he as one person who has expertise about such. He replied that it is correct 2 watt multiply 19 is 38 watts. He has one Arduino UNO card to practice experiments. I have been explained my purpose about my project. He said to me that I must remember to have antistatic ground and bracelet and wished me good luck.

He said to me that I must remember to have antistatic ground and bracelet and wished me good luck.

Nice sentiment!

CrossRoads:
I believe this is the goal?
With the voltage Analog_IN = 5V*Rx/(R1 + Rx) with = R2, R3, R4... as selected by the rotary multipole switch.

This concept is correct but in serial with many rotary encoder which is same method.

Now I have attached a schematic picture which I took when I clicked screen dump.

What? You have 20 knobs - you need 20 analog inputs. Mega has 16. What's your plan to add more?
I'd go with MCP3208, 8-channel ADC with SPI interface. Very fast sampling too.

OK, so twenty rotary encoders. Yes, that would take 40 resistors and 40 pins.

If they are not far from the Arduino, you can use the internal pull-ups. But you'll need an Arduino with a lot of IO pins.

The Mega 2560 has 54 digital pins and 16 analog pins (which can also be used as digital pins). I would switch to that before I'd try some interlocking scheme of resistors selectively shorted to result in one analog input pin being used to read 20 rotary encoders.

I don't understand what that schematic is supposed to do. The top rotary encoder will short the 5V to ground, burning something up. Any rotary encoder contact connected will cause a zero, disabling input from any other rotary encoder contact. All open will cause 5V.

Are you trying to connect those as a voltage divider?