Building a low-cost Spectrophotometer of visible light using ARDUINO and MATLAB

This package contains files necessary to build your own spectrophotometer of visible light.
Updated 14 Jul 2016

View License

Editor's Note: This file was selected as MATLAB Central Pick of the Week

This package shows how to build a low-cost spectrophotometer of visible light using ARDUINO and MATLAB. A spectrophotometer is a device that analyses the concentration of a chemical solution by absorption of light in a specific wavelength.
On this project, the monochromator that separates the white light in a rainbow and selects a single light beam, was done by controlling a servo-motor that spins a piece of old DVDs as a mirror prism. The servo-motor needs an external power source.

In MATLAB, I programmed an interface that controls the ARDUINO.
This interface helps the user to make the analysis of a graphic, excluding solvent data and showing the electromagnetic spectrum absorbance of a given chemical substance. With this interface, as well as with the outcome graphic, the user can see the peak of absorbance and make the analyses of concentration on the right wavelength.

This package contains the MATLAB code, the sketch showing how it was built and electric circuit.

Cite As

Filipe Almeida (2024). Building a low-cost Spectrophotometer of visible light using ARDUINO and MATLAB (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2015a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Find more on Chemistry in Help Center and MATLAB Answers

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes