Public Lab Wiki documentation

Lego Spectrometer

6,161 views | Last edited by warren over 1 year ago | #15354

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

Ask a question  or help answer future questions on this topic


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

Add an activity  or request an activity guide you don't see listed

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: