Sections 6.4 of the chemistry-first version and 9.4 of the atoms-first version of
An Introduction to Chemistry
by Mark Bishop
Voltaic Cells
Click here to see this lecture with captions.