DIY Arduino Spectrophotometer for Berry Anthocyanins

DIY Arduino Spectrophotometer for Berry Anthocyanins

ISEF Category: Biochemistry

Ready to Turn This Idea Into a Real Project?

This guide was put together with the help of AI research tools to give you a solid starting point. But a competitive science fair project lives in the details: refining your research question, fine-tuning your variables, analyzing your data, and presenting your findings like a seasoned scientist.

For next steps tailored to your interests, skill level, and timeline, work one-on-one with a MehtA+ mentor. Learn more about MehtA+ Science & Engineering Research Mentorship →

Subcategory: Analytical Biochemistry  ·  Difficulty: Intermediate  ·  Setup: School Lab  ·  Time: 1 to 2 Months

The Hook

A berry can look fresh long after its pigment starts dropping. Your eyes miss that shift, but a simple light sensor can catch it. If your DIY spectrophotometer tracks a commercial unit, you are building a real analytical tool. Then you can use it to ask how berry color changes as storage time passes.

What Is It?

A spectrophotometer is a light meter with a filter. You shine one color of light through a sample, then measure how much makes it through. More pigment usually means less light gets through, and the Beer-Lambert law says that drop in light can track concentration in a straight line over a useful range.

Your DIY version uses an Arduino, a photodiode, and three LEDs, so you can test more than one color band. First, you benchmark it against a commercial unit with food dyes, which gives you a known standard. Then you switch to berry extracts and follow anthocyanins, the red-purple pigments that change as fruit ages or oxidizes.

Why This Is a Good Topic

This project gives you a clean engineering build and a real chemistry question in one setup. You can test calibration, linearity, and repeatability with food dyes, then move to a real food matrix that changes over time. That makes the work feel like method development, not just a demo. You also get a clear link to food quality, pigment chemistry, and low-cost sensing.

Research Questions

  • How does LED wavelength affect the linear range of the DIY spectrophotometer for food dyes?
  • What is the effect of cuvette material on agreement between the DIY unit and a commercial spectrophotometer?
  • Does the Arduino-photodiode device match the commercial unit's Beer-Lambert slope for red, blue, and yellow dyes?
  • To what extent does berry storage time change anthocyanin readings from the DIY spectrophotometer?
  • Which calibration model gives the smallest error when converting photodiode signal into concentration?
  • How does ambient light shielding affect repeatability across back-to-back measurements?

Basic Materials

  • Arduino Uno or Nano microcontroller.
  • Three LEDs with distinct wavelengths, such as red, green, and blue.
  • Photodiode sensor module.
  • Resistors, jumper wires, and a solderless breadboard.
  • Black cardboard, foam board, or 3D printed parts for a light-tight housing.
  • Clear plastic cuvettes or matching sample tubes.
  • Food dye sets and distilled water for standards.
  • Fresh berries, storage containers, and labels for time points.
  • Dropper pipettes, coffee filters, and a digital kitchen scale with 0.1 g accuracy.

Advanced Materials

  • Bench spectrophotometer or UV-Vis spectrometer for reference readings.
  • Quartz cuvettes.
  • Analytical balance.
  • Micropipettes with disposable tips.
  • Centrifuge or vacuum filtration setup for berry extracts.
  • pH meter and buffer solutions for matrix checks.

Software & Tools

  • Arduino IDE: Uploads the sensor code and reads raw light measurements.
  • Python: Fits calibration curves, checks linearity, and compares error metrics.
  • Google Sheets: Organizes replicates, blanks, and quick charts.
  • JASP: Runs t tests, ANOVA, and effect size checks without paid software.

Experiment Steps

  1. Define the target signal, then choose whether you will calibrate on food dyes first or berry extracts first.
  2. Design the optical chamber, then lock in the LED, photodiode, and sample position so each reading uses the same geometry.
  3. Build the calibration curve, then select standards that span the absorbance range you expect to measure.
  4. Add controls and blanks, then separate true absorbance from ambient light, drift, and container effects.
  5. Benchmark the DIY unit against the commercial spectrophotometer, then compare slope, intercept, and repeatability.
  6. Apply the validated method to stored berries, then test how anthocyanin readings change across storage time.

Common Pitfalls

  • Letting the housing leak room light, which pushes the photodiode reading around between trials.
  • Changing the sample container or path length, which breaks the calibration curve.
  • Skipping blanks for each LED wavelength, which makes the baseline look like absorbance.
  • Comparing berry extracts with different cloudiness, which mixes pigment signal with scattering from pulp and solids.
  • Using only one dye or one berry type, which hides whether the method really works across different matrices.

What Makes This Competitive

A stronger version treats the DIY instrument like a measurement method, not a craft build. Compare absorbance slopes, intercepts, and error across several dye classes, then report repeatability and bias against the commercial unit. Add a messy real sample like berries at different storage stages, and you show transfer from clean standards to a harder matrix. That mix of method validation, comparison data, and real-world samples can make the project stand out.

Project Variations

  • Test blackberries, blueberries, and strawberries to see whether matrix color changes the calibration curve.
  • Swap the LED set for UV and visible wavelengths to compare which band tracks anthocyanins best.
  • Measure the same berries at different pH conditions to see how pigment chemistry changes the absorbance signal.

Learn More

  • PubMed: Search review articles on anthocyanins, food pigments, and spectrophotometry.
  • NIH PubChem: Look up anthocyanin structures and related pigment chemistry.
  • USDA FoodData Central: Find berry composition data and sample context for common fruits.
  • MIT OpenCourseWare: Search introductory analytical chemistry lectures on Beer-Lambert law and calibration.
  • Journal of Chemical Education: Look for free spectrophotometry papers and instrument build ideas.
  • OpenStax Chemistry 2e: Review absorbance, light interaction, and calibration curves in a free textbook.

For next steps tailored to your interests, skill level, and timeline, work one-on-one with a MehtA+ mentor. Learn more about MehtA+ Science & Engineering Research Mentorship →

To discover more projects, visit the MehtA+ Science Fair Project Discovery Hub​ →

Shopping Cart