Spectral Workbench usage
Basics
SpectralWorkbench.org is a web-based software suite for collecting spectra, using your Public Lab DIY spectrometer. Once you have an assembled spectrometer connected to your computer or smartphone, go to http://spectralworkbench.org and click Capture.
To use the full functionality, and especially on iOS, you should first log in using your PublicLaboratory.org username.
You'll then be able to connect to your spectrometer (desktop or Opera Mobile) or upload a spectrum. Give it a title, tags, and description.
Calibration
You'll notice that many other spectra on the site have a scale showing "nm" or nanometer units on the horizontal axis. To get scaled data, you must calibrate your spectrometer. There are several kinds of calibration but here we're talking about wavelength calibration, which allows your spectrometer to display a wavelength value for any color of light it sees. Luckily, this is easy.
1) Find a fluorescent light bulb -- preferably a compact fluorescent bulb you can put your spectrometer very close to. Point your spectrometer at the bulb -- if it's too bright, point it at a piece of white paper or wall which is brightly illuminated by the bulb.

2) You'll see an image like the above example; if you're on a computer, it may appear horizontally. The lines you see are from mercury in the bulb, and since we know what wavelengths they should be, we can use this to calibrate your device.
Save this spectrum, and tag it "fluorescent". Now you'll need to use the analysis tool to calibrate; it will walk you through the process. Read more and watch a short intro video here:
Spectral Workbench calibration
Analysis
Once your spectrometer is calibrated, what do you do next? This is the central question of our open spectrometry community. People are building and using these spectrometers for many reasons and there are different approaches being actively developed. For the time being, try browsing recent contributed open spectrometry research, and look over our growing list of applications and resources
We are planning to add details and next steps for:
- setting up a light source (a laser, halogen, or UV light) to illuminate your sample
- preparing samples of liquids or solids
- analysis and interpretation of the data you collect
However, exploring exactly how these things work & how to do them is exactly what we hope to better understand by working together. Join now and take these next steps with us!
Videos
Various tutorial videos on using Spectral Workbench.
Intro
A brief intro to Spectral Workbench's new web-based capture interface, including absorption spectroscopy:
Calibration
Learn to calibrate your spectrometer with a compact fluorescent light (CFL). This shows some interfaces which have since been updated and revised, but the basic steps are the same.
See Spectral Workbench Help if you have trouble.
Troubleshooting
Many things can go wrong (or right) when collecting spectra. Here are a few to look out for:
Blurriness
DUE TO AN ERROR IN THE PRINTED INSTRUCTIONS, your webcam may be focused incorrectly. The lens should be twisted to focus about 9" or 22 cm away from the webcam (not 3" as the printed instructions said). Read here for more detail
Overexposure
If there's too much light, the camera's sensors can't compensate and will be maxed out. On your graph, this looks like it's "hitting the ceiling" and you get a section with only 100% brightness. (Sometimes this happens in only one channel and you can't see until you enable RGB mode, as in the below image.)
There are a few things you can do:
- dim the source light
- move it further away
- use a diffuser (milky plastic, a sheet of paper), although this may affect your spectrum
- reflect light off of a piece of white paper or a wall (or, for something with a very clean white spectrum, try Teflon)
- use more sample (if you have, say, a colored liquid)
Light leakage
If your spectrometer is not sealed well, light may enter the imaging chamber and mess up your readings. The below image has some white light leaking in -- just seal up your spectrometer well with dark tape, especially where your camera attaches to it.
![]()
Advanced use
Timing
Sometimes, when using the "waterfall" interface in live capture, you don't quite catch that moment when a flare of light is just perfect. You can use Set sample row under "More tools" on the Analyze page to choose the best cross-section of the image, or use Auto-detect brightest spectrum and the website will try to do it for you.
![]()
Webcam configuration
Most webcams have auto exposure and color "correction" so that in dim light, you can still see. This will unfortunately change the exposure between readings, so for quantitative work, it must be disabled. On Linux, you can use the "uvcdynctl" utility as outlined here.
On a Mac, you can download this utility: http://www.phoboslab.org/log/2009/07/uvc-camera-control-for-mac-os-x
"Sluggo" from DM9.se has written a UVC library and control app for OS.X. It works pretty well with a logitech c900 webcam, allowing GUI-based control of whitebalance, exposure, and focus(!). He's also working on an ObjectiveC wrapper. http://www.dm9.se/?tag=uvc-ctrl
If you find a comparable utility for Windows, please post it here.
Offline use
The offline-usable Java version of Spectral Workbench is no longer actively developed or supported, but you can read about it here: Spectral Workbench Offline
A new browser-based offline version is in development; ask on the mailing list.
What links here
Activity
-
On May 21, Adam D. Griffith is the Director of the Rivercane Restoration Project through the Program for the Study of Developed Shorelines (PSDS) at Western Carolina University. He received a BS degree in Biology from Roanoke College in 1999 (Omicron Delta Kappa) and was subsequently accepted to Teach for America. He taught 6th grade science in the Houston Independent School District in Texas for three years before becoming a kayak instructor taking him on numerous trips to the beaches of the United States, Panama, and Europe. He received his MS degree in Biology from Western Carolina University in 2008 studying the native bamboo Arundinaria gigantea. Since 2008, he has been a research scientist at PSDS where he launched coastalcare.org with the Santa Aguilla Foundation. He currently directs the communities and sea-level rise research. In 2011, he co-founded the Public Laboratory with 6 others by securing a $500,000 grant from the James S. and John L. Knight Foundation. As a result, his writings can be found on the PBS IdeaLab blog, publiclaboratory.org, and others. He has presented his research with the Public Laboratory across the United States, Mexico, and Europe. Selected Publications Tanner, B.R., Kinner, D.A., Griffith, A.D., Young, R.S. & Sorrell, L.M (2011). Presence of Arundinaria gigantea (river cane) on numerous non-wetland sites suggests improper ecological classification of the species. Wetlands Ecology and Management. 19(6): 521-532. Coburn, A.S., Griffith, A.D. & Young, R.S. (2010). Inventory of coastal engineering projects in coastal national parks. Natural Resource Technical Report NPS/NRPC/GRD/NRTR???2010/373. National Park Service, Fort Collins, Colorado. Griffith, A.D., Kinner, D.A., Tanner, B.R., Moore, A., Mathews, K.G. & Young, R.S. (2009). Nutrient and physical soil characteristics of rivercane (Arundinaria gigantea) stands, western North Carolina. Castanea. 74(3): 224-235. created a new Note: Dowel failure on my Tyvek Delta kite
-
Adam-Griffith commented on Adam-Griffith's Note "Folly Beach, SC - a detailed look at a $3 million beach "restoration"" on May Tuesday
-
On May 17, The creator of [GrassrootsMapping.org](http://grassrootsmapping.org) and co-founder and Research Director for the Public Laboratory for Open Technology and Science, Jeff designs mapping and civic science tools and professionally flies balloons and kites. Notable software he has created include [the vector-mapping framework Cartagen](http://cartagen.org) and [orthorectification tool MapKnitter](http://mapknitter.org), as well as open spectral database and toolkit [Spectral Workbench](http://spectralworkbench.org). He is a fellow at MIT's [Center for Civic Media](http://civic.mit.edu), on the advisory board of [Personal Democracy Media's WeGov](http://techpresident.com/topics/wegov) and an advocate of open source software, hardware, and data. He co-founded Vestal Design, a graphic/interaction design firm in 2004, and directed the Cut&Paste Labs project, a year-long series of workshops on opensource tools and web design in 2006-7 with Lima designer Diego Rotalde. Jeff holds an MS from MIT and a BA in Architecture from Yale University, and spent much of that time working with artist/technologist Natalie Jeremijenko, building robotic dogs and stuff. To find out more, visit Unterbahn.com. * https://github.com/jywarren * http://unterbahn.com * http://unterbahn.com/thesis/ updated Tool: Near-Infrared Camera
-
mathew commented on mathew's Note "Pole photography" on May Friday
-
On May 16, Shannon updated Note: Tool for Stalling: Mapping
-
Adam-Griffith commented on Adam-Griffith's Note "Folly Beach, SC - a detailed look at a $3 million beach "restoration"" on May Wednesday
-
On May 14, dridaycreromi updated Note: Folly Beach, SC - a detailed look at a $3 million beach "restoration"
-
On May 14, dridaycreromi created a new Note: Folly Beach, SC - a detailed look at a $3 million beach "restoration"
-
On May 13, The creator of [GrassrootsMapping.org](http://grassrootsmapping.org) and co-founder and Research Director for the Public Laboratory for Open Technology and Science, Jeff designs mapping and civic science tools and professionally flies balloons and kites. Notable software he has created include [the vector-mapping framework Cartagen](http://cartagen.org) and [orthorectification tool MapKnitter](http://mapknitter.org), as well as open spectral database and toolkit [Spectral Workbench](http://spectralworkbench.org). He is a fellow at MIT's [Center for Civic Media](http://civic.mit.edu), on the advisory board of [Personal Democracy Media's WeGov](http://techpresident.com/topics/wegov) and an advocate of open source software, hardware, and data. He co-founded Vestal Design, a graphic/interaction design firm in 2004, and directed the Cut&Paste Labs project, a year-long series of workshops on opensource tools and web design in 2006-7 with Lima designer Diego Rotalde. Jeff holds an MS from MIT and a BA in Architecture from Yale University, and spent much of that time working with artist/technologist Natalie Jeremijenko, building robotic dogs and stuff. To find out more, visit Unterbahn.com. * https://github.com/jywarren * http://unterbahn.com * http://unterbahn.com/thesis/ updated Note: Help requested with mapknitter- Balloon mapping of Metal processing plant in Providence, RI
-
On May 13, The creator of [GrassrootsMapping.org](http://grassrootsmapping.org) and co-founder and Research Director for the Public Laboratory for Open Technology and Science, Jeff designs mapping and civic science tools and professionally flies balloons and kites. Notable software he has created include [the vector-mapping framework Cartagen](http://cartagen.org) and [orthorectification tool MapKnitter](http://mapknitter.org), as well as open spectral database and toolkit [Spectral Workbench](http://spectralworkbench.org). He is a fellow at MIT's [Center for Civic Media](http://civic.mit.edu), on the advisory board of [Personal Democracy Media's WeGov](http://techpresident.com/topics/wegov) and an advocate of open source software, hardware, and data. He co-founded Vestal Design, a graphic/interaction design firm in 2004, and directed the Cut&Paste Labs project, a year-long series of workshops on opensource tools and web design in 2006-7 with Lima designer Diego Rotalde. Jeff holds an MS from MIT and a BA in Architecture from Yale University, and spent much of that time working with artist/technologist Natalie Jeremijenko, building robotic dogs and stuff. To find out more, visit Unterbahn.com. * https://github.com/jywarren * http://unterbahn.com * http://unterbahn.com/thesis/ updated Note: Help requested with mapknitter- Balloon mapping of Metal processing plant in Providence, RI
-
On May 13, The creator of [GrassrootsMapping.org](http://grassrootsmapping.org) and co-founder and Research Director for the Public Laboratory for Open Technology and Science, Jeff designs mapping and civic science tools and professionally flies balloons and kites. Notable software he has created include [the vector-mapping framework Cartagen](http://cartagen.org) and [orthorectification tool MapKnitter](http://mapknitter.org), as well as open spectral database and toolkit [Spectral Workbench](http://spectralworkbench.org). He is a fellow at MIT's [Center for Civic Media](http://civic.mit.edu), on the advisory board of [Personal Democracy Media's WeGov](http://techpresident.com/topics/wegov) and an advocate of open source software, hardware, and data. He co-founded Vestal Design, a graphic/interaction design firm in 2004, and directed the Cut&Paste Labs project, a year-long series of workshops on opensource tools and web design in 2006-7 with Lima designer Diego Rotalde. Jeff holds an MS from MIT and a BA in Architecture from Yale University, and spent much of that time working with artist/technologist Natalie Jeremijenko, building robotic dogs and stuff. To find out more, visit Unterbahn.com. * https://github.com/jywarren * http://unterbahn.com * http://unterbahn.com/thesis/ updated Note: Public Lab NorCal Meetup Fort Mason San Francisco CA
-
nedhorning commented on John_Wells's Note "The Scottish National Aerial Photography Scheme" on May Monday
-
On May 13, The creator of [GrassrootsMapping.org](http://grassrootsmapping.org) and co-founder and Research Director for the Public Laboratory for Open Technology and Science, Jeff designs mapping and civic science tools and professionally flies balloons and kites. Notable software he has created include [the vector-mapping framework Cartagen](http://cartagen.org) and [orthorectification tool MapKnitter](http://mapknitter.org), as well as open spectral database and toolkit [Spectral Workbench](http://spectralworkbench.org). He is a fellow at MIT's [Center for Civic Media](http://civic.mit.edu), on the advisory board of [Personal Democracy Media's WeGov](http://techpresident.com/topics/wegov) and an advocate of open source software, hardware, and data. He co-founded Vestal Design, a graphic/interaction design firm in 2004, and directed the Cut&Paste Labs project, a year-long series of workshops on opensource tools and web design in 2006-7 with Lima designer Diego Rotalde. Jeff holds an MS from MIT and a BA in Architecture from Yale University, and spent much of that time working with artist/technologist Natalie Jeremijenko, building robotic dogs and stuff. To find out more, visit Unterbahn.com. * https://github.com/jywarren * http://unterbahn.com * http://unterbahn.com/thesis/ updated Note: The Scottish National Aerial Photography Scheme
-
ives commented on GroundworkNola's Note "Youth Mapping Experiences" on May Sunday
-
PlanetenPaultje commented on cfastie's Note "Invisible Rays" on May Sunday
-
On May 11, Patrick Coyle updated Note: Public Lab NorCal Meetup Fort Mason San Francisco CA
-
patcoyle commented on cfastie's Note "Invisible Rays" on May Saturday
-
On May 10, Lynn Reale Wolbarst created a new Note: Help requested with mapknitter- Balloon mapping of Metal processing plant in Providence, RI


