Voltage created by various reactions (not the true voltages, but instead relative to hydrogen reaction)
http://en.wikipedia.org/wiki/Standard_electrode_potential_%28data_page%29
In the above table, the Hydrogen reaction actually produces around 4.4V, so in order to find the true absolute potential for each reaction, we must add 4.4V to all the listed potentials. For metal/electrolyte reactions, the metal plate is charged negative and the electrolyte becomes positive.
Really basic battery description: whenever metal touches electrolyte, for a moment the electrolyte dissolves the metal extremely rapidly. However, the dissolving metal atoms don’t bring any of the metal’s “electron sea” along with them as they’re torn free from the metal surface. Hence the dissolved metal atoms in solution will all be positively charged metal ions lacking one, two, or three electrons. This process of dissolving is creating a “charge pump,” a pumping action which quickly makes the metal negative and the electrolyte positive. The charge-pumping action is the source of the electrical energy sent out by a battery. To power the charge-pump, one of the battery’s plates must corrode (a chemical reaction, think of it as a slow form of burning.) But there’s more.
When metal first touches electrolyte, the charge pump action only runs briefly until a voltage appears between metal and electrolyte, and an intense electrostatic field appears in the atom-sized gap between the metal and electrolyte. (Gap is called the Helmholtz Double Layer.) This e-field halts the dissolution, since positive metal ions will be repelled by the electrolyte and attracted by the metal surface. Rather than dissolving like a lump of sugar, the metal charges up to a few volts negative, and afterwards sits quietly in contact with the electrolyte.
If we could somehow reduce the voltage between metal and electrolyte, we could turn the corrosion reaction back on again, and harvest electrical energy. The easy way to do this is to place two different metals in contact with the same blob of electrolyte. Each metal/electrolyte voltage (or “half-cell potential”) will be different. The voltage from electrolyte to metal1 might be lower, and the voltage from electrolyte to metal2 might be higher. If we electrically connect the two metals, their metal/electrolyte voltages are forced to the same value. The voltage between electrolyte and metal2 has been lowered, so metal2 begins dissolving rapidly, and a relatively huge electric current appears: the path of charge flow is through the metal-metal contact, but also through each of the two metal/electrolyte contacts. The charge-pumps on the two metal surfaces are connected back-to-back and in opposite directions, and the stronger pump wins. (Actually, their oppositely-directed voltages will subtract, and the difference determines the overall charge flow direction.) The weaker pump is forced to flow backwards: the voltage between metal1 and electrolyte has been forced to be higher than normal. Any reactions at the metal1 surface are forced to run backwards by the more energetic corrosion-reaction at the surface of metal2.
Note that a battery with terminals connected together is a “shorted” battery. The reactions run fast, and one plate dissolves rapidly with much heat output. In real world circuitry the currents are designed to be hundreds of times smaller than the short-circuit current. In other words, when a battery powers some electrical device, the “electrical friction” or resistance presented by that device will greatly slow down the charge flow and the chemical reactions at the electrode surfaces.
Typical misconceptions: there is no current in the electrolyte? (Wrong, in fact the path for current is always a circle, so if we have one amp at the battery terminals, there must be one amp going through the electrolyte.) Another misconception: the carbon rod in a Zinc flashlight battery is an electrode plate (no, actually the rod is a low-resistance current spreader. Instead, the cylinder of compressed carbon/manganese-oxide powder is one electrode, the zinc can is the other.)