Connect with users of Wolfram technologies to learn, solve problems and share ideas
Mark as an Answer
5 Total Likes
Follow this post
Share this post:
Building a (rudimentary) spectrometer with Wolfram/Raspberry Pi
BoB LeSuer, Chicago State University
10 years ago
Note: This is an older post of mine that needed some housecleaning (I updated my website and subsequently broke the links). This project hasn't been changed, but since I just got hold of a new RPi2, I may have to break out the Legos again.
I describe in a
blog entry on my website
how I went about building a basic visible spectrophotometer using the Wolfram Language, a Raspberry Pi, a few Legos and a variety of tutorials found on the web. The spectrometer uses a white-light LED as a source. A reflective grating made out of a CD is mounted on a 512 step stepper motor to get variable wavelengths and a photoresistor is used as the detector. The setup looks like this:
As with some of my other projects discussed in the Raspberry Pi forum, I am using MathLink and the WiringPi library to handle most of my GPIO communication with the RPi. Mathematica serves as a GUI to turn the source on/off, move the grating (and remember where the grating is positioned) and (naturally) plot and process the results:
It's not a terribly sophisticated interface - merely a palette with some buttons, but it does the trick. You'll see in the above image that there is much room for improvement with respect to my "spectra". The primary issues here are (a) my stepper motor only allows for about 32 steps across the visible spectrum and (b) the low-budget method for measuring the detector response results in a fair amount of noise. Still, (not shown) the reproducibility is decent given the lack of sophistication and the setup demonstrates how Wolfram/RPi can be used to make a basic instrument for learning and discovery.
In addition to posting some improvements to the instrument, I'm hoping to show how it can be used for some DIY science experiments - it would be great to see a WolfSpec derivative in a future science fair project...
Reply to this discussion
in reply to
Community posts can be styled and formatted using the
Tag limit exceeded
Note: Only the first five people you tag will receive an email notification; the other tagged names will appear as links to their profiles.
Add a file to this post
Follow this discussion
Be respectful. Review our
to understand your role and responsibilities.
Wolfram|Alpha Notebook Edition
Volume & Site Licensing
Enterprise Private Cloud
Service Plans Benefits
Wolfram Language Documentation
Wolfram Language Introductory Book
Get Started with Wolfram
Fast Introduction for Programmers
Fast Introduction for Math Students
Webinars & Training
Connected Devices Project
Wolfram Data Drop
Wolfram + Raspberry Pi
. All rights reserved.
Learn how »