You are on page 1of 9

Home Search Collections Journals About Contact us My IOPscience

A simple spectrophotometer using common materials and a digital camera

This article has been downloaded from IOPscience. Please scroll down to see the full text article.

2011 Phys. Educ. 46 332

(http://iopscience.iop.org/0031-9120/46/3/014)

View the table of contents for this issue, or go to the journal homepage for more

Download details:
IP Address: 129.93.16.3
The article was downloaded on 06/04/2013 at 13:45

Please note that terms and conditions apply.


FEATURES
www.iop.org/journals/physed

A simple spectrophotometer using


common materials and a digital
camera
Eko Widiatmoko, Widayani, Maman Budiman,
Mikrajuddin Abdullah and Khairurrijal1
Department of Physics, Faculty of Mathematics and Natural Sciences, Institut Teknologi
Bandung, Jalan Ganesa 10, Bandung 40132, Indonesia

E-mail: krijal@fi.itb.ac.id

Abstract
A simple spectrophotometer was designed using cardboard, a DVD, a pocket
digital camera, a tripod and a computer. The DVD was used as a diffraction
grating and the camera as a light sensor. The spectrophotometer was
calibrated using a reference light prior to use. The spectrophotometer was
capable of measuring optical wavelengths with a theoretical accuracy as high
as 0.2 nm. Using this spectrophotometer, wavelengths are determined via
image processing.

Introduction intended for direct visual observations, in which


In the present day, spectrophotometry is known wavelengths can be obtained by looking at a scale
as a well-established method both in physical which could be linear or angular.
and chemical quantities measurements. For The ability of a digital camera to record
example, spectrophotometry has been used in spectra would be a great advantage in designing
determining absorbance, film thickness and a simple spectroscope. The images could be
semiconductor band gap [1–3]. Unfortunately, saved, manipulated, and displayed on a computer.
standard spectrophotometers are expensive and This approach has been reported previously in [7],
they have complex instrumentation too. Their where the spectrum image was printed and
use is also limited to researchers in universities measured manually. However, with fully digital
and research institutions. Those reasons have methods, wavelength measurement can be more
led to the design of a simple and low- precise and faint spectral lines can be detected.
cost spectrophotometer, which can be built In this article, we describe a spectroscope design
and operated by students in classrooms as intended to be used with a digital camera. The
well as ordinary people. Several simple spectroscope is made of cardboard and a DVD
spectrophotometers have been designed using grating. The spectroscope is mounted on an
easily obtained materials such as cardboard adjustable support, also made of cardboard, to
and gratings made from digital versatile discs align its position relative to the camera and tripod.
(DVDs) [4–6]. In addition, they are mainly We also demonstrate that the spectroscope can
be calibrated and, in turn, can be used as a
1 Author to whom any correspondence should be addressed.
spectrophotometer.

332 PHYSICS EDUCATION 46 (3) 0031-9120/11/030332+08$33.00 © 2011 IOP Publishing Ltd


A simple spectrophotometer using common materials and a digital camera

45 º
3 cm

slit
20 cm
(a) grating Figure 2. Grating extraction from a DVD.

which were cut carefully in order to make straight


edges. Then, these two pieces were placed and
glued at the hole to form a 0.5 mm width slit, as
recommended in [8]. This method eliminates the
(b) difficulty of cutting a thin slit directly in cardboard.
On the other side of the long box, the grating was
Figure 1. (a) Schematic diagram and (b) photograph
of the designed spectroscope with a circular hood to mounted in a similar way to the slit. A rectangular
block stray light. cardboard window was made to hold the grating.
The last part is a circular hood to block stray light,
as shown in figure 1(b). The diameter was adjusted
The spectrophotometer can be used in intro- to accommodate the camera lens.
ducing the light spectrum and spectrophotometry The grating was made from a DVD. Noting
in classrooms because the cardboard structures that the recording tracks are circles equally
are light and portable. It means that the simple spaced by 0.74 μm, the grating has about
and low-cost design spectrophotometer may re- 1350 lines mm−1 [9]. A rectangular piece of
place ‘real’ spectrophotometers for that purpose. 1 cm × 2 cm in size was cut from the DVD as
Another advantage is that the simple spectropho- shown in figure 2. The segment was then sliced
tometer is easy to operate and students, therefore, by a knife to separate the bottom layer from the
can conduct experiments without demanding any upper. The remaining reflective coating on the
assistance. bottom layer was peeled off using sticky tape [10].
The transparent bottom layer, which is now ready
Spectrophotometer design to use as a transmission grating, was placed on the
end of the box, with the ruled side facing inwards
The first part of a spectrophotometer system is a to avoid damage from accidental touches.
spectroscope box. As illustrated in figure 1(a), The grating is placed at a specific angle so
the spectroscope consists of a long cardboard box that the first-order diffracted rays will come out
with two ends. One end of the long cardboard roughly perpendicular to the grating. Applying the
box has an entrance slit that allows light to enter grating equation [11]
the spectroscope and the other end has a window
covered by a grating. A photograph of the D(sin θd − sin θi ) = mλ, (1)
designed spectroscope is shown in figure 1(b) with
the grating situated at the right side. where θd is the angle of diffracted rays, θi is the
The spectroscope box was made from six incident angle to the grating normal (45◦ ), D is
separated pieces of cardboard. The first piece the grating length constant, m = −1, and λ is
is a long box without lids at its ends. The set to visible light (400–700 nm), this makes the
second is a 3 cm × 3 cm square piece with a first-order diffraction pattern come out at 9.6◦ to
1.5 cm × 1.5 cm square hole in the middle that −13.8◦ from the grating normal. The grating is
serves as a slit holder. The slit itself was made placed very close to the camera lens so that a small
from two rectangles of 1 cm × 2 cm cardboard, grating could provide a large angle of view.

May 2011 PHYSICS EDUCATION 333


E Widiatmoko et al

(a)

Figure 3. Overall spectroscope construction. (b)

To mount the spectroscope to the camera,


a set of support structures is placed to adjust (c)
the box position relative to the camera in three
axes. The structures can be fixed between the Figure 4. Spectral images taken with a Fujifilm A100
camera and the tripod. The overall construction pocket digital camera with an image size of 5
megapixels: (a) philips TLD10W/54 fluorescent lamp,
is shown in figure 3 and more detailed pictures (b) cadmium discharge lamp, (c) helium discharge lamp
are shown in appendix A. All the structures were (images were resized and cropped).
made of cardboard. Without support structures,
the spectroscope can also be used for direct visual
observations.

Si
Results and discussion
A
Spectral images
L B
It was found that placing a second slit near the
grating makes images become sharper but more R
difficult to see and to record. Not only does the
image get fainter, but also the viewing position Figure 5. Image construction diagram. For details,
must be more precise. The recorded image see text.
contains only a part of the spectrum. Therefore,
the spectroscope design does not use a second slit.
Typical spectral images with one slit are shown in diffraction pattern is located somewhere in front of
figure 4. the grating.
The length of the spectroscope box affects If the incident angle difference of two
spectrum viewing as follows. During visual incoming monochromatic light rays A and B is
observations with various box lengths, the eye dθ , then the first-order diffracted rays will also
must focus to different distances to see sharp differ by dθ . It is seen in figure 5 that the distance
images. Figure 5 shows image construction for a between the points where those rays strike the
particular wavelength. grating is
In Fraunhofer diffraction, the light rays R dθ
L= . (2)
coming to the slit are parallel, and the diffraction cos θi
pattern is formed far away from the grating. Therefore, the image distance from the
However, in this arrangement the light ray grating can be written as
direction is more like that of a pinhole camera
with finite hole (slit) width. The effect of the L cos θd R cos θd
si = = . (3)
slit width will be discussed later in this text. The dθ cos θi
finite angle of incoming light rays means that the

334 PHYSICS EDUCATION May 2011


A simple spectrophotometer using common materials and a digital camera

(a)

(b)

Figure 7. Incandescent lamp spectrum image (above)


(c) and the corresponding pixel intensity curve (below).

Figure 6. Spectral images with a box length of for one measurement batch. The light source
(a) 10 cm, (b) 20 cm, (c) 30 cm, with the camera focus
set to infinity (‘fireworks’ mode).
used for calibration may be a fluorescent lamp,
which can be found anywhere, or a discharge lamp
(hydrogen, helium, cadmium, mercury, etc), which
Because θi = 45◦ and cos θd is in the range of are usually found in laboratories.
0.97–1, the spectroscope box requires the eye, or When observing pixel values, it is found
the camera, to focus at a distance that is roughly that spectral line brightness cannot be measured
1.4 times the box length. correctly. A spectrum of an incandescent light
However, most pocket digital camera models bulb, which is like a blackbody radiation spectrum,
have only an automatic focus system. Some is shown in figure 7. The greyscale pixel value
cameras even cannot focus because of the graph differs greatly from that of a blackbody. It
darkness. Another option is ‘fireworks’ mode, seems that the camera’s red, green and blue filters
which sets the focus to infinity and the exposure are blocking certain wavelengths. Besides, when
time adjustable. one points the spectroscope to different parts of the
A longer box makes more distant spectrum light source, a portion of the spectrum can change
images, which is more comfortable to the eye. in brightness. This is because of the absence of a
When the camera focus is set to infinity, the longer collimator.
box will give sharper images, as demonstrated The bandwidth of the spectrometer can be
in figure 6. But a box longer than 30 cm is calculated from the graph in figure 7. The edges of
impractical to build and use. However, if the the spectral image represent the bandwidth, which
camera can be focused, a 20 cm box could make is in the range of 415–660 nm. This limitation
good pictures. is certainly set by the camera filter and not by
geometry such as lens diameter and sensor chip
size, because the spectral image only occupies a
Converting to wavelength
small region roughly in the middle of the overall
Converting the spectral image into wavelength image. When the camera position is adjusted
information is independent of the imaging method. slightly, the position of the spectrum changes but
Any spectral picture can be converted if the the spectral pattern is the same.
relation between pixel position and wavelength is When using larger image sizes, the wave-
known. To obtain this relation, the observer must length resolution also increases. The value of
first take a spectrum with known wavelengths and wavelength difference per pixel (inverse of the
calibrate the pixel scale into wavelength. If the coefficient of p in the calibration function) in-
position of the grating from the camera is constant, creases linearly with image width in pixels. When
the spectral image position will also be constant. compared with image megapixel numbers, this
Calibration must be done right after assem- value was roughly proportional to (megapixels)1/2 .
bling the system. The configuration may be This relationship is given in figure 8. Here we give
different for each assembly, but must be constant an example of a calibration result. With an image

May 2011 PHYSICS EDUCATION 335


E Widiatmoko et al

Table 1. Calculated wavelengths from figure 10 and


the related reference wavelength.
Measured Wavelength of mercury
Pixel wavelength (Å) (Å) from [12]
1504 4360.0 4358.335
2045 5465.2 5460.75

size of 10 megapixels and no camera zoom, the


calibration function obtained is
λ = 2.043 p + 1287.6 (Å). (4)
This equation is related with the graph in
figure 9. This corresponds to a resolution limit of lines. For example, when the slit width is 0.15 mm
0.2 nm/pixel. (measured by a feeler gauge) and the box length
As another example, the spectrum of a is 20 cm, the angular size of the slit as seen from
fluorescent tube lamp was taken and is shown in the grating is 0.75 mrad. The angular size of the
figure 10, and the wavelengths were calculated
spectral line images is the same as this value. From
with equation (4). Mercury spectral lines from
the grating equation in equation (1), this angle
NIST data were used as reference. As shown in
corresponds to 0.55 nm in wavelength difference.
table 1, the accuracy is 0.5 nm.
The helium spectrum in figure 9(a ) is magnified
at the brightest peak at 501.5 nm, which is shown
Resolving power and errors in figure 11. The full width at half maximum
The slit width limits the resolving power. A wider (FWHM) of this peak is 3 pixels. This corresponds
slit produces a larger angular size of the spectral to 0.6 nm, which agrees with the prediction before.

336 PHYSICS EDUCATION May 2011


A simple spectrophotometer using common materials and a digital camera

Figure 10. Fluorescent lamp spectrum (above) and


pixel intensity graph (below).
Figure 11. Magnification of the He spectral line
(above) at 501.5 nm and its FWHM (below).
The errors in wavelength measurements came
mainly from the error of spectroscope positioning
relative to the camera. When measuring the such as Microsoft Paint, point at the spectral lines
same light spectrum multiple times, the accuracy one by one, and write down the pixel positions.
obtained was 0.5 nm. But when other light sources The pixel data are then compared with a reference
are used, the spectroscope assembly may misalign, to obtain a calibration function that relates a pixel
which results in errors in the next measurements. to a wavelength.
Errors can also come from the grating. If We wrote a program in Visual Basic to partly
the grating is not carefully cut from the DVD, automate the calibration and image conversion.
the lines may be tilted. Misalignment during The user opens a calibration image file, points at
spectroscope construction can also tilt the grating the spectral lines, selects known wavelengths, and
and this causes the spectral image to tilt. The presses a button to do the mathematics. Once a
spectra in figure 4 are slightly tilted clockwise. calibration function from pixel to wavelength is
Furthermore, the curved nature of the tracks in a known, other images with unknown wavelengths
DVD makes the spectral lines also curve. These can be identified. The program can also analyse
errors make the spectral line positions uncertain. a horizontal line across an image and plot pixel
However, this uncertainty can be minimized by greyscale values along that line. The flowchart of
taking lines from the same y -coordinate for every the program is shown in appendix B.
image. For use in the classroom, the spectrophotome-
Use of a camera’s optical zoom improves ter can be used to introduce the light spectrum and
wavelength resolution, but the spectrum became spectrometry to students. The simple and low-
harder to record properly. For example, when the cost design can replace ‘real’ spectrophotometers
mercury spectrum was zoomed, the middle of the for this purpose because the cardboard structures
image was featureless—only a smooth, continuous are light and portable. The advantages of this
spectrum on which our camera could not focus. spectrophotometer design are as follows. The
spectroscope can and should be connected with a
digital camera. The spectroscope is easy to build,
Discussion
although it needs some handicraft experience, and
The spectroscope is easy to use. With a tripod and the materials are common. The spectrophotometer
camera, it requires only a few minutes to assemble must be calibrated prior to measuring wavelengths.
and to take a single spectrum. The longest part of A known problem in using the spectroscope
the measurement process is the alignment of the is alignment of the light source, because one must
spectroscope with the light source. look in a direction that is different from the light
Spectral image analysis can be carried out source direction, and some people have difficulty
with or without a special computer program. in finding the right position to see the spectrum.
Without it, the experimenter should open the We asked 25 students to use this spectropho-
image in any available image viewing program, tometer and we received positive responses. The

May 2011 PHYSICS EDUCATION 337


E Widiatmoko et al
students were able to carry out the experiment Appendix B
themselves after being given a short training
session of 15 min. Senior high school students,
who had a little or no knowledge about the calibration obtaining the
spectrophotometer principle, and undergraduate wavelength
open image file open
students, who had the knowledge, agreed that containing known image file
wavelengths
the instrument helps in understanding the concept
of the light spectrum and spectrometry (80%); user selects a user selects a
pixel row pixel row
that it is easy to use (68%); and that they were
willing to do further experiments to increase their display pixel greyscale display pixel greyscale
value graph value graph
understanding (96%).
user selects a user points at a
spectral line pixel of interest
Conclusions
line position pixel
A simple spectrophotometer design using card- (pixel) x-position

board, a DVD, a pocket digital camera, a tripod


repeat for repeat for
and a computer has been discussed and tested. other pixels other pixels
The advantages of the spectrophotometer are
that it is easy to construct and is inexpensive. select known
wavelength
calibration convert pixel position
wavelengths function to wavelength
The theoretical accuracy of the spectrophotometer from reference list

depends on the image size of the digital camera, wavelength


make calibration
for example 0.2 nm for 10 megapixels. The images function
data

taken with the camera need to be calibrated for


end
each measurement batch and then converted into end

wavelength. Spectral line brightness measurement


using the spectrophotometer was unreliable. Figure B.1. Flowcharts for the spectrum reading
program.

Received 10 November 2010, in final form 9 February 2011


Appendix A doi:10.1088/0031-9120/46/3/014

References
[1] Evdokimov I N and Losev A P 2007 Potential of
UV–visible absorption spectroscopy for
characterizing crude petroleum oils Oil Gas
Bus. 1–21 www.ogbus.ru/eng/authors/
Evdokimov/Evdokimov 1e.pdf
[2] Huibers P D T and Shah D O 1997 Multispectral
determination of soap film thickness Langmuir
13 5995–8
[3] Abdullah M, Khairurrijal, Iskandar F and
Okuyama K 2006 Nanocrystalline Materials:
Their Synthesis–Structure–Property
Relationships ed S C Tjong (New York:
Elsevier Science) chapter 9 (Semiconductor
Nanoparticle–Polymer Nanocomposites)
pp 275–310
[4] Edwards R K, Brandt W W and Companion A L
1962 A simple and inexpensive student
spectroscope J. Chem. Educ. 39 147–8
[5] Thompson K 1996 An easy-to-build spectroscope
Phys. Educ. 31 382–5
[6] Wakabayashi F 2008 Resolving spectral lines
with a periscope-type DVD spectroscope
J. Chem. Educ. 85 849–53
[7] Wahab M F 2009 Estimating the wavelength of
sodium emission in flame—the easy way Phys.
Figure A.1. Detailed spectroscope assembly pictures. Teach. 47 367

338 PHYSICS EDUCATION May 2011


A simple spectrophotometer using common materials and a digital camera
[8] Wakabayashi F and Hamada K 2006 A DVD Maman Budiman received a BSc in
spectroscope: a simple, high-resolution physics from Institut Teknologi Bandung
classroom spectroscope J. Chem. Educ. in 1989 and MEng and PhD degrees in
83 56–8 physical electronics from Tokyo Institute
[9] Vollmer M 2005 Diffraction revisited: position of of Technology, Japan in 1995 and 1998,
diffraction spots upon rotation of a respectively. He joined the Faculty of
transmission grating Phys. Educ. 40 562–5 Mathematics and Natural Sciences, ITB
[10] http://ioannis.virtualcomposer2000.com/ in 1991 and is currently an assistant
spectroscope/toyspectroscope.html; professor. He research is in
electronics.howstuffworks.com/dvd2.htm optoelectronic materials and devices as
[11] Giancoli D C 2009 The wave nature of light well as embedded systems and
Physics: Principles with Applications 6th edn instrumentation. He is also interested in
(New York: Addison-Wesley) ch 24 physics teaching and education.
[12] Ralchenko Yu, Kramida A E, Reader J and NIST
ASD Team 2008 NIST Atomic Spectra
Database (Version 3.1.5) (online) available at
http://physics.nist.gov/asd3 (10 December
Mikrajuddin Abdullah obtained BSc
2009), National Institute of Standards and
and MSc degrees in physics from Institut
Technology, Gaithersburg, MD
Teknologi Bandung in 1992 and 1996,
respectively, and a DEng in chemical
Eko Widiatmoko received a BSc in engineering from Hiroshima University,
physics with Cum Laude from Institut Japan in 2002. In 1994 he entered the
Teknologi Bandung (ITB), Indonesia in Faculty of Mathematics and Natural
2008. At present, he is studying for an Sciences, ITB, where he is currently a
MSc in physics at the same university and professor of physics of nanomaterials.
is a physics laboratory instructor at a His research topics include nanomaterials
private senior high school. He is also an and nanodevices, as well as electronics
instructor at a private learning centre on and instrumentation. He is also interested
robotics. His works are mainly about in physics education.
basic physics and electronics. He is also
interested in cardboard constructions.

Widayani received BSc and MSc degrees


in physics from Institut Teknologi Khairurrijal received BSc and MSc
Bandung in 1984 and 1991, respectively, degrees in physics from Institut
and a PhD in polymer science from The Teknologi Bandung in 1989 and 1993,
University of Manchester Institute of respectively, and a DEng from Hiroshima
Science and Technology (UMIST), University, Japan in 2000. He joined the
Manchester, UK in 2003. In 1990 she Faculty of Mathematics and Natural
joined the Faculty of Mathematics and Sciences, ITB in 1991 and is currently a
Natural Sciences, ITB and is currently an professor of physics of materials and
associate professor of polymer physics. instrumentation. He is extensively
She is involved in research on involved in research on electronic
natural-fibre polymer composite. In materials and devices as well as
recent years, she has also been interested electronics and instrumentation. He is
in physics teaching and education. also interested in physics education.

May 2011 PHYSICS EDUCATION 339

You might also like