Show your support for community science. Donate to Public Lab »

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.


To preorder a kit, visit the Public Lab Store:

Pre-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 I need to use a DVD-R? Will a CD-R work too? @jordankc 3 days ago
Lego Spectrometer suitable for studying sunlight? @jsbonillam 18 days ago
normal or noIR camera? @iamben 20 days ago
Quantifying Phytonutrients using a Spectrometer, Possible? @zayas 29 days ago
How do I... @Sahil about 1 month ago
I want to know a method to quantify milk proteins using the foldable mini spectrometer, Is this possible? @julsmill about 1 month ago
Can a DIY spectrometer be used to measure water turbidity? @warren about 1 month ago
How do I trigger a photo on a Raspberry Pi camera using a button? @warren about 1 month ago
How can we set up a Raspberry Pi camera as an ethernet USB device to avoid using WiFi @warren about 1 month ago
How can we stream video to or from a Raspberry Pi camera? @warren about 2 months ago
Show 3 more
What's an easy way to compare two liquid samples with a spectrometer? @warren 3 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 almost 2 years ago

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 »
Setting up the Raspberry Pi Camera for Wireless Streaming - - @partsandcrafts - - 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