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
Lego Spectrometer cardboard cut out template? @aga about 2 months ago
Does the image quality of the raspberry camera higher than the webcam? @Builder6274 4 months ago
Does the image quality of the raspberry camera higher than the webcam? @Builder6274 4 months ago
Raspberry pi operating system for Lego spectrometer @Aleksi12358 5 months ago
Do a DVD is provided with the LEGO kit ? ty ! @adamsanta 9 months ago
Can I use the lego spectrometer to measure enviromental light spectrum? @baxamook 10 months ago
Uploading images from raspberry pi. @cedarlodge 10 months ago
Lego Spectrometer suitable for studying sunlight? @jsbonillam 10 months ago
Do I need to use a DVD-R? Will a CD-R work too? @jordankc 11 months ago
normal or noIR camera? @iamben 12 months ago
Quantifying Phytonutrients using a Spectrometer, Possible? @zayas 12 months ago
How do I... @Sahil 12 months ago
I want to know a method to quantify milk proteins using the foldable mini spectrometer, Is this possible? @julsmill 12 months ago
Can a DIY spectrometer be used to measure water turbidity? @warren 12 months ago
How do I trigger a photo on a Raspberry Pi camera using a button? @warren about 1 year ago
How can we set up a Raspberry Pi camera as an ethernet USB device to avoid using WiFi @warren about 1 year ago
How can we stream video to or from a Raspberry Pi camera? @warren about 1 year ago
What's an easy way to compare two liquid samples with a spectrometer? @warren about 1 year ago
Can I upgrade a DIY spectrometer with a Raspberry Pi camera? @warren about 2 years ago
Getting the spectrometer to work with a Raspberry Pi? @anjohn12 over 2 years ago
Show 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 - - 1 replications: Try it »
Preparing a DVD-R to act as a diffraction grating - - @MrBumper - - 0 replications: Try it »
Raspberry Pi spectrometer GUI - - @cedarlodge - - 0 replications: Try it »
An evolution of the 3D print version of the Spectrometer - - @ajy00 - - 0 replications: Try it »
DIY-spectrometer episode 2 (using LEGO) - - @TakeshiMatsumoto - - 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 - - 1 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:

Public Lab is open for anyone and will always be free. By signing up you'll joined a diverse group of community researchers and tapped into a lot of grassroots expertise.

Sign up