One Raman spectrometer, built three times.
DIYraman began as a breadboard of salvaged and off-the-shelf optics. It became a 3D-printed cube that other people have built, and is now being milled from a single block of aluminium. Every version is documented in the open.
From breadboard to aluminium

DIYraman v0
Where it started. Kinematic mounts, cage rods and a surplus spectrometer, inside a home-made glovebox.

CubeRaman
A 60 mm printed cube with five plug-in modules. Winner of the Hackaday Prize “Frikkin’ Lasers” challenge.

TubRaman
A separate design that grew out of the cube. Every optic is referenced to one milled 6061 tub.
Light goes in green. A little of it comes back a different colour.
Shine a 532 nm laser at a sample and almost all of the light scatters back unchanged. A tiny fraction returns shifted in wavelength, and the size of each shift matches a vibration of the molecules it hit.
Filter out the laser, spread what is left into a spectrum, and you get a fingerprint you can compare with a reference: plastics, solvents, minerals, the active ingredient of a painkiller. That returning light is the Raman signal.
Three things light does when it hits a sample

Rayleigh scattering
The everyday kind. The light changes direction and keeps its wavelength. Almost everything that comes back from a sample is this, and the filters throw it away.

Raman scattering
About one photon in ten million gives a little energy to a molecule, or takes some, and comes back with a shifted wavelength. This is the signal.

Fluorescence
The sample absorbs the light and glows, like a dye under UV. It is far stronger than the Raman signal and can bury it.
From laser to spectrum, station by station
- LaserA narrow beam of one known wavelength: 532 nm, green.
- Clean-up filterCheap green modules also leak infrared and stray colours. A bandpass filter lets only 532 nm through.
- Dichroic mirrorSet at 45°, it reflects everything below 550 nm, so the laser turns toward the sample.
- Objective or sample lensFocuses the beam to a tight spot on the sample and collects what scatters back along the same path.
- SampleAlmost all of the light scatters back unchanged. A tiny fraction comes back Raman-shifted.
- Dichroic mirror, againThe shifted light is now above 550 nm, so it passes straight through. The laser light is reflected away.
- Longpass filterThe unshifted light is so much stronger than the signal that it is filtered a second time.
- Focusing lens and fibreA lens brings the clean signal onto the tip of an optical fibre.
- SpectrometerSpreads the light by wavelength. A few seconds of exposure give a spectrum you can compare with a reference.
DIYraman v0: the breadboard
The first build was about finding out whether a home-made Raman spectrometer was possible at all. A 532 nm DPSS laser module, two Thorlabs KM100 kinematic mounts, a 20× objective and a Thorlabs dichroic and longpass filter sit on cage rods over a printed baseplate, feeding a surplus B&W Tek spectrometer through a 200 µm fibre.
It all lived in an overpressure glovebox made from an IKEA box, a HEPA filter and two PC fans, because dust on the optics was a constant fight. It worked, and it took a lot of patience to align. No one else ever confirmed they could reproduce it, which is what the next version set out to fix.

v0 The full assembly: laser, dichroic, objective, sample stage and focusing optics.

Glovebox Overpressure kept dust off the optics.

Running Lights off, laser on.

First spectrum Paracetamol, 3000 ms × 10 averages, against a reference.
- Laser
- 532 nm DPSS module30–70 mW
- Alignment
- 2 × Thorlabs KM100by hand
- Spectrometer
- B&W Tek BTC100-2Ssurplus
- Parts cost
- about $985
CubeRaman: the whole optical head in a 60 mm printed cube
CubeRaman keeps the back-scattering layout of the breadboard and shrinks it into one 3D-printed cube. Five modules bolt to its faces, and a single 20× objective both focuses the laser and collects the scattered light. Every mechanical part, from the lens tubes to the kinematic mounts, prints without supports.
Fusion model, drag to turn
532 nm laserRaman-shifted light
Exported straight from the Fusion model. The objective and the spectrometer are bought parts and are not in the CAD.
Follow the light
What CubeRaman has measured
Verified on polypropylene, polyethylene, paracetamol, isopropyl alcohol, ethanol, diamond and beta-carotene. Liquids can be read through a thin container wall.
Usable range is 600–3000 cm−1. The 100 µm slit of the surplus spectrometer sets the resolution, so close peaks blur together.
How to read a spectrum
The horizontal axis is the Raman shift in cm−1: how far the light has moved from the laser line. Each peak belongs to one vibration of the molecule, so the pattern of peaks is specific to the substance.
You identify a sample by laying its spectrum over a reference, as in the polypropylene plot here. Peak height depends on exposure and focus, so compare where the peaks sit before you compare how tall they are.

Measured Polypropylene, 1500 ms × 25 averages, above a reference spectrum.
CubeRaman, part by part
- Laser
- 532 nm, about 30 mWClass 3B
- Objective
- 20×, infinity-corrected2.4 mm working distance
- Filters
- DMLP550, FELH0550plus a 532 nm bandpass
- Spectrometer
- B&W Tek BTC100-2S100 µm slit
- Printing
- PETG-CF, 0.12 mm layersno supports
- Parts cost
- about €749plus laser safety glasses
What it can’t do yet
Some stray light still gets through. And the magnet-held kinematic mounts are not fully preloaded, so alignment can drift.
Both are mechanical problems. That is why the next version is metal.
What any of these builds needs
- A 532 nm laser module
- A bandpass filter, a dichroic mirror and a longpass filter
- An objective or lens to focus on the sample
- A lens to focus the signal into a fibre
- A fibre and a spectrometer; mine is a surplus B&W Tek BTC100-2S
- Laser safety glasses rated for 532 nm


TubRaman: one block of aluminium does the aligning
TubRaman is a separate design that grew out of CubeRaman, not the cube remade in metal. The whole optical path sits in a single tub milled from 6061 aluminium. Each optic drops into its own pocket, so the tub is the reference and there is very little left to align.
Work-in-progress CAD, drag to turn
532 nm laserRaman-shifted light
Exported from the current Fusion model, which is still changing. The black retainers are 3D-printed placeholders and will probably be replaced.
Follow the light
One datum
Laser, mirrors, filters and lenses are all located by the same milled part. Nothing depends on how well five printed modules line up.
Adjust only where it counts
The fixed optics are hard-mounted. The fine adjustment sits at the collection focus, where the signal has to land on the tip of a fibre.
Milled in my own shop
I cut the parts on a small 3-axis mill. The kit pays for the machining and for the next round of development.
The TubRaman kit
A mechanical kit. €379 buys the milled aluminium. The optics, laser and spectrometer are not included and come on top. There is no shipping date yet.
in the kit
- The CNC-milled 6061 aluminium parts
- Probably the retainers that hold the optics. This is not decided yet
- Final contents list still to be confirmed
you bring
- Dichroic, filters and lenses
- 532 nm laser module
- Spectrometer and fibre
What the rest of the build costs
The kit is the aluminium only. These are the prices I paid for the same or equivalent parts when I built CubeRaman, so treat them as a guide. Supplier, shipping and what you already own will change the sum.
| Part | Example | About |
|---|---|---|
| Dichroic mirror | Thorlabs DMLP550 | €195 |
| Longpass filter | Thorlabs FELH0550 | €150 |
| Laser clean-up filter | 532 nm bandpass, 10 nm wide | €95 |
| Two achromatic lenses | Thorlabs AC127-019-A and AC127-025-A | €118 |
| Laser module | 532 nm, Ø12 mm | €10 |
| Fold mirror, screws, vials | 10 × 10 × 1 mm mirror, M3 screws, 2 mL vials | €15 |
| Fibre | SMA905, about 200 µm core | €50 |
| Spectrometer | Surplus B&W Tek BTC100-2S | €180 |
| On top of the kit | about €810 | |
| With the €379 kit | about €1,190 |
Not in these sums: certified laser safety glasses for 532 nm. You need them before the laser is switched on.
What it can measure, and what it can’t
A DIY Raman spectrometer tells you what a sample mostly is. It does not tell you how much of it there is.
Works well
- Solids and powders
- Clear liquids, also through a thin container wall
- Plastics, solvents, minerals, the active ingredient of a painkiller
Struggles
- Strongly fluorescent samples, such as plant matter and some dyes
- Dark samples, which absorb the laser
- Peaks that sit close together, because of the 100 µm slit
Not what it is for
- How pure a sample is: the result is qualitative
- Traces of one substance mixed into another
- Anything that needs a certified result
A measurement is 1 to 10 seconds of exposure, usually averaged over several. Weak signals need longer.
Three generations, side by side
If you want to build now and own a 3D printer, CubeRaman is the one with instructions. If you would rather not align printed parts, wait for the TubRaman kit. v0 is kept for the record.
| 00 DIYraman v0 | 01 CubeRaman | 02 TubRaman | |
|---|---|---|---|
| Structure | Cage rods and bought mounts on a printed baseplate | 3D-printed cube with five modules | One CNC-milled 6061 tub |
| Light | 532 nm | 532 nm | 532 nm |
| Alignment | Two Thorlabs KM100 mounts, by hand | Printed kinematic mounts held by magnets | Fixed by the tub, fine adjustment at the fibre |
| Sample | Quartz cuvette | Tubes, vials, or through a container wall | 2 mL vial, enclosed |
| Parts cost | about $985 | about €749 | €379 for the aluminium kit, plus about €810 for optics, laser, fibre and spectrometer |
| Status | Archived | Open source, documented | Kit in preparation |
| Where to go | docs.diyraman.com | Hackaday.io, GitHub | Kit waitlist |
Questions people ask
You need some experience with 3D printing, electronics and software, and ideally a little optics. The hardware is mechanically simple, but aligning the optics and getting a clean signal takes patience. It is a good learning project and not plug-and-play.
Mostly solids and powders. Clear liquids work too. Strongly fluorescent or dark samples, such as plant matter and some dyes, can overwhelm the Raman signal, and some materials need preparation first.
Typical exposures are 1 to 10 seconds, depending on the sample and the laser power. Weak signals need longer exposures, or many of them averaged.
No. These builds give qualitative results: which Raman-active substances are most present. Quantitative work needs certified calibration samples and a detector with higher resolution, and I advise against using a DIY instrument for it.
With the same surplus B&W Tek spectrometer you can use the old SpectrumStudio software. I also publish my own Python tools, which do the same job with fewer features plus a few the original lacks. Post-processing can be done in many programs.
A 785 nm version
An open, low-cost 785 nm benchtop Raman spectrometer for identifying powders and materials, with a self-built spectrograph and laser. It is in development and has no date. Progress, including what does not work, will go in the devlog.
Before you switch a laser on
A laser at this power can damage an eye permanently in milliseconds, also from a reflection. Cheap green modules often leak strong infrared that you cannot see, so use a filter.
Keep the beam enclosed wherever you can, which also improves the signal. Run the laser at the lowest power that gives a usable spectrum, and follow your local laser regulations. If you measure chemicals, read the safety data sheet first.
A one-person project by Jacob Busshart, documented on YouTube as Allegedly Science. I am not an optical engineer or a physicist. Corrections and feedback are welcome.
Not a toy. Laser inside when built.
v0 licences: hardware CERN-OHL-S v2, documentation CC BY-SA 4.0, software MIT.
