The **Desktop Spectrometry Starter Kit** (now at version 3.0) is our most recent “reference design” incorporating some community improvements while balancing low cost and relative ease of construction. We have not yet met all our intended goals for this design, which is still at an exploratory phase. Please build on this design by adding a sample holder, attaching a light, or [incorporating it into an activity](/wiki/spectrometry#Activities). * [specs] * Plans * [Parts list](#Parts+List) * [Limitations and goals](#Limitations+and+goals) * Visible only, only ever intended to be visible * Needs sample frame and source light * Exposure compensation * Rigidity and robustness * Get involved in the next revision ### Limitations and goals (Desktop Spectrometry Starter Kit) Because most webcams’ exposure compensation cannot be disabled, we don’t know that colors haven’t been “boosted” between different photos. Because of this, you can compare spectra taken with the same device, but comparing spectra between different devices is a challenge we’re working towards (link to gain compensation via @stoft). The DSSK was originally created as part of the Public Lab Spectrometry Project’s goal of identifying suspected oil residue after the BP oil spill. **Table of contents & resources** | :--------------------------------|--------------------- [Spectrometry wiki page](/wiki/spectrometry) | About our overall spectrometry program [Development history](org/wiki/spectrometer-history) | How our spectrometer was collaboratively developed [Previous versions](/wiki/desktop-spectrometer-2) | Background on versions 2-2.5 [Parts list](#Parts+List) | In case you want to to source parts on your own [Assembly](#Assembly) | Instructions on putting this kit together - - [Bench](#Bench) | - - [Assemble the box](#Assemble+the+box) | - - [Put it all on the bench](#Put+it+all+on+the+bench) | instruction_booklet_1.0-print-halfpage.pdf | Print a cleaned-up version of this page from a PDF spectrometer3.0-instructions1.0-booklet.pdf | Print a booklet-formatted version from a PDF **** ## Parts List [![IMG_20150116_183204-annot.png](https://i.publiclab.org/system/images/photos/000/008/649/medium/IMG_20150116_183204-annot.png)](https://i.publiclab.org/system/images/photos/000/008/649/original/IMG_20150116_183204-annot.png) * two-piece box * JDEPC-OV04 "gumstick" webcam with USB cable. (Datasheet: Spec_of_JDEPC-OV04_Ver_1.01.pdf) -- note, this is not the same "gumstick" webcam as used in [the 2.5 Desktop Spectrometry Kit](/wiki/dsk). _Webcam is purchased in bulk from China. For more details E-mail kits@publiclab.org _ * extra paper for modifications * 45 degree wooden (ash) camera block, 3 cm x 4 x 4cm * wooden (ash) bench 1/4" (6mm) x 40mm x 235mm _Wood products are sourced locally in Portland, OR at Roeder Woodworking _ * one 65-degree fold up collimation angle * one 45-degree fold-up camera angle. * 50cm of 3/4" (2cm) width adhesive-backed loop fastener (Velcro-style) * 25cm of 3/4" (2cm) width adhesive-backed hook fastener (Velcro-style) _We buy our velcro from McMaster Carr [in bulk here](http://www.mcmaster.com/#catalog/122/3500/=12yvs8u). The two part numbers are 9489K21 and 9489K201 _ * one DVD-R _We buy ours from Amazon, choosing the cheapest option at time of purchase_ * photo emulsion printed slit 0.4mm wide printed on .004" acetate. ([Design files on GitHub](https://github.com/publiclab/spectrometer3)) _Acetate is something made custom for Public Lab by [Eberhardt Press](http://www.eberhardtpress.org/)_ * 6 yard roll of [1/8" Thermoweb Supertape](http://www.thermowebonline.com/p/supertape-roll-%E2%80%A2-1-8-in) double sided tape. (3mm wide) * printed assembly instructions (below) Also see [this longer illustrated parts list](/wiki/dsk3). **** ###Using your spectrometer Once you've assembled your spectrometer and are ready to use it, plug it in and visit [SpectralWorkbench.org](https://spectralworkbench.org) to begin recording data with it. The web-based software works in the **Chrome, Firefox and Opera browsers** on most computers and smartphones. ###(Peer) Support Public Lab is not a corporation; we're an open community of DIY environmental science researchers which you have just joined! The best place to get help is the spectrometry mailing list; to join, sign up in the form to the left. The spectrometry mailing list is made up of people like you, who are building and improving open source spectrometry techniques. Ask questions, look for help, and consider helping others too! You can also post a question on this site; it helps to share some photos or screenshots of what you're trying to do: [question:spectrometry] **** #Assembly Your spectrometer is composed of three functional elements: * a collimation slit that works as a lens, only allowing parallel light rays through its apeture. * a diffraction grating that deflects light more the lower the light's wavelength, creating a rainbow diffraction pattern. * a camera to capture the diffraction pattern, focused on the collimation slit. [![arrangement_illustrated-labeled.jpg](https://i.publiclab.org/system/images/photos/000/008/890/medium/arrangement_illustrated-labeled.jpg)](https://i.publiclab.org/system/images/photos/000/008/890/original/arrangement_illustrated-labeled.jpg) These elements are mounted on an adjustable velcro bench in a black paper box. [![IMG_20150210_143526_corrected-labeled.png](https://i.publiclab.org/system/images/photos/000/008/891/medium/IMG_20150210_143526_corrected-labeled.png)](https://i.publiclab.org/system/images/photos/000/008/891/original/IMG_20150210_143526_corrected-labeled.png) **** ##Bench ###Put velcro on the bench Everything is built up from the bench, an ash board 4cm (1.75 inches) wide. We will cover it with the loop tape (fuzzy side of the velcro). [![IMG_20150210_160302-edit.jpg](https://i.publiclab.org/system/images/photos/000/008/895/medium/IMG_20150210_160302-edit.jpg)](https://i.publiclab.org/system/images/photos/000/008/895/original/IMG_20150210_160302-edit.jpg) [![velcro-labeled.png](https://i.publiclab.org/system/images/photos/000/008/894/medium/velcro-labeled.png)](https://i.publiclab.org/system/images/photos/000/008/894/original/velcro-labeled.png) The velcro loop tape is slightly wider than half the width of the bench, two strips will hang over each edge a bit. [![IMG_20150210_160318-edit.jpg](https://i.publiclab.org/system/images/photos/000/008/896/medium/IMG_20150210_160318-edit.jpg)](https://i.publiclab.org/system/images/photos/000/008/896/original/IMG_20150210_160318-edit.jpg) **** ###Assemble the camera block You will need the camera, double-sided tape, the block, and the hook side of the velcro tape. Try to hold the camera by its edges, as it can be sensitive to electrical shorts. [![IMG_20150210_150024-ed-labels.png](https://i.publiclab.org/system/images/photos/000/008/956/medium/IMG_20150210_150024-ed-labels.png)](https://i.publiclab.org/system/images/photos/000/008/956/original/IMG_20150210_150024-ed-labels.png) Start by putting a strip of double-sided tape on the back side of the camera: [![IMG_20150210_150202.jpg](https://i.publiclab.org/system/images/photos/000/008/957/medium/IMG_20150210_150202.jpg)](https://i.publiclab.org/system/images/photos/000/008/957/original/IMG_20150210_150202.jpg) Remove the pink protective film from the double-sided tape and attach to the center of the block's 45-degree angled side, with the white cable port on top: [![IMG_20150210_150230.jpg](https://i.publiclab.org/system/images/photos/000/008/958/medium/IMG_20150210_150230.jpg)](https://i.publiclab.org/system/images/photos/000/008/958/original/IMG_20150210_150230.jpg) [![IMG_20150210_150258.jpg](https://i.publiclab.org/system/images/photos/000/008/900/medium/IMG_20150210_150258.jpg)](https://i.publiclab.org/system/images/photos/000/008/900/original/IMG_20150210_150258.jpg) On the underside of the block, attach two short strips of the hook tape (the Velcro's scratchy side). [![IMG_20150210_150318.jpg](https://i.publiclab.org/system/images/photos/000/008/901/medium/IMG_20150210_150318.jpg)](https://i.publiclab.org/system/images/photos/000/008/901/original/IMG_20150210_150318.jpg) _OPTIONAL: Make the camera focus more precise. The camera's tiny lens is pre-focused to roughly 200mm at the factory, but you can do a little better. This requires twisting the lens until it is no longer held in place by the green glue on the lens, which is easiest after the camera is mounted on the block. Pliers may be needed. Once loose, point the camera at a target (like text) 200mm away and carefully twisting the camera lens until the image is in clearest focus._ See [more research on lens focus](/n/7226). **** ###Make a diffraction grating from a DVD **Do not touch the surface of the DVD, always hold it by the edges, fingerprints will blur this important optical component.** We are going to turn a DVD-R into a diffraction grating, a device for separating light by frequency. An ideal diffraction grating would create a straight rainbow. A DVD produces a curved rainbow, but its rigidity and consistency make it a very good grating, and the tiny webcam lens curves the spectrum anyways. Aligning your diffraction grating will take some tweaking. We’ve given you extra material to help. [![ideal-vs-dvd-grating-ed.png](https://i.publiclab.org/system/images/photos/000/008/903/medium/ideal-vs-dvd-grating-ed.png)](https://i.publiclab.org/system/images/photos/000/008/903/original/ideal-vs-dvd-grating-ed.png) We have three steps, cutting a quarter of the DVD out, peeling off the reflective aluminum side, and trimming to a small piece. [![cutpeeltrim-labeled.png](https://i.publiclab.org/system/images/photos/000/008/905/medium/cutpeeltrim-labeled.png)](https://i.publiclab.org/system/images/photos/000/008/905/original/cutpeeltrim-labeled.png) _OPTIONAL: Wash the purple ink off of the DVD fragment for greater light transmission, as [described in this note](/n/11515)._ ####Peel apart a quarter of the DVD Cut out a quarter of the DVD with scissors. It may take more than one try to get a good diffraction grating, so save the rest too. Use a knife or a fingernail to dig under the corner of the DVD quarter and peel the two layers apart. [![IMG_20150210_144414.jpg](https://i.publiclab.org/system/images/photos/000/008/906/medium/IMG_20150210_144414.jpg)](https://i.publiclab.org/system/images/photos/000/008/906/original/IMG_20150210_144414.jpg) [![IMG_20150210_144530-trim.jpg](https://i.publiclab.org/system/images/photos/000/008/907/medium/IMG_20150210_144530-trim.jpg)](https://i.publiclab.org/system/images/photos/000/008/907/original/IMG_20150210_144530-trim.jpg) You will get two layers. We are trying to get a transparent purple piece without aluminum stuck to it. If you can’t find a good piece you may want to try another quarter DVD. You only need a 2cm (.75”) square cut from the outer edge. Trim down to a small square with roughly 2cm of the DVD’s outer edge. [![IMG_20150210_144232-labeled.png](https://i.publiclab.org/system/images/photos/000/008/910/medium/IMG_20150210_144232-labeled.png)](https://i.publiclab.org/system/images/photos/000/008/910/original/IMG_20150210_144232-labeled.png) Trim down to a small square with roughly 2cm of the DVD's outer edge. [![2cm-label.png](https://i.publiclab.org/system/images/photos/000/008/913/medium/2cm-label.png)](https://i.publiclab.org/system/images/photos/000/008/913/original/2cm-label.png) **** ###Assemble the diffraction grating angle You will need: [![IMG_20150210_145901-labeled.png](https://i.publiclab.org/system/images/photos/000/008/922/medium/IMG_20150210_145901-labeled.png)](https://i.publiclab.org/system/images/photos/000/008/922/original/IMG_20150210_145901-labeled.png) Overview: [![IMG_20150210_145742-ed-labeled2.png](https://i.publiclab.org/system/images/photos/000/008/916/large/IMG_20150210_145742-ed-labeled2.png)](https://i.publiclab.org/system/images/photos/000/008/916/original/IMG_20150210_145742-ed-labeled2.png) When taping the three flaps together, make sure the bottom flaps are lined up. put hook tape on the bottom. [![IMG_20150210_145304ed.jpg](https://i.publiclab.org/system/images/photos/000/008/917/medium/IMG_20150210_145304ed.jpg)](https://i.publiclab.org/system/images/photos/000/008/917/original/IMG_20150210_145304ed.jpg) [![IMG_20150210_145343ed.jpg](https://i.publiclab.org/system/images/photos/000/008/918/medium/IMG_20150210_145343ed.jpg)](https://i.publiclab.org/system/images/photos/000/008/918/original/IMG_20150210_145343ed.jpg) Put the outer edge of the dvd at the mid-point of the hole, and then remove the handles from the binder clip. [![IMG_20150210_145436ed.jpg](https://i.publiclab.org/system/images/photos/000/008/919/medium/IMG_20150210_145436ed.jpg)](https://i.publiclab.org/system/images/photos/000/008/919/original/IMG_20150210_145436ed.jpg) Put velcro on the bottom. [![IMG_20150210_145536ed.jpg](https://i.publiclab.org/system/images/photos/000/008/920/medium/IMG_20150210_145536ed.jpg)](https://i.publiclab.org/system/images/photos/000/008/920/original/IMG_20150210_145536ed.jpg) Put the outer edge of the DVD at the mid-point of the hole, and then remove the handles from the binder clip. [![IMG_20150210_145648ed.jpg](https://i.publiclab.org/system/images/photos/000/008/921/medium/IMG_20150210_145648ed.jpg)](https://i.publiclab.org/system/images/photos/000/008/921/original/IMG_20150210_145648ed.jpg) **** ###Assemble the slit card You will need: [![IMG_20150210_150959ed-labeled.png](https://i.publiclab.org/system/images/photos/000/008/923/medium/IMG_20150210_150959ed-labeled.png)](https://i.publiclab.org/system/images/photos/000/008/923/original/IMG_20150210_150959ed-labeled.png) The collimation slit should be in the DVD sleeve. _We will attach the slit using the tape as single sided tape-- tape it on top and DO NOT remove the backing film. _ Line up the collimation slit with the line on the slit card. *** ###Assemble the box Watch this step-by step video: For the purposes of this instructional I've highlighted the edges of the box in white and used an unprinted box. Your box will have a printed and unprinted sides, and no white edges. Place the box with the printing facing down. Pre-crease all the creases towards you. and crease the box top as well. [![together1-1ed.jpg](https://i.publiclab.org/system/images/photos/000/008/941/medium/together1-1ed.jpg)](https://i.publiclab.org/system/images/photos/000/008/941/original/together1-1ed.jpg) [![together1-3ed.jpg](https://i.publiclab.org/system/images/photos/000/008/942/medium/together1-3ed.jpg)](https://i.publiclab.org/system/images/photos/000/008/942/original/together1-3ed.jpg) Fold the left side "T" shape over to the right, and insert the tab from the leftmost edge into the slot at the base of the "T", as shown here: [![together1-2ed.jpg](https://i.publiclab.org/system/images/photos/000/008/943/medium/together1-2ed.jpg)](https://i.publiclab.org/system/images/photos/000/008/943/original/together1-2ed.jpg) Lay the separate box top piece on top so that its tabs line up with the slots in the box bottom’s right side. Make sure the small rectangular holes on the top and bottom of the box line up. We will put the webcam cable through that hole later. Insert the tabs together. The box top will not lay flat-- don't worry. this is because there is extra space for the two sheets to fold together. [![together1-5ed.jpg](https://i.publiclab.org/system/images/photos/000/010/512/large/together1-5ed.jpg)](https://i.publiclab.org/system/images/photos/000/010/512/original/together1-5ed.jpg) [![together1-6ed.jpg](https://i.publiclab.org/system/images/photos/000/008/945/medium/together1-6ed.jpg)](https://i.publiclab.org/system/images/photos/000/008/945/original/together1-6ed.jpg) [![together1-7ed.jpg](https://i.publiclab.org/system/images/photos/000/008/948/medium/together1-7ed.jpg)](https://i.publiclab.org/system/images/photos/000/008/948/original/together1-7ed.jpg) Now open the box back up and fold left and right side flaps to the middle to form the inner walls. They will hook together. [![IMG_20150701_141644.jpg](https://i.publiclab.org/system/images/photos/000/010/513/medium/IMG_20150701_141644.jpg)](https://i.publiclab.org/system/images/photos/000/010/513/original/IMG_20150701_141644.jpg) [![together1-12ed.jpg](https://i.publiclab.org/system/images/photos/000/008/951/medium/together1-12ed.jpg)](https://i.publiclab.org/system/images/photos/000/008/951/original/together1-12ed.jpg) Fold the outer walls up and over the inner walls. Use the two circular holes in the outer walls to position the inner walls while folding the outer wall over. [![together1-13ed.jpg](https://i.publiclab.org/system/images/photos/000/008/952/medium/together1-13ed.jpg)](https://i.publiclab.org/system/images/photos/000/008/952/original/together1-13ed.jpg) [![IMG_20150701_141857.jpg](https://i.publiclab.org/system/images/photos/000/010/514/medium/IMG_20150701_141857.jpg)](https://i.publiclab.org/system/images/photos/000/010/514/original/IMG_20150701_141857.jpg) Flip the box upside down and make sure the tabs have all popped out of the bottom of the box. Walk your fingers along the inside of the box and make sure all the tabs are popped out of the bottom. [![together1-15ed.jpg](https://i.publiclab.org/system/images/photos/000/008/954/medium/together1-15ed.jpg)](https://i.publiclab.org/system/images/photos/000/008/954/original/together1-15ed.jpg) **** ###Put it all on the bench [![IMG_20150210_143526_corrected-labeled.png](https://i.publiclab.org/system/images/photos/000/008/924/medium/IMG_20150210_143526_corrected-labeled.png)](https://i.publiclab.org/system/images/photos/000/008/924/original/IMG_20150210_143526_corrected-labeled.png) Line up the the bench with the side of the box, and align the camera's lens with the 200mm marker on the side of the box. Press the camera block down firmly. [![IMG_20150210_144844ed.jpg](https://i.publiclab.org/system/images/photos/000/010/515/medium/IMG_20150210_144844ed.jpg)](https://i.publiclab.org/system/images/photos/000/010/515/original/IMG_20150210_144844ed.jpg) Place the diffraction grating angle directly in front of the camera block and press it down firmly. [![IMG_20150210_143810.jpg](https://i.publiclab.org/system/images/photos/000/008/926/medium/IMG_20150210_143810.jpg)](https://i.publiclab.org/system/images/photos/000/008/926/original/IMG_20150210_143810.jpg) Slide the slit card in the front of the box. The printing is slightly off, unfortunately. level the slit card's line just above the box's line. the card should wedge in place on its bottom edge. [![IMG_20150210_160107.jpg](https://i.publiclab.org/system/images/photos/000/008/927/medium/IMG_20150210_160107.jpg)](https://i.publiclab.org/system/images/photos/000/008/927/original/IMG_20150210_160107.jpg) [![IMG_20150210_160149ed.jpg](https://i.publiclab.org/system/images/photos/000/008/928/medium/IMG_20150210_160149ed.jpg)](https://i.publiclab.org/system/images/photos/000/008/928/original/IMG_20150210_160149ed.jpg) Push the camera cable through the cable hole in the back of the box: [![IMG_20150115_200145ed.jpg](https://i.publiclab.org/system/images/photos/000/008/930/medium/IMG_20150115_200145ed.jpg)](https://i.publiclab.org/system/images/photos/000/008/930/original/IMG_20150115_200145ed.jpg) You can add a knot in the cable to help stabilize it so that any pulling on the cable doesn't move the webcam: [![IMG_20150713_153213.jpg](https://i.publiclab.org/system/images/photos/000/010/652/medium/IMG_20150713_153213.jpg)](https://i.publiclab.org/system/images/photos/000/010/652/original/IMG_20150713_153213.jpg) Plug it into the camera-- it only fits one way, don't force it. [![IMG_20150210_161354ed.jpg](https://i.publiclab.org/system/images/photos/000/008/931/medium/IMG_20150210_161354ed.jpg)](https://i.publiclab.org/system/images/photos/000/008/931/original/IMG_20150210_161354ed.jpg) Slide the bench in at an angle, placing it down by the cable hole, and then pushing it down to the bottom. [![IMG_20150210_160613ed.jpg](https://i.publiclab.org/system/images/photos/000/008/932/medium/IMG_20150210_160613ed.jpg)](https://i.publiclab.org/system/images/photos/000/008/932/original/IMG_20150210_160613ed.jpg) ##Complete! You're done! Your computer should recognize your spectrometer as a webcam. Now connect to your spectrometer using the web-based software at [Spectralworkbench.org](https://spectralworkbench.org) **** ###Resources * [Common hardware issues](/wiki/spectral-workbench-help#hardware-troubleshooting) * [Using the software](/wiki/spectral-workbench-usage) (including setup and software troubleshooting) * [Frequently asked questions](/wiki/spectrometer-faq) * Peer-contributed [research on open source spectrometry](/notes/spectrometer) ###Activities Here are the series of notes printed on the spectrometer. Notes below by: @amysoyka, @straylight, @wagnerc4, @ygzstc, @cfastie, @stoft, & @Alex-McCarthy. * lens focus: [/n/7226](/n/7226) * grating angle: [/n/5964](/n/5964) [/n/5892](/n/5892) * spectrometer development history: [/n/10691](/n/10691) * removable slit cards: [/n/11246](/n/11246) **Spectrometer development:** * calibration: [/n/191]( /n/191) * linearity: [/n/10476](/n/10476) [/n/6225](/n/6225) **Activities:** * oil testing: [/wiki/oil-testing-kit](/wiki/oil-testing-kit) * detection of brightening agents in laundry: [/n/174](/n/174) * pesticides: [/n/10015](/n/10015) * sugar in red wine: [/n/10955](/n/10955) * olive oil adulterants: [/n/10382](/n/10382) * milkfat concentration: [/n/10012](/n/10012) * lycopene in tomatoes: [/n/9432](/n/9432) * atmostpheric spectra: [/n/6168](/n/6168) * concentration analysis (Beer’s Law): [/n/7475](/n/7475) * flame spectroscopy: [/n/4406](/n/4406) * importing reference spectra: [/n/8995](/n/8995) ###Design Notes Consult the following notes on development for the evolution of this design: * @mathew [paper spectrometer 1](/notes/mathew/11-07-2014/a-paper-spectrometer-design) * [paper spectrometer 2](/notes/mathew/12-06-2014/a-paper-spectrometer-design-pt-2)