The PLab-3 Upgrade Proto spectrometer has three optical components; the slit, the diffraction grating and the camera/sensor. While professional spectrometers often include additional optics to collimate the light from the source, with care, the PLab simplified design, with only a slit, can still provide usable results.
A well-formed slit approximates a point source so given some distance between slit and camera, with camera properly focused, spectrometer resolution is optimized. While the film-based slits are convenient, because the slit width is photographically controlled, the film slits are not without optical defects.
As the slit width drops (to improve resolution) the photographic "blurring" at the edges becomes a larger percentage of the "gap" and thus greater defects of this optical device. The ideal optical slit is formed by empty space between two very sharp edges. Here is a simple way to build an "air-gap" slit with well defined, controlled, parallel edges.
Science is an evolutionary process. Above, I noted that the slit is an optical component and, as such, it is important to the measurement of diffraction. However it is also important to identify the degree to which the precision of the slit affects the quality or accuracy of the final spectral measurement. Initial comparative tests using a SANM CM-020 (original PLab-3 camera, 1600 pix) and 0.12mm slit (film and blade versions) show only a very slight improvement with the blades. This suggests: 1) a film slit has reasonable performance with a simple webcam and tiny lens, 2) building an accurate blade slit with good performance is not very difficult (as is shown here), 3) at about 0.5 nm/pix spectral data sampling of that SANM camera, blades do not provide substantial performance improvement over a film-based slit and so 4) the spectrometer resolution limits mostly lay with other design factors. However, ongoing work at higher resolutions may provide additional performance details to further clarify slit performance.
This method is based on the wood part design on my previous PLab-3 Upgrade Prototype parts but could easily be adapted. Start with a "divider" which is just a 1.5x2.0x0.25 block with a 1/2-in hole positioned inline with the optical path.
Next, cleanly cut the block in half, mid-line of the hole. (A block w/o hole could be used; just cut in half and then cut a notch in both parts for the light path.) What is important is that the cut is clean and straight (I used a table saw); sand flat if needed but the two parts should mate smoothly. I then used 2 layers of double-stick tape to adapt to single-edged safety utility razor blades. Tape the same side of each block either side of the hole.
With the block vertical against a flat surface (hole down) and one razor blade parallel with sharp edge against the same surface, attache the blade to the block.
[ Note: Doing this accurately means that the "mating surface" of each block half will be perfectly aligned and perfectly parallel. ]
Now add one layer of double-stick tape to the block edge of only one of the blocks. This tape will re-attach the two blocks together again.
[ Note: Because of the previous alignment of the razor blade edges to the surface of the block edge, the thickness of the tape will set the spacing of the blade edges -- thus automatically forming a very parallel slit. ]
Lay the blocks on the blade sides and stick them together.
Glue the assembly to the support board of the spectrometer.
Add some black paper to reduce reflections and any stray light paths around the blades.
Add more black paper to reduce reflections and then a black paper cover.