72

I'm working on something and I need to know the wavelength of the laser pointer that I'm using.

Can you suggest me a way, using some optics formulae, or anything else to calculate the wavelength?

299792458
  • 3,184
  • What equipment do you have? I have used diffraction patterns from well-defined slits (feeler gauges are good as references) and well-measured distances to the screen. Good to ~10nm, but you can probably get about that close by eye. Diffraction gratings are good as well, but harder to find around the house... – Jon Custer Jun 24 '15 at 22:32
  • 8
    If it was at all reasonably priced and you can tell what color it is (green vs. red etc.), then you can figure it out based on what wavelengths are available for sale. Only certain wavelengths are easy to manufacture. –  Jun 24 '15 at 22:38
  • 3
    Adding to Chris's comment, Wikipedia has a short list of wavelengths for available laser pointers. – Kyle Kanos Jun 24 '15 at 22:49
  • You can make a fine enough grating for an experiment with a laser printer or a photocopier (by reducing a coarse hand drawn grating several times by a factor of two). That should get you a precision of a percent or better if you work carefully. – CuriousOne Jun 25 '15 at 03:37
  • I had once used interference with lines cut into a painted glass pane in high school. We came pretty close to the manufacturer's number. Much later, a friend's professor claimed the results were a fluke. – Jesvin Jose Jun 26 '15 at 11:15

2 Answers2

127

Your iPhone is a pretty good grating. I just did a simple experiment with an iPhone, a green laser pointer and a sheet of graph paper.

This was the result:

enter image description here

The display of the iPhone 6 has a resolution of 326 ppi - meaning we have a "grating spacing" of 25.4/326=0.0779 mm. Different models have different resolutions - make sure you find out what your phone has and don't just use the above. 6 Plus has 401 dpi, the 5 and 5s have 326 dpi. You can use pretty much any screen you happen to have lying around... if you can find the pixel size, you can use it.

In the image I see 5 peak separations over 7 squares (of 1/4 inch each), making the spacing 8.9 mm*

The grid paper was 127 cm from the face of the phone. We can calculate the wavelength by looking at the following diagrams:

enter image description here

Similar triangles tell us that $\frac{s}{D}=\frac{\lambda}{d}$ from which it follows that

$$\lambda = \frac{s\cdot d}{D}= 546 nm $$

That is pretty close to the 532 nm usually quoted for a laser pointer. Setting this up with a larger distance to the screen would have allowed more accurate estimation of the peak separation. Still - this got me to 3% without an optical bench (kitchen counter and kitchen ceiling, one hand holding laser pointer while taking picture with the other hand... Yes I would say 3% is OK and you can easily do better.)


*Looking more closely at the image, the dot spacing is a little bit less than 5/7 - using a ruler on the image I get about 8.75 mm. That improves the estimate to 541 nm... getting within 2% of the actual value. I doubt my exercise book paper is more accurate than that.

As @Benjohn pointed out you could try to use the front facing camera. It takes all kinds of things out of the equation but you lose some resolution. Here was my first attempt:

enter image description here

I then repeated it with a 6 Plus (finer resolution screen):

enter image description here

It looks possible to deduce the peak spacing directly from that...

Afterword

So I did play around a bit more with the data. First, I re-measured the distance from the kitchen counter to the ceiling and found that the width of my tape measure wasn't what I thought it was. This made the distance 1 cm larger than I originally had it; also, using some autocorrelation and filtering functions, I found the "true" peak spacing was 8.85 mm, and my new estimate of the wavelength from the first image was updated to 539 nm.

Next I tried to use the last image - "self calibrated" image taken with the front facing camera of the 6 Plus. It is hard to get good specs on the camera: from metadata I found the focal length was 2.65 mm, but the pixel size is more elusive. I tried two different methods: in the first method I placed a ruler at exactly 12" (± 0.1") from the front of the camera, and could see 25 cm (± 3 mm). With 960 pixels across, this puts the angular resolution (angle / pixel) at about 0.87 mrad. Taking a picture of a ruler at this distance and analyzing the spacing between lines gave me a value of 0.88 mrad. This is within the error I expect from this measurement.

The "blobs" in the last photo were hard to measure accurately - but again some Fourier magic came to my rescue and I determined them to be spaced about 10.1 pixels apart. With the iPhone 6 plus having a finer grid, this gave me a wavelength of 564 nm. Not as good as the other measurement - but not bad for such a blobby image.

Re. the Fourier magic: this is the autocorrelation of the image after summing along Y dimension and performing a convolution with a Ricker filter first:

enter image description here

And a peak finding algorithm found the following peaks (after fitting to the central five points this was the residuals plot):

enter image description here

It can be seen that the peak spacing in the blob image could be estimated with remarkable precision. I attribute the fact that the final answer was "not that great" to the lack of careful calibration of the camera - not the image obtained. There is hope for this method.

CDs and DVDs

I was curious how well CDs and DVDs might work, so I rigged up a slightly better experiment. Distance from disk to screen was 163 cm, and laser pointer was clamped to reduce motion.

With the DVD (Blank Fujifilm 4.7 GB DVD-R), the first maxima were at 170 cm from the central spot, and it was quite easy to pick the location within a couple of mm (spot was narrower in the direction I was measuring).

enter image description here

There is some ghosting, but the central peak is not hard to pick out.

For the CD (Very Best of Fleetwood Mac, disk 1), the angles of diffraction were smaller and I could see the first and second maximum on each side of the reflected central spot; however, the second one was so spread out it was not easy to pick a clear center:

enter image description here

I am not sure if we are seeing unequal spacing between tracks at work, or multiple reflections in the CD coating - I suspect the latter as the effect was much stronger at the lower-angle second peak.

At any rate, the deflection angle could be calculated for each case as $\tan^{-1}\frac{s}{D}$:

DVD - 46.17°
CD  - 20.98°

These angles are no longer "small" so we need to be a bit more careful about our equations. We can see that $\frac{\lambda}{d}=\sin\theta$ and $\frac{S}{D}=\tan\theta$. If we assume the wavelength is known, we find the track spacing from this experiment:

$$d = \frac{\lambda}{\sin\theta}$$

This gives

DVD:  737 nm
CD:  1486 nm

the nominal spacing for a DVD is 740 nm, and for a long-playing CD it can be 1500 nm - but CD's can vary quite a bit, depending on the recording length they want to achieve. Unless you know what your disk is, CD's should not be relied upon as accurate gratings. The 737 nm vs 740 nm is an astonishing 0.5% error; it may well be that the 1486 nm measured was in fact 1500 nm, and also within 1% error. If you had seen me balancing on a chair while measuring the distance between spots on the ceiling with a tape measure, you would not have expected me to get that close...

One final word:

The screen of an iPhone 6 is not perfectly flat, and if you happen to be measuring reflection of your laser pointer close to the edge it is possible you will get a different answer. To first order, all the diffraction peaks will be deflected by the same amount - but if there is appreciable curvature an accurate measurement will show a small difference. It would take a careful setup (proper clamps etc) to detect this; and it would detract from the "cool kitchen counter experiment" atmosphere of this one.

Floris
  • 118,905
  • 3
    Floris, which part of the iPhone was used as the grating? :) – texnic Jun 25 '15 at 09:05
  • 4
    @texnic - the screen was used as the grating! I just shone the laser pointer at the black surface, and this was the reflection... – Floris Jun 25 '15 at 11:37
  • 5
    Brilliant idea, and 2-3% error is amazing for such improvised setup. – Jorge Leitao Jun 25 '15 at 14:03
  • Another workable choice for a grating would be a CD or DVD, their grating spacing is given here https://en.wikipedia.org/wiki/File:Comparison_CD_DVD_HDDVD_BD.svg – Sebastian Riese Jun 25 '15 at 14:10
  • @SebastianRiese - you are right. In fact the diffraction angles are quite steep with a CD; specifically the assumption that $\sin\theta = \tan\theta$ is no longer valid... I might do the measurement and add the result. Note that this was already pointed out by texnic in a comment, and by Dries in an answer. – Floris Jun 25 '15 at 14:34
  • Which leaves me with the question of the accuracy of your ruler... – PlasmaHH Jun 26 '15 at 07:49
  • How'd you know OP has an iPhone!? – Matti Virkkunen Jun 26 '15 at 08:27
  • 3
    You don't need an iPhone, any LCD with known pixel will worked, as noted in the answer – Kejml Jun 26 '15 at 08:48
  • 2
    This is stunning. A thought I have is: could the front camera discern the peaks? Using angular calculations (which you can do from the camera POV), the screen distance D would drop out and this setup doesn't need parallel alignment or even a flat screen. It'd be "a bit niche", but an App could automatically do this :-) – Benjohn Jun 26 '15 at 09:44
  • 1
    @Benjohn very interesting suggestion! I tried it and the answer is "yes, just about" . Better use iPhone 6 plus as it has a finer pitch on the display and so a larger angle. – Floris Jun 26 '15 at 11:22
  • Lovely snaps! How about an FFT of the patch around the bright dot? Might want to FFT plenty of the black to give it a decent window. – Benjohn Jun 26 '15 at 12:38
  • 1
    @Benjohn - I'm working on it... – Floris Jun 26 '15 at 12:43
  • 1
    @Benjohn - see the update. It sort of works; I could use a better specification of the camera since there is an additional "calibration" step I currently have to make... and of course the resolution is miserable for this purpose. If I could hold the pointer more still it might be better. – Floris Jun 27 '15 at 04:38
  • 1
    :-) That's superb, really great stuff. Thank you for entertaining my suggestion! It's kind of crazy how a few noisy pixels can give a reasonable signal when the measurement is taken globally, as the Fourier domain allows. – Benjohn Jun 28 '15 at 09:24
  • On those front camera pics, if you could de-focus the image (e.g., by placing the lens from a weak pair of reading glasses over the camera) That would spread the "blobs" even more, allowing you to make a more accurate calculation of each blob's centroid. The same trick is used in "star tracker" sensors that are used for orienting spacecraft. https://books.google.com/books?id=t94fAgAAQBAJ&pg=PA549&hl=en&sa=X&ei=sDKTVcjuBYmaNqeMudgD&ved=0CB0Q6AEwAA#v=onepage&q&f=false – Solomon Slow Jul 01 '15 at 00:25
  • @jameslarge - interesting suggestion. Dithering helps but only if there is enough signal. I suspect I had several other problems; the main problem being that I held the laser pointer in my hand, and that (a) motion of the pointer will lead to motion of the spots; (b) the exposure of the camera was pretty long (exacerbating any motion: since the camera was not shaking the optical stabilizer could do nothing); (c) the camera may have had difficulty focusing on such a small feature in the first place. I might revisit the experiment at some point. – Floris Jul 01 '15 at 00:29
  • @Floris, 1. What are the mathematical equations underlying the "Re: Fourier magic" autocorrelation of the image after summing along Y dimension and performing a convolution with a Ricker filter first and doing a peak finding algorithm? 2. What is a Ricker filter? 3. Would your Fourier magic still work after a laser pointer beam loses it coherence? Thank you. – Frank Feb 06 '17 at 15:03
  • @Frank autocorrelation is the Fourier transform of the power spectrum; the Ricker filter is sometimes called the Mexican Hat and results in a peak sharpening (removing DC component as well). If the laser pointer "loses coherence" then presumably you have no interference pattern, and the magic would not work. I have the Python code I used "somewhere" (not on the computer I'm currently on). If you are interested let me know and I can try to add it to the answer. – Floris Feb 06 '17 at 15:12
9

If you've got a grating with known distance between the slits, you can use diffraction: let the light fall in perpendicular to the grating and place a screen a few meters further away. You'll find the maximum intensities (the light dots if you've got a grating with 100 or more slits per mm) under an angle of:

$$\sin\theta_m = n\frac{\lambda}{d}$$

with $n$ an integer and $d$ the distance between the centers of the slits. Of course a single or double slit experiment would also work, but is less precise.

Edit

If you're in need of a grating: take a CD and read texnic's comment below.

Dries
  • 994
  • 6
    You can use a CD or DVD as such diffraction grating. Here is a great description: link. The nominal CD grating pitch is 1.6 um, DVD 0.74. – texnic Jun 24 '15 at 23:17
  • 2
    I agree on the CD/DVD being OK gratings, but I thought the nominal grating pitch allowed for variations? – CuriousOne Jun 25 '15 at 03:17
  • how the laser can diffracted through the grating. as it is the point source – natarajan physicist Jun 25 '15 at 07:49
  • it's not a mathematical point source. It will strike several slits in a grating, as is demonstrated in Floris' answer. – Dries Jun 25 '15 at 10:32
  • 2
    "Using a linear velocity of 1.2 m/s and a narrower track pitch of 1.5 µm increases the playing time to 80 minutes, and data capacity to 700 MiB." - source. This suggests a CD may not be as reliable a grating as an LCD display. – Floris Jun 25 '15 at 19:42
  • @Floris, well, if you know the capacity of your CD... In any case, the screen might have a better defined pitch, and the optical disks are a better grating (better resolution). – texnic Jun 26 '15 at 11:56
  • @texnic - I completely agree that the optical disk has finer pitch, so in principle far higher resolution - the diffraction angles are huge (and the blobs surprisingly ill-resolved - suggesting that the spacing is not uniform on "The Very Best of Fleetwood Mac"). I like the closely spaced 2D grid of points that results with the LCD screen... with enough distance they are not hard to measure, and they are very consistent. – Floris Jun 26 '15 at 12:19