The Ocean Optics USB modular spectrometer automates much of the work required to obtain the spectrum of a given element. In the past one needed to position gratings, measure angles, and use diffraction theory to arrive at wavelengths either to find the identity of an unknown spectral source, or to compare (discrepancy and uncertainty!) experimentally acquired spectra with the known or theoretically calculated spectra. We will do the latter, and compare with the accepted values maintained by the U.S. National Institutes for Standards and Technology (NIST), which we will describe presently. We can simply point the end of a fiber optic cable at a light source, click once, and there's a measured spectrum. It's a black box thing now. Atomic spectra through is a hugely important quantum phenomena, however routine the measurements may be made. The founders of quantum theory considered the underlying physics explaining spectral lines to be maddening non-classical. A quote from one of the first books about Quantum Mechanics, written by Dirac [1] will suffice and will help us begin to wrap our minds around energy level diagrams as well.
The necessity for a departure from classical mechanics is clearly shown by experimental results. In the first place the forces known in classical electrodynamics are inadequate for the explanation of the remarkable stability of atoms and molecules, which is necessary in order that materials may have any definite physical and chemical properties at all. The introduction of new hypothetical forces will not save the situation, since there exist general principles of classical mechanics, holding for all kinds of forces, leading to results in direct disagreement with observation. For example, if an atomic system has its equilibrium disturbed in any way and is then left alone, it will be set in oscillation and the oscillations will get impressed on the surrounding electromagnetic field, so that their frequencies may be observed with a spectroscope. Now whatever the laws of force governing the equilibrium, one would expect to be able to include the various frequencies in a scheme comprising certain fundamental frequencies and their harmonics. This is not observed to be the case. Instead, there is observed a new and unexpected connection between the frequencies, called Ritz's Combination Law of Spectroscopy, according to which all the frequencies can be expressed as differences between certain terms, the number of terms being much less than the number of frequencies. This law is quite unintelligible from the classical standpoint.By terms, the spectroscopy community eventually meant 'energy levels' characterized not solely by Bohr's principal quantum number, but also by the quantum numbers associated with the angular momentum of the state, yielding what are now called 'spectroscopic terms' (e.g. $^1 S_0$ for the ground state of Helium, a 'singlet' state). The energy levels, as we found for spin states of the electron, form a discrete set of states. How the frequencies are decrypted from the 'difference between ... terms' is concisely expressed using Planck's quantum hypothesis below in equation 1. The energy difference between two stationary (eigen)states is carried off by a single light quanta which we've been calling a photon, in a spectacular confirmation of the conservation of energy, \begin{equation} E_{ph} = \frac{hc}{\lambda_{ik}} \equiv E_i - E_k.\end{equation} The subscripts refer to different energy terms or levels, where for emission, $E_i > E_k$, and where now the wavelength (and frequency) of the emitted photon is no longer related to the energy of any single state (as is the case classically), but two states.
This is profoundly unclassical, and truly takes some getting used to. If I may try your patience with one more paragraph, I think the impact of Bohr's model must be brought out a little more sharply. Bohr's explanation of spectral lines was more to the purpose of explaining why atoms are stable at all, something that became a great scandal in physics once the meaning of Rutherford's discovery of the nucleus had come home to the physics community. His, Bohr's, adoption of Planck's quantum hypothesis seems now inevitable: how else can energy be conserved unless the light-quanta's energy is the same as energy change in the atom? How else can one get at the allowed eigenstates unless the light quantum accounts for the energy difference between those allowed energy eigen states, and the difference between their angular momenta? However logical in hindsight Bohr's great step appears to us, we cannot ignore what 'classical physicists' felt they were being asked to give up in order to access the explanatory power of the new quantum theory. They were unsubtly being asked to give up determinism, causality. I need to quote an historian to buttress my assertion here:
Of particular interest is a letter of 20 March 1913 in which Rutherford commented on Bohr's manuscript for the Philosophical Magazine. Apart from some minor criticism, Rutherford complained that it was 'very difficult to form a physical idea' of the basis of Bohr's theory, a complaint that would soon be repeated by other British physicists. More specifically, Rutherford referred to what he called 'one grave difficulty,' namely this: 'How does an electron decide what frequency it is going to vibrate at when it passes from one stationary state to the other? It seems to me that you would have to assume that the electron knows beforehand where it is going to stop.' Rutherford instinctively [sic] sensed the element of acausality associated with Bohr's atom, a feature which would only move to the forefront of discussion several years later. [quoted from Helge Kragh, 'The early reception of Bohr's Atomic Theory (1913-1915)', Research Publications on Science Studies 9. Aarhus: Centre for Science Studies, University of Aarhus, (2010)]Note Rutherford's implicit association of the spectral line to the 'physical' vibrations of an electron whose flight had abruptly changed. This is how one of the greatest physicists kicked and screamed at quantum jumps (others later would be more shrill). Here he wants the photon's light to be associated with deterministic, causal, classical motion. Bohr's great leap is this quantum jump whereby the electron's energy change appears as a photon, all in one go, in a jump. Rutherford is having trouble with what 'physical' even means. He, like others would after him, was having a kind of vertigo, teetering between not knowing what the word meant anymore and not being willing to alter what the word had meant before Bohr's papers.[2] Can you see why Bohr's papers were so important?
Important papers make us have to look at the world in a new way. Bohr's contribution here certainly did this. And Rutherford was quite right. It meant accepting the fundamental acausality of the process that created the photon. The best one could ever do was to calculate its probability. A war was then brewing about what the new theory meant. Against its import, against the underpinnings of the new physics, against acausality, its combatants would include Einstein, Schrodinger, and de Broglie (as ironic as that sounds), and as we have seen, Rutherford (to some extent). Later, there would be Bohm, then Bell, and now there are too many to count. They stand against Heisenberg, Born, and of course Bohr (this notion of a 'Copenhagen' Interpretation hides the other 'cities' that helped to frame the banner so named, including Göttingen, Cambridge, Moscow, and Pasedena, among others). Let me end this 'paragraph' with a final assertion of my own. I do not think that the scientific revolution visited upon humanity by the crisis that is quantum mechanics is over and done. This, our current situation in the 21st century, is what revolutionary times look like. We are living in a scientific revolution right now, having to do with the nature of quantum reality, something which seems profoundly different than what had passed for reality before the crisis began with Planck's now almost simple sounding assertion: energy is quantized.
Various gas discharge sources are available. Acquiring the spectrum is easy, and can be done using the integrated diffraction grating and CCD detector (Ocean Optics USB 4000, and USB Flame). The The whole integrated miniaturized contraption is pictured in figure 1. Light from the discharge lamp is collected by a fiber optic cable and directed via mirrors to reflective grating, and from there to the CCD detector, a quantum light detector that makes use of the photoelectric effect. The detector is `calibrated' to readout intensity vs. wavelength. Before collecting the spectra, remember the following precautions:

Perhaps a reminder is worthwhile to mention a nice summary of what is in an abstract. A picture, and then a list. Here's an abstract: