rhd
0
- Joined
- Dec 7, 2010
- Messages
- 8,469
- Points
- 0
Oh my god, this is hilarious! Why did I just spend $200 on a spectrometer?
Ok, so I have to admit that I thought you were full of crap when you said you did this with a ruler! So I cracked out Photoshop. I wasn't sure exactly how to measure, so what I did was crop each image by dragging a crop box from the dead center of one circle, to the dead center of the other. It produced a long thin rectangle with 1/4 of each dot remaining. Here they are:
532 cropped to a 2141 pixel wide box
UNKNOWN cropped to a 2391 pixel wide box
Now, the first time around I actually corrected for the fact that this wasn't a perfectly straight photo, and used the Pythagorean theorem to calculate the distance between top-left and bottom right. That wasn't necessary, the width was enough. Correcting for 33 pixels of vertical offset produced almost no benefit.
Well, the math was simple:
Calibration Shot:
532 / 2141 = 0.248482018
Unknown:
? / 2391 = 0.248482018
? = 0.248482018 x 2391
? = 594.1205044
So.... the unknown wavelength was calculated at 594.12 nm, and it was actually 593.5 nm. That's an error rate of 0.620504437 nm.
There was so much room for improvement here too. For one, I just scotch taped a small flexible diffraction grating to my lens. With a larger grating, I could have used almost twice as many pixels to get the same scale. I'm sure that an automated piece of software could also do a better job of identifying the dead center of the dot. My estimation could have been off by a few pixels.
Lol - it didn't take us long
Ok, so I have to admit that I thought you were full of crap when you said you did this with a ruler! So I cracked out Photoshop. I wasn't sure exactly how to measure, so what I did was crop each image by dragging a crop box from the dead center of one circle, to the dead center of the other. It produced a long thin rectangle with 1/4 of each dot remaining. Here they are:
532 cropped to a 2141 pixel wide box
UNKNOWN cropped to a 2391 pixel wide box
Now, the first time around I actually corrected for the fact that this wasn't a perfectly straight photo, and used the Pythagorean theorem to calculate the distance between top-left and bottom right. That wasn't necessary, the width was enough. Correcting for 33 pixels of vertical offset produced almost no benefit.
Well, the math was simple:
Calibration Shot:
532 / 2141 = 0.248482018
Unknown:
? / 2391 = 0.248482018
? = 0.248482018 x 2391
? = 594.1205044
So.... the unknown wavelength was calculated at 594.12 nm, and it was actually 593.5 nm. That's an error rate of 0.620504437 nm.
There was so much room for improvement here too. For one, I just scotch taped a small flexible diffraction grating to my lens. With a larger grating, I could have used almost twice as many pixels to get the same scale. I'm sure that an automated piece of software could also do a better job of identifying the dead center of the dot. My estimation could have been off by a few pixels.
Lol - it didn't take us long
Attachments
Last edited: