---
title: Build a Backyard Spectrometer in 30 Minutes
siteUrl: https://logzly.com/diysciencelab
author: diysciencelab (DIY Science Lab)
date: 2026-06-18T19:09:50.749126
tags: [spectrometer, diy, science]
url: https://logzly.com/diysciencelab/build-a-backyard-spectrometer-in-30-minutes
---


**Disclosure: We are reader supported, and earn affiliate commissions when you buy through us.**


Ever stared at a rainbow and wondered why the colors split the way they do? Knowing the answer is a tiny bit of physics, a dash of curiosity, and a handful of [household items](https://www.amazon.com/s?k=household+items&tag=organizationtip101-20). In a world where screens dominate, building a simple spectrometer lets you see the hidden fingerprints of light right in your own backyard. Let’s get hands‑on and turn a few everyday things into a science tool that even a kid can brag about.

## What a Spectrometer Actually Does

A spectrometer is just a device that spreads out light into its component colors—its spectrum—so you can measure which wavelengths are present. Think of it as a color‑sorting machine for light. Scientists use big, expensive versions to study stars, test [water quality](https://www.amazon.com/s?k=water+quality&tag=organizationtip101-20), or check the purity of chemicals. Our backyard version won’t replace a lab instrument, but it can show you the same basic idea: different sources of light have different “color signatures.”

## Gather Your Materials (All Under $10)

| Item | Why You Need It |
|------|-----------------|
| Old CD or DVD | The surface works like a tiny diffraction grating, bending light into a rainbow |
| [Cardboard tube](https://www.amazon.com/s?k=cardboard+tube&tag=organizationtip101-20) (like a [paper towel roll](https://www.amazon.com/s?k=paper+towel+roll&tag=organizationtip101-20)) | Holds the [light source](https://www.amazon.com/s?k=light+source&tag=organizationtip101-20) and keeps stray light out |
| [Black construction paper](https://www.amazon.com/s?k=black+construction+paper&tag=organizationtip101-20) or [matte black](https://www.amazon.com/s?k=matte+black&tag=organizationtip101-20) [spray paint](https://www.amazon.com/s?k=Spray+Paint&tag=organizationtip101-20) | Reduces glare and improves contrast |
| Small piece of white cardstock (about 5 × 5 cm) | Acts as the screen where the spectrum appears |
| Tape, glue, or a [hot glue gun](https://www.amazon.com/s?k=hot+glue+gun&tag=organizationtip101-20) | Holds everything together |
| A ruler and a marker | For measuring distances and drawing lines |
| A smartphone with a camera (optional) | To capture the spectrum for later analysis |

All of these can be found around the house or at a local discount store. No need for fancy optics—just a bit of ingenuity.

## Step‑By‑Step Build

### 1. Prepare the Tube

Cut a length of cardboard tube about 15 cm long. If you’re using a [paper towel](https://www.amazon.com/s?k=paper+towel&tag=organizationtip101-20) roll, you can simply cut it with scissors. Paint the inside with matte black or line it with black [construction paper](https://www.amazon.com/s?k=Construction+paper&tag=organizationtip101-20). This step is crucial because any stray light will wash out the spectrum.

### 2. Make the Slit

A narrow slit lets a thin [beam of light](https://www.amazon.com/s?k=beam+of+light&tag=organizationtip101-20) enter the tube, which makes the spectrum clearer. Fold a piece of [aluminum foil](https://www.amazon.com/s?k=aluminum+foil&tag=organizationtip101-20) into a tight strip about 1 mm wide. Tape it across one end of the tube, leaving a tiny gap in the middle. If you have a [razor blade](https://www.amazon.com/s?k=razor+blade&tag=organizationtip101-20), you can carefully cut a slit directly into the foil for an even cleaner line.

### 3. Attach the Diffraction Grating

Take the CD and break off a small piece of the reflective side (about 2 cm square). The shiny side of a CD is covered with microscopic grooves that act as a diffraction grating. Glue this piece onto the opposite end of the tube, shiny side facing outward. Make sure it’s flat and centered; any tilt will distort the spectrum.

### 4. Add the Screen

Cut the white cardstock into a small square and tape it just outside the CD side, about 2 cm away. This is where the rainbow will land. You can adjust the distance later to get the best spread of colors.

### 5. Test with a Light Source

Point the slit end of the tube at a bright, single‑color light—like a [LED flashlight](https://www.amazon.com/s?k=LED+flashlight&tag=organizationtip101-20), a [laptop screen](https://www.amazon.com/s?k=laptop+screen&tag=organizationtip101-20), or even the sun (but be careful not to look directly at it). You should see a faint rainbow projected onto the white card. If the colors look washed out, move the screen a little farther away or tighten the slit.

### 6. Calibrate (Optional but Fun)

If you want to measure wavelengths, place a ruler along the screen and note the distance from the center of the bright spot to each color band. Using the simple grating equation (d sin θ = mλ) you can estimate the wavelength (λ). Don’t worry if the math feels fuzzy; the real joy is watching the colors shift when you change the light source.

## Tips for Better Spectra

* **Use a steady light** – A [flickering bulb](https://www.amazon.com/s?k=flickering+bulb&tag=organizationtip101-20) will make the rainbow jump. [LED lamps](https://www.amazon.com/s?k=LED+lamps&tag=organizationtip101-20) or a smartphone torch work well.
* **Darken the room** – The darker the background, the sharper the colors appear.
* **Keep the CD clean** – Fingerprints scatter light and blur the spectrum. A quick wipe with a lint‑free cloth does the trick.
* **Experiment with different sources** – Try a candle, a sodium street lamp, or a blue LED. Each will give a distinct pattern.

## Why This Project Matters

Building a spectrometer is more than a cool party trick. It teaches you how light, a wave, can be split and measured without any expensive equipment. For teachers, it’s a low‑cost way to bring real science into the classroom. For parents, it’s a hands‑on activity that turns a lazy afternoon into a discovery session, much like setting up a [low‑cost home chemistry lab for kids](/diysciencelab/how-to-build-a-lowcost-home-chemistry-lab-for-kids-stepbystep-guide). And for anyone who loves to tinker, it’s a reminder that the world’s most powerful tools often start with a [piece of cardboard](https://www.amazon.com/s?k=piece+of+cardboard&tag=organizationtip101-20) and a bit of curiosity.

When I first tried this as a kid, I used a broken DVD and a soda can. The result was a blurry mess, but the excitement of seeing a rainbow on a [piece of paper](https://www.amazon.com/s?k=piece+of+paper&tag=organizationtip101-20) stayed with me. Years later, as a maker, I keep returning to simple optics because they never fail to spark wonder. Your backyard spectrometer can become a stepping stone to bigger projects—maybe a DIY spectrophotometer for measuring plant health or a low‑cost sensor for checking water clarity.

## Next Steps

Now that you have a working spectrometer, consider these follow‑up ideas:

* **Record spectra with your phone** – Use a free app to capture the rainbow and compare it to online reference charts, or follow a detailed [step‑by‑step guide for curious makers](/diysciencelab/build-a-backyard-spectrometer-in-30-minutes-stepbystep-guide-for-curious-makers).
* **Build a portable case** – Add a small handle and a pocket for the screen so you can take it on hikes.
* **Combine with a [solar panel](https://www.amazon.com/s?k=solar+panel&tag=organizationtip101-20)** – Test how different light conditions affect the output of a tiny solar cell.

Science is all about asking “what if?” and then building something to find the answer. With just a few minutes and a handful of scraps, you’ve turned your backyard into a mini lab. Keep experimenting, keep asking questions, and remember: every great discovery started with someone looking at a simple rainbow and wondering what it really meant.
