Public Lab Wiki documentation

Lego Spectrometer

« Back to Spectrometry

This is the latest version of Public Lab's DIY Desktop Spectrometry Kit -- the Lego Spectrometer. It addresses issues of rigidity, sourcing, modularity, and image quality over previous versions.

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.

Kits now available

This is an open source kit, so you can just build your own -- but to order parts for a kit, visit the Public Lab Store:

Order a kit

Design goals

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

  • rigidity
  • easy to source parts
  • modularity - working together
  • image quality

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:

Quick start

Assembly instructions are here:

Read the introduction post here:


Title Author Updated Likes
Do a DVD is provided with the LEGO kit ? ty ! @adamsanta about 2 months ago
Can I use the lego spectrometer to measure enviromental light spectrum? @baxamook 3 months ago
Uploading images from raspberry pi. @cedarlodge 3 months ago
Lego Spectrometer suitable for studying sunlight? @jsbonillam 3 months ago
Do I need to use a DVD-R? Will a CD-R work too? @jordankc 4 months ago
normal or noIR camera? @iamben 5 months ago
Quantifying Phytonutrients using a Spectrometer, Possible? @zayas 5 months ago
How do I... @Sahil 5 months ago
I want to know a method to quantify milk proteins using the foldable mini spectrometer, Is this possible? @julsmill 5 months ago
Can a DIY spectrometer be used to measure water turbidity? @warren 5 months ago
How do I trigger a photo on a Raspberry Pi camera using a button? @warren 5 months ago
How can we set up a Raspberry Pi camera as an ethernet USB device to avoid using WiFi @warren 5 months ago
How can we stream video to or from a Raspberry Pi camera? @warren 6 months ago
What's an easy way to compare two liquid samples with a spectrometer? @warren 7 months ago
Can I upgrade a DIY spectrometer with a Raspberry Pi camera? @warren over 1 year ago
Getting the spectrometer to work with a Raspberry Pi? @anjohn12 about 2 years ago
Show 6 more

Ask a question  or help answer future questions


Activities show how to use this project, step by step.

Purpose Category Status Author Time Difficulty Replications
Assembling the Public Lab Lego Spectrometer - - @warren - - 0 replications: Try it »
DIY-spectrometer episode 2 (using LEGO) - - @TakeshiMatsumoto - - 0 replications: Try it »
An evolution of the 3D print version of the Spectrometer - - @ajy00 - - 0 replications: Try it »
Raspberry Pi spectrometer GUI - - @cedarlodge - - 0 replications: Try it »
1. Setting up the Raspberry Pi Camera for Wireless Streaming - - @partsandcrafts - - 0 replications: Try it »
Spectrometer 3.0 add-on v2 - - @programmer1200 - - 0 replications: Try it »
Prepare an SD card for a Raspberry Pi camera from scratch - - @warren - - 0 replications: Try it »

Add an activity  or request an activity

Activities should include a materials list, costs and a step-by-step guide to construction with photos. Learn what makes a good activity here.


Tinkercad model, below


3D models

3D brick models

Lots of great brick models are available here: and on

Brick dimensions are nicely described in this diagram from Wikipedia:

spectrometry lego lego-spectrometer

parent:spectrometry activities:lego-spectrometer