USB spectrometer (CCD sensor)

Principle of operation

This spectrometer is buit around a TCD1304 linear CCD sensor which has already been widely used and is very well documented. It is driven by a Stellaris launchpad board which has a LM4F120H5QR microcontroller. The source code of the firmware and the (crappy) control software are available here.

TCD1304 CCD sensor
Stellaris launchpad that controls the CCD sensor

The optics were scavenged from different places : one camera lens and the lens of an unidentified computer camera. Both of them having a focal length of 50 mm.

Optics of the spectrometer. On the right, the entrance lens with the grating and on the left, the camera lens.

The principle is exactly the same as my previous spectrometer, substituting the webcam with the CCD sensor.

Construction

The spectrometer is built with 3 mm thick mdf cut with a cheap Chinese laser cutter from a drawing designed on OpenSCAD. Everything is available here.

Drawing of the spectrometer and practical realisation. The were a few adjustment to be made while building it.

The entrance slit is built with two steel pieces polished to have an edge as smooth an thin as possible. As the focal lengths of both lenses are equal, le width of the slit must not be greater than the width of a pixel in order to get the best possible resolution.

Entrance slit of the spectrometer

Examples of spectra

Here are some measured spectra. The conversion from pixel number to wavelength is done with a second order interpolation function, it is more than enough to have an error smaller than the instrument resolution.

The spectrometer is calibrated using a compact fluorescent lamp which has spectral lines with known wavelengths.

CFL lamp spectrum. The lines give a way to calibrate the spectrometer. (wavelength of the lines)

The spectrum of the sun is somewhat disappointing. The maximum of intensity occurs around 600  whereas it should be around 500 . Moreover, there is some sort of oscillating structure which should not be there. I didn't find any convincing explanation of these two things.

Solar spectrum. I have no idea about the origin of the oscillating structures (CCD sensor ?)
Red laser pointer spectrum

Pictures