Public Lab Research note

Introducing a Lego Spectrometer

by warren | December 13, 2017 17:34 13 Dec 17:34 | #15364 | #15364

We've been making and distributing Do-It-Yourself spectrometers since 2011, and have been through 4 major kit versions and hundreds of different community contributed modifications, new versions, changes, and more. As a community we've gotten really good at helping people build a spectrometer, but we need to do a huge amount more to support more advanced work, more rigorous and consistent experiments, and more consistent and better data collection.

For the numbers, we've shipped thousands of spectrometry kits, and over 12,000 people have uploaded spectra to our open source online database, Spectral Workbench. That database now includes over 100,000 spectra:

Now we're ready to take this to the next level with a better design that incorporates a vast amount of input and ideas from this huge contributor community.

The new 4.0 Desktop Spectrometry Kit is made of... Legos! We're calling it the Lego Spectrometer.

Read more about it here

You can pre-order it for $50 now in the Public Lab Store, or see the plans at the bottom of this page, in several formats.

Pre-order a kit See assembly instructions

We'll also be posting build instructions shortly -- and like all Public Lab kits, it's open source hardware -- CERN OHL 1.2.

Design goals

Over the years, we've identified a few really critical improvements that have been tough to solve:

Our mission is to make it easier, cheaper, and more accessible to do environmental monitoring, and to do that as an open source, collaborative community. And of course part of that is cost -- while people build upon our kits with more expensive options and upgrades, we want the basic kit to be extremely affordable.

So, this design tries to address each of these challenges with ideas and input from the community:

image description


A stable, rigid device is pretty critical for consistent measurements, but many of the ways we tried to solve this were cost prohibitive at the price point we wanted in our kit -- wood frames, lasercutting, 3d printing. There have been some fantastic designs that are rock solid, but Legos allowed us to make a kit that's extremely precise and robust enough to throw in a backpack and not worry that it'll go out of calibration.


Past kits have been wonderfully cheap and easy to modify, but they incorporated die cutting and printing with white ink on black paper -- not easy to replicate in the home. This Lego design has almost identical dimensions to our foldable papercraft spectrometers, but you can affordably order parts for just one kit from, or print it on a 3D printer from the models below, and know that the dimensions will be exactly the same. See the assembly instructions for a list of the exact parts and where to source them.

image description


It can be tough in an open source community to get people to work together on a single design, to agree to shared conventions -- everyone wants to try something new and exciting! But if we could get people to modularize and separate out their spectrometers, their sample holders, their light sources and cameras, we could mix and match, and people could make improvements to one piece without breaking compatibility with the rest.

Today we're proposing a standard Lego-based interface, which will ensure rigid connections between each part, starting with the connection between the spectrometer body and the sample holder and light source.

Below you'll find open source 3D models for the key components, so you can 3D print these connections, but if you already have a device or a sample apparatus, just add these pieces to make it compatible with other Lego Spectrometers. And post your designs! We'd love to hear from you in the comments below.

image description

Raspbery Pi Camera

The revolution kicked off by the Raspberry Pi project has made high quality imaging incredibly easy. The Raspberry Pi camera modules are perfect for a DIY spectrometer, with low noise, high sensitivity and small size.

But there are still problems to solve there, not least an easy way to connect the whole system to our browser-based uploader at Spectral Workbench! Pitch in and let's iron out some of these issues.


We're really hoping people will build on these designs, using the Lego 3-pin interface described above, and add things like:

  • different lighting sources
  • different sample container attachments
  • adaptors for things like telescopes & bigger cameras

But most of all, we're looking for well-documented guides on how to do different tests with these devices. Let's put them to work!

Try solving some of these challenges, or add your own!

Title Author Updated Likes Comments
How do I... @akhila over 3 years ago 13
Can the spectrometer or turbocharger be used for lal testing? @Ag8n over 6 years ago 3
How can we detect contaminants in water samples with a DIY spectrometer using reagents? @warren over 6 years ago 1
Can a DIY spectrometer be used to measure water turbidity? @warren over 6 years ago 6
What's an easy way to compare two liquid samples with a spectrometer? @warren almost 7 years ago 7
How do I collect a sample for laboratory analysis? @warren almost 7 years ago 3
Desktop Spectrometry Kit to arduino? @jjoll about 7 years ago 5
Can a Spectrometer be used to detect material type? @jjoll about 7 years ago 3
What are good containers to use for spectrometry samples? @warren almost 8 years ago 1
Can I upgrade a DIY spectrometer with a Raspberry Pi camera? @warren almost 8 years ago 10
Question: Can DIY-spectrometer be used for analysis of soil @interestedperson_ha about 8 years ago 7
Getting the spectrometer to work with a Raspberry Pi? @anjohn12 over 8 years ago 6


Login to comment.