How to build a DIY Raspberry Pi Spectrometer using a Picamera and Spectroscope.

  Переглядів 102,845

Les' Lab

Les' Lab

День тому

Episode 20
#raspberrypi
#spectrometer
Code at the end of the Description! Check out my other videos: / leslaboratory​
Please don't forget to like,subscribe and comment for more great content!
If you found this content useful, and would like to support this Channel, please consider supporting this work on Patreon: / leslaboratory
Or donate directly: paypal.me/leslaboratory
Alternatively, please share this content on your social media platforms, it really helps me out!
In this video I demonstrate a home-made Raspberry Pi Spectrometer for measuring the wavelength of light! If you already have a Raspberry Pi, this useful tool can be built for under 100 bucks!
This uses readily available components and easy to use Python software I have written specially for this application.
All code for this video and the bill of materials, as well as additional information is available at my GitHub:
github.com/leswright1977/PySp...

КОМЕНТАРІ: 374
@GoalOrientedLifting
@GoalOrientedLifting 3 роки тому
Thanks, mate. Definitely gonna make this to analyze the light for my plants
@canwenot573
@canwenot573 3 роки тому
Amazing project! This video earned you a new subscriber! I really appreciate the thought process behind this. Making scientific instruments more affordable by using readily available parts is truly brilliant. This personifies the spirit of open source in my book!
@LesLaboratory
@LesLaboratory 3 роки тому
Thanks very much! Totally! Knowledge should be free!
@jimc386
@jimc386 3 роки тому
Exceptionally clear presentation of a cool project. This is the kind of useful and informative high caliber project you would see in the Amateur Scientist section of Scientific American back in the mid 50's to mid 70's. The content makes this project accessible to people with a wide range of capabilities and experience levels. I cold easily see a middle school or high school student build this as a tool to use in support of a variety of Science Fair projects. I think it will also work well for many of us DIY experiments at home. Providing the source code and a quick tutorial on building the PY project is also very helpful to those who are just starting out or others that want to brush up their skill sets. I hope to see more like this.
@LesLaboratory
@LesLaboratory 3 роки тому
Awesome! Thanks for your kind words! I used to read the Amateur Scientist over and over as a kid!
@danriches7328
@danriches7328 3 роки тому
Very nice! I built a spectrometer inside a CD-ROM drive case using a laptop USB web cam pulled from the screen and a cheap 1000 lines/mm grating. I've also just seen that you can get 13500 lines/mm gratings so I'll be upgrading it and adding the Raspberry Pi instead of having to use my working laptop. Cheers Les, great stuff as always!!
@LesLaboratory
@LesLaboratory 3 роки тому
Awesome, thanks! Yep this should work with any physical hardware setup just fine. Happy hacking!
@helmutzollner5496
@helmutzollner5496 7 місяців тому
Great Work! Very nice project!.
@pedrohervef.7780
@pedrohervef.7780 2 роки тому
Simply Awesome!
@ebrewste
@ebrewste 2 роки тому
What a great project!
@AlexanderGosselin
@AlexanderGosselin 2 роки тому
Great project!
@attemm1
@attemm1 2 роки тому
Looks really nice!
@davidprice875
@davidprice875 2 роки тому
A nice update to a cool project, Thanks for sharing.
@LesLaboratory
@LesLaboratory 2 роки тому
You are welcome!
@chelseastevenson6459
@chelseastevenson6459 3 роки тому
this is fantastic!
@peepopalaber
@peepopalaber 3 роки тому
Ahhhh shit, here we go again ... *opens project list* .... *adds another point* Nice project.
@3harath
@3harath 3 роки тому
bro, can you please share your project list with us?
@TerryLawrence001
@TerryLawrence001 3 роки тому
Awesome Project and very nice presentation!
@LesLaboratory
@LesLaboratory 3 роки тому
Thanks! Hope you guys find it useful!
@oceanz55
@oceanz55 3 роки тому
This is fantastic and exactly what I needed... you now have another subscriber! Thanks Les!
@LesLaboratory
@LesLaboratory 3 роки тому
Awesome, thanks! More to come!
@UTRG-UnderTheRain
@UTRG-UnderTheRain 3 роки тому
That's pretty impressive subbed
@nganyong9904
@nganyong9904 3 роки тому
Wow. This is the coolest video I have seen all day!
@LesLaboratory
@LesLaboratory 3 роки тому
Thanks! Please like and share!
@Allan_aka_RocKITEman
@Allan_aka_RocKITEman 8 місяців тому
Great video...👍
@douglaspeale9727
@douglaspeale9727 3 роки тому
If the ability to take the difference between two spectra is added, it will be useful to characterize optical filters, color film, and the reflective properties of materials.
@chronophagocytosis
@chronophagocytosis 3 роки тому
This is really cool. You know, one of the ways chemists use spectrophotometry is to estimate the concentration of a given compound in a solution, but doing that requires making a series of standard solutions. Particularly IR-spectrometry is uesd for identifying organic compounds, but doing that requires a library of known transmission spectra. Either way, you have a very powerful tool right there.
@MekazaBitrusty
@MekazaBitrusty 3 роки тому
What a great project 👍👍👍
@LesLaboratory
@LesLaboratory 3 роки тому
Thanks 👍
@Maxjoker98
@Maxjoker98 3 роки тому
I love tat the rPi has an RGB cooler, with heatpipes and all. awesome project.
@LesLaboratory
@LesLaboratory 3 роки тому
For sure! There's a huge gap between Green and Red that Laser diode manufacturers have been trying to figure out for years.
@appabison8694
@appabison8694 3 роки тому
Extremely important to obtain maximum fps in the program interface!!!
@LesLaboratory
@LesLaboratory 3 роки тому
@@appabison8694 indeed. I tried MATLAB in a really early version, but it was far too slow.
@Tony770jr
@Tony770jr 3 роки тому
Super nice project!
@LesLaboratory
@LesLaboratory 3 роки тому
Thank you!
@SnowcamoZ
@SnowcamoZ 3 роки тому
Nice! Just a suggestion: instead of reading the amplitudes from a single line of the camera image, maybe you should integrate over the image. 100 lines -> 10 x amplitude resolution, in theory. Either requires a good orientation of the spectroscope or an algorithm finding the tilt (not too hard).
@LesLaboratory
@LesLaboratory 3 роки тому
Yep for sure. A much earlier version did this, but I found it too slow. My particular need was speed (pulsed Laser), but if you were doing astronomical observations then integrating is probably a good idea!
@hamjudo
@hamjudo 3 роки тому
A little tilt allows OpenCV to achieve subpixel resolution when it is calculating the location of straight line intersections in an image. Tilt will help here too, if the system is limited by the optical sensor. Which is to say that fancy math won't help if the optics move around when the cat jumps on the table.
@gornistvo-8821
@gornistvo-8821 2 роки тому
Thanks Les, great project. Installed on RPi 3B+ and it runs ok ...
@LesLaboratory
@LesLaboratory 2 роки тому
Great!
@ryan77anderson
@ryan77anderson 11 місяців тому
superb. thank you.
@duncan94019
@duncan94019 3 роки тому
Thank you so much. This is wonderful.
@LesLaboratory
@LesLaboratory 3 роки тому
You're very welcome!
@ozzymandius666
@ozzymandius666 3 роки тому
Very nice. Lotsa uses for it.
@LesLaboratory
@LesLaboratory 3 роки тому
Great! Hope you guys enjoy it!
@dagobertkrikelin1587
@dagobertkrikelin1587 3 роки тому
Fantastic stuff!
@LesLaboratory
@LesLaboratory 3 роки тому
Thanks!
@marcspeer1486
@marcspeer1486 3 роки тому
Just thanks. Made the world better - kudos
@LesLaboratory
@LesLaboratory 3 роки тому
Awesome! You are welcome!
@justin.campbell
@justin.campbell 3 роки тому
Congrats on 1k subscribers! This is a really cool project, very useful. Would be cool to make a briefcase style case with an lcd and put a fiber connector or something on the input.
@LesLaboratory
@LesLaboratory 3 роки тому
Thanks Justin! For sure. I deliberately made the GUI small enough that is should fit on most decent LCD modules you can get for the Pi (clicking the graph on a touchscreen would be a pain, but there are ways around that!). A Desktop instrument would be pretty sweet!
@fnegnilr
@fnegnilr 3 роки тому
Spectacular!
@maxf8549
@maxf8549 3 роки тому
Don't you mean SpectRacular? :)
@aps8446
@aps8446 3 роки тому
I love how dominant is that elusive, pricey 608nm, makes me hope for that WL to become available as direct diode in a near future
@LesLaboratory
@LesLaboratory 3 роки тому
That would be cool, and yellow as well!
@aps8446
@aps8446 3 роки тому
Shrek green would be a good addition too
@patnutoris4054
@patnutoris4054 2 роки тому
nice work
@seebaastian
@seebaastian 3 роки тому
dude, this is awesome!!
@LesLaboratory
@LesLaboratory 3 роки тому
I'm glad you like it!
@richardoates8103
@richardoates8103 3 роки тому
Great work!
@LesLaboratory
@LesLaboratory 3 роки тому
Thanks!
@Mr.Newlove
@Mr.Newlove 3 роки тому
Amazing!! Back in school I didn't end up taking a real optics class. Any recommendations for books or online resources for optics? If not for this video I wouldn't know what lenses to put between the spectroscope and the camera, or if I wanted to project a LCD onto a wall. I really need to know more about this.
@albygnigni
@albygnigni 3 роки тому
I really enjoyed this video. Thank you for sharing! Btw, on the web you can find a lot of projects using webcams as spectrometers, most of them where from 2012-2015.
@LesLaboratory
@LesLaboratory 3 роки тому
Great! Yep, for sure, but I thought it would be cool do do it on the Pi with Open Source Software.
@joecobra48
@joecobra48 3 роки тому
Good on UKposts bring it out or underrated people
@tmartin9482
@tmartin9482 3 роки тому
Great project! I think I will build one and do some tests to find a suitable light source to make it a transmission spectrometer. Let's see if I can convince some chemistry teachers at school to do experiments on spectroscopy and photometry.
@LesLaboratory
@LesLaboratory 2 роки тому
Thanks! I am sure one of them will be interested in it for sure. Would make a great project!
@sadiqnawazkhan3333
@sadiqnawazkhan3333 3 роки тому
This is very interesting Project. I think if we calibrate it with saturation absorption spectroscopy technique this could become a commercial level spectrometer
@texasfossilguy
@texasfossilguy 2 роки тому
have you done any work on this?
@DDryTaste
@DDryTaste Рік тому
Looking forward to the software fix! I was looking for something like this to test/calibrate my custom grow lights, this is really nice.
@LesLaboratory
@LesLaboratory Рік тому
Version 3.2 is up on GitHub, which temporarily resolves the Bullseye issues!
@DDryTaste
@DDryTaste Рік тому
@@LesLaboratory epic, thanks!
@richgoza1956
@richgoza1956 9 місяців тому
I think this project is superior!
@SarahKchannel
@SarahKchannel 7 місяців тому
Cool I have built a Raspi Terminal with 7" touch screen, that is beside my light microscope... with Raspi cam mounted to the third ocular on the microscope. Now if I added a UV LED illuminator I could measure wavelength shifts etc of specimens !
@porcorosso4330
@porcorosso4330 3 роки тому
Brilliant
@lambda7652
@lambda7652 3 роки тому
Nice! can you add calibration for relative amplitude? for example with a black body source.
@greensheen8759
@greensheen8759 3 роки тому
Nice! I was just looking at the adafruit AS7341 spectrometer board earlier and this came up
@bigsteve6729
@bigsteve6729 2 роки тому
Just get the break out 😂
@bigsteve6729
@bigsteve6729 2 роки тому
@@LungsMcGee haha
@thatoneguy99100
@thatoneguy99100 3 роки тому
This is great!
@LesLaboratory
@LesLaboratory 3 роки тому
Glad you like it!
@jamesmihalcik1310
@jamesmihalcik1310 3 роки тому
Very impressive, well thought out presentation and process. I so want to make this! Thank you so much! Subscribed, with the bell :)
@LesLaboratory
@LesLaboratory 3 роки тому
Awesome thank you! Yes another use for the Pi! :-t
@googlefuuplayad9055
@googlefuuplayad9055 3 роки тому
4:23 Dog in the Background likes the beautiful Spectrum...🐶🐕🐕 me2 Nice Video 👍Thx
@LesLaboratory
@LesLaboratory 3 роки тому
:-D all creatures love Spectra :-)
@googlefuuplayad9055
@googlefuuplayad9055 3 роки тому
@@LesLaboratory oh Yes..everyone is stunned by such a miraculous appearance... Have a nice week, keep going with this nice videos and Stay Safe! 👍 Greetz from Germany Ps: give me that mnl 100...instantly!!! 😁😋
@mastershooter64
@mastershooter64 Рік тому
I'd love to see if you can actually find out the emission and absorption spectrum of actual stars, if you used a good telescope
@arieverveer665
@arieverveer665 3 роки тому
Very interesting - thanks.
@LesLaboratory
@LesLaboratory 3 роки тому
Glad you enjoyed it!
@MrQuijibo
@MrQuijibo 2 роки тому
I'm so glad I found this channel. Criminally under-subscribed but it won't be for long
@LesLaboratory
@LesLaboratory 2 роки тому
Thanks, it is much appreciated. Yeah, the UKposts algorithm doesn't seem to be trying to push my content. Meh, patience and time....
@UReasonIt
@UReasonIt 3 роки тому
Very nice. I am working on getting an AS7341 specto-sensor working on a telescope. It has ok wavelength coverage for a cheap sensor. I have made a 3d printed mount for it that resembles an eyepiece camera. It keeps the sensor's entrance in the center of the optical train. Shooting for prime-focus but may introduce an ED 2x Barlow to give larger star images. I have an ESP D1 Mini reading the sensor and sending the data via MQTT for processing. I will be looking into getting a plot done soon after I get the optics/focusing sorted. Looking at making a focus mask to use in place of the sensor in the same type of mount.
@WilliamDye-willdye
@WilliamDye-willdye 3 роки тому
Interesting project. Just curious, do you have a specific astronomy goal such as identifying certain types of objects by their spectra?
@UReasonIt
@UReasonIt 3 роки тому
@@WilliamDye-willdye Long term, I'm looking to have a small on-the-scope sensor that can be used for quick spectral analyses. Short term, it's to see if I can get a working system for such data collection just on the scope. The AS7341 is the first device I thought would be a good one worth testing due to its bandwidth and cost. I did us an RGB sensor a few years back but never moved past an initial test due to the limitation on the sensor. I know this would not replace a real Astro-spectra setup, but it has been fun and the sensors are getting better.
@LesLaboratory
@LesLaboratory 3 роки тому
All sounds pretty cool! :-)
@bra1nsen
@bra1nsen 2 роки тому
OMG NICE!
@adrianramos2229
@adrianramos2229 3 роки тому
Amazing!
@LesLaboratory
@LesLaboratory 3 роки тому
Thanks!
@AlanDeRossett
@AlanDeRossett 2 роки тому
Nice
@SiriusFuenmayor
@SiriusFuenmayor 3 роки тому
Great!
@HerrFrankenstein
@HerrFrankenstein 3 роки тому
Kinda of cool... You could use it to measure color space and calculate CIELAB ( L*a*b*)... Sort out that sock drawer... Check a paint job... Color formulation... Quality control (if there is such a thing)... Cheers
@davidprice875
@davidprice875 3 роки тому
Very cool project. DId you consider the smaller pocket spectroscope and have you done any flame tests. One of my interests is identification/verification of 3D printing filament
@LesLaboratory
@LesLaboratory 3 роки тому
The one I have was gifted to me, so I worked with what I had. The pocket version should work, with some experimentation. I have not done a flame test, but now it is added to my to-do list! ;-)
@Reefark
@Reefark Рік тому
Thanks!
@LesLaboratory
@LesLaboratory Рік тому
Thanks so much!
@alexanderm2702
@alexanderm2702 3 роки тому
Great video! For those of us who are super-cheap, I wonder if it's possible to make a version that uses light reflected off of CD's or DVD's instead of the spectroscope. Maybe the software could transform the image as needed to reconcile between the CD and a real spectroscope.
@LesLaboratory
@LesLaboratory 3 роки тому
Thanks! It should work with any home made spectroscope. So long as you can fit the spectrum in the preview Window. RPi4 is best for this as that is what it was deigned for.
@Maclman1
@Maclman1 3 роки тому
Very nice gui 👌
@LesLaboratory
@LesLaboratory 3 роки тому
Thanks 😁
@naimulhaque375
@naimulhaque375 Рік тому
Excellent video. I was wondering how I can utilize the spectrum data. Since I can capture some screen shot of the spectrum, how it is possible to analyze the whole spectrum. For example, I want to see the color spectrum of a colorful shirt, how can understand what different colors are present in the shirt. Moreover, while we take spectrum of a white thing, its a combination of all color and show all different spectrum. How can we understand if the color is white or brown.
@JerkerMontelius
@JerkerMontelius 3 роки тому
Pipe that spectrums to a tensorflow network and see if you can make it to recognize diffrent waveforms.
@LesLaboratory
@LesLaboratory 3 роки тому
That could make a pretty cool project!
@brianwesley28
@brianwesley28 3 роки тому
EXACTLY what I have in mind. Material identification with a Jetson Nano, if possible. If not, another SBC. Same idea. That's exactly why I'm here.
@pepekrozinek
@pepekrozinek 3 роки тому
Badass!
@hullinstruments
@hullinstruments 3 роки тому
Holy shit man… It was just a suggestion 😂 When I left those comments and suggestions I didn’t think you would drop everything and do this as your next video! But I’m not complaining because this is exactly what I’ve been looking for! I’m so happy you made this! That’s the reason I left those comments because I knew you would design this thing perfectly and I’ve been ready for a good and polished DIY spectrometer design for a long time!
@LesLaboratory
@LesLaboratory 3 роки тому
LOL chill! It was already in the pipeline for some time as I need a tool to measure the tuning curves of the homemade Dye Laser (upcoming video ;-) ) Besides, although there is plenty of x86 Windows software kicking about, nobody seemed to have written software to do this on the Pi, so I figured, why not, it seemed like a good idea! Also Raspberry Pi's are just awesome. You are welcome! It seems pretty popular on here too.
@EvertvanIngen
@EvertvanIngen 3 роки тому
😂😂😂😂😂😂 this made my day
@schumzy
@schumzy 2 роки тому
Thanks for making it with items that are available, the classic "I bought it off Ebay" is the most annoying thing to say.
@LesLaboratory
@LesLaboratory 2 роки тому
You are welcome, yeah, I hate unobtanium for builds like this, sometimes it's a necessity, but if it can be done with off the shelf parts, then all the better!
@andymouse
@andymouse 3 роки тому
Wow ! Please, any more info on software would be amazing, I'm blown away by this, if ever I needed an excuse to find out what RP is all about its this ! Wow ....cheers.
@LesLaboratory
@LesLaboratory 3 роки тому
Thanks! I will do a video on the inner workings of the program when I get some time.
@SwissPGO
@SwissPGO 3 роки тому
Would see additional value in integrating detector response curve... currently it is only calibrated for wavelength, not intensity. I agree, that is much more difficult to achieve though.
@TheMAggi99
@TheMAggi99 3 роки тому
Good idea. For this, one will need the quantum efficency curve from the camera. But I m not sure the manufacturer has measured it for such a cheap camera. Also, the camera uses a bayer matrix, which means there are red, green and blue pixels. These have to be callibrated individually. So i guess it is easier to look for a monochrome sensor with a quantum efficency curve available.
@SwissPGO
@SwissPGO 3 роки тому
@@TheMAggi99 Definitely going black and white sensor is a good option. In my young days when still doing detector work, I removed the glass protective plates in front of the ccd array: you can buy 50 of them on the cheap (and break several off them while improving your methods), compared to only one equipped with a quarz window. I was dealing with soft x-rays lasers, and these tend to actually increase the dark current of your pixels over time, burning the camera chip, even at low average (but high peak) intensity.
@tdtrecordsmusic
@tdtrecordsmusic 2 роки тому
epic cool
@GaryMcKinnonUFO
@GaryMcKinnonUFO 2 роки тому
Very cool indeed, thanks for sharing, liked and subbed :)
@LesLaboratory
@LesLaboratory 2 роки тому
You are welcome!
@clipikt
@clipikt Рік тому
I wonder if this can be used for leaf spectral analysis or other agricultural use. Can the software be run in other os with python? Thanks!
@neophytealpha
@neophytealpha 3 роки тому
Interesting
@Ragnar.Lothbrok.3.14
@Ragnar.Lothbrok.3.14 3 роки тому
Neat project. You got my attention with spectrometer, I've always wanted to use a metal spectrometer that can identify alloy percentages in metals. I think they use an x-ray as the most common type , could something like that be modified to use your design?
@LesLaboratory
@LesLaboratory 3 роки тому
What you are talking about is XRF (X-ray Fluorescence), which is a whole different ballgame, but fundamentally similar, it just uses X-rays instead, and a suitable Scintillator instead f a diffraction grating to detect the different photon energies. It would be possible to identify a metal with an optical spectrometer by vaporising it. This can be done with a High power Laser. Mars Curiosity does that: mars.nasa.gov/msl/spacecraft/instruments/chemcam/
@edgeeffect
@edgeeffect Рік тому
I prefer more of a home-built aesthetic and price ;) ... I think a combination of diodegonewild's hardware and your software would make a great pairing and I was just thinking about hacking yours to use an ordinary webcam on some other Linux box... and then you said you've done that already.... superb!!! I've also got a load of diffraction and diffusion stuff out of old flat-screen TVs... I wonder if I could get any results out of any of that........
@fhj007
@fhj007 3 роки тому
what do you plan to do with this? It seems limiting that it's only as accurate as the light sources you have on hand
@AntoninKral
@AntoninKral 3 роки тому
Aaaah, man, why? ... Just ordered mine ... Great project. Thank you.
@LesLaboratory
@LesLaboratory 3 роки тому
You are welcome!
@nerd9992
@nerd9992 2 роки тому
evolving!
@ricardomaggiore5518
@ricardomaggiore5518 3 роки тому
Great video. I have a question, I need to measure uv wavength from 320 up to 420 nm. Any suggestions? Is there any filter for the camera? Or a specific camera for uv?
@LesLaboratory
@LesLaboratory 3 роки тому
jonsmirl on github sent me this: www.mdpi.com/1424-8220/16/10/1649/pdf Worth a look!
@Midnightmicroscope
@Midnightmicroscope 3 роки тому
Fantastic video! I can’t wait to try this myself. Is the website you listed on the GitHub page the place you bought your spectroscope? And how bright of a light source do you need to get a reading? For example would it be sensitive enough get a reading off something like a glowstick? or maybe a bright LCD screen?
@LesLaboratory
@LesLaboratory 3 роки тому
Thanks! The spectroscope was gifted to me, but that is the manufacturers site for this model. There are plenty of similar ones about, or you could make your own. You can easily get spectra from an LCD monitor. I would imagine you should be able to for a glowstick as well in ideal circumstances. If I can get time on my side, I might add things like brightness, contrast etc, but I would need to rewrite the interface.
@bra1nsen
@bra1nsen Рік тому
it would be great if one could connect the pi zero 2 serial to the raspberry pi 4b for data traffic
@TheSingularNextuz
@TheSingularNextuz 2 роки тому
I wonder. If you pointt it outside. Wouldn't there be more a lot more blue on the spectrum? Thanks for a Fantastic device 😃
@LesLaboratory
@LesLaboratory 2 роки тому
Thanks! Not as much blue as you might expect. The sky only appears blue because of Rayleigh Scattering.
@cyrilbrunner8019
@cyrilbrunner8019 3 роки тому
Cool!! Have you thought about removing the UV- and IR-cutoff filter from the Pi cam?
@haroldemmers3678
@haroldemmers3678 3 роки тому
I had the same question --> can we upvote this question ? :)
@canwenot573
@canwenot573 3 роки тому
@@haroldemmers3678 I concur. It is a very solid question and I'm now curious about the answer. Perhaps he considered removing them but decided against it for some reason, and that reason itself might make for a good followup video.
@jurgislll
@jurgislll 3 роки тому
Bayer filter also might affect the spectrum, going with black and white sensor is doable with calibration. Hardest part in this DIY setup is intensity calibration since sensors might pick up different spectrums with different intensity.
@LesLaboratory
@LesLaboratory 3 роки тому
All good questions! I did not remove the IR filter, as the scope I am using was designed for visible wavelengths only, and my interest at the moment is the visible spectrum. Internally the spectroscope is a transmission Diffraction grating, plus a collimating lens and a prism (for a linear design) this is too much glass and plastic film for UV to make it though and would significantly attenuate IR. If you build your own spectroscope frontend, you could do whatever you like. For this you would need a reflective Diffraction grating to deal with IR and UV, and quartz optics as well. Yes, Picams have a Bayer filter. Jon Smirl on GitHub suggested removing this for UV work, and cited a paper here: www.mdpi.com/1424-8220/16/10/1649/pdf but it is not for the faint of heart! Also yes, you would then have to characterize the response curve for the Picam sensor, minus the Bayer filter. On the plus side, you would have a really high resolution B&W Picam if you sample the original RGB values as individual pixels. That, in and of itself might be useful to the Astronomers.
@iliahborg7079
@iliahborg7079 3 роки тому
Consider removing the CFA or using a monochrome sensor ;)
@Bianchi77
@Bianchi77 3 роки тому
Cool :)
@StripeyType
@StripeyType Рік тому
this is fantastic, and now I'm wondering if it may be useful for identifying steel alloys from their incandescence. I've got a couple milk crates of Mystery Steel and it'd be nice not to have to guess. ;)
@LesLaboratory
@LesLaboratory Рік тому
The steel would have to be heated beyond incandescence I think. Have a google at Laser Induced Breakdown Spectroscopy (LIBS)
@RebelPhoton
@RebelPhoton 3 роки тому
Can this be used for display calibration with something like ArgyllCMS? I guess a custom driver would have to be written, but it's the hardware adequate for this purpose?
@LesLaboratory
@LesLaboratory 3 роки тому
I have never used that software, so I am not sure whether this would be suitable. I think there are already miniature sensors that can do that at a fraction of the cost.
@johndoggett808
@johndoggett808 3 роки тому
Pin hole camera to look at the sun? Might be useful for calibration.
@LesLaboratory
@LesLaboratory 3 роки тому
Either that or an ND filter and you can maybe calibrate from prominent Fraunhofer lines perhaps. Relative intensity is a different story.
@TiagoTiagoT
@TiagoTiagoT 3 роки тому
It would probably be useful to have the option of exporting the actual spectrum data without converting it into a graph, like the actual detected numbers, in some standard format, whatever is used for handling spectrum data, as well as just some pure text format like CSV or something of the sort.
@LesLaboratory
@LesLaboratory 3 роки тому
V3 now does this. See: ukposts.info/have/v-deo/nJ1kq6WNiKZpuZc.html
@googlefuuplayad9055
@googlefuuplayad9055 3 роки тому
There is a laserpen telescope collimator kit in thingyverse, which has a nut for keeping the laserpen switched on...just turn this nut for switching the laserpen. Maybe helpful?...i Love it
@LesLaboratory
@LesLaboratory 3 роки тому
Cool, I will go take a look, better then a zip tie I imagine!
@garrettfarrell2617
@garrettfarrell2617 3 роки тому
Brilliant, well done. Is its possible to get an xy data file of the spectra?
@LesLaboratory
@LesLaboratory 3 роки тому
Thanks! It's coming in the next release (this weekend with luck). A few people have asked, so it will do CSV export, that you can use in other programs. Also, I have implemented a peak hold feature for pulsed applications. Stay tuned!
@ancapftw9113
@ancapftw9113 3 роки тому
I wonder if you could use this to analyze the composition of soil samples? I was thinking of trying to use a specroscope to analyze the mineral content of. Rocks and soil near my house, so I can try my hand at refining metals.
@LesLaboratory
@LesLaboratory 3 роки тому
Maybe. I know the Gemologists use them for large gem samples. For things like soil, I'm not sure. You might have to suspend them in a viscous solution like Glycerin perhaps, or as a thin layer on a microscope slide (just a guess I'm afraid).
@mr1enrollment
@mr1enrollment 3 роки тому
Interesting project. I wonder if this band would be useful to measure aqueous salts as in the content of said salts for maintaining a hydroponics system? I suspect, (I am no chemist), that shorter wavelengths would be more useful in that domain. Any idea? A broad band of light may be required also.
@LesLaboratory
@LesLaboratory 3 роки тому
Not a Chemist either really. My suspicion is as yours, short wavelengths. IR transmission of solid salt at least, is pretty good, good enough for IR Laser windows such as for CO2.
@texasfossilguy
@texasfossilguy 2 роки тому
the most useful range for chemical compositions are SWIR and LWIR as the bond lengths absorb IR light for different bonds.
@fabriziosavoretto
@fabriziosavoretto 2 роки тому
Awesome work! Could you suggest other suitable usb camera fore the project ?
@LesLaboratory
@LesLaboratory 2 роки тому
It 'should' work with any USB cam that the Linux driver supports. Of course there is variation in quality of cameras. The beauty of Picams though, is that there isn't much variation between models, even from different suppliers.
@carlg5838
@carlg5838 3 роки тому
This would be useful for quantitative and comparative work if there was a way to connect it to one of the powerful free spectroscopy packages, such as the excellent Spectragryph software. As it is, the graphing features are much like the many other DIY spectroscope projects out there that simply use a webcam. A few of the better designs can achieve similar wavelength resolution.
@LesLaboratory
@LesLaboratory 3 роки тому
For sure. Given time this software will evolve though. I have already added peak hold feature this week, and I m sure many other useful features can be added.
@carlg5838
@carlg5838 3 роки тому
@@LesLaboratory that sounds promising. I think it's simply a matter of assigning a specific serial data protocol that can be sent easily over USB or Ethernet to a laptop, or copying an existing one. The developer of Spectragryph has included all of the most popular commerical spectrometers to the menu, and a few amateur ones. As long as they have the handshaking and data protocol for 2 way communication in hand. The other usual option to be provided by the Pi spectrometer, in this case, would be to define a stack of multiple successive samples, to allow for time averaging of weaker and noisier signals. I don't know if there's any option to change the exposure time or frame rate of the Picam, but that would be another useful feature if it's settable in the UI.
@texasfossilguy
@texasfossilguy 2 роки тому
Im going to try to make it a datalogger somehow so that every 30 seconds it takes the max, min, and mean for the entire spectrum and saves to a comma delimited file based on time.
@mackenziebil
@mackenziebil Рік тому
I love your channel and videos, so helpful for a laymen. I wanted to track down the two lasers that you used to calibrate, but they seem to be extremely pricey. You mention that diode based lasers aren't that accurate, is there another light source that I could use to calibrate that isn't that expensive? Thank you!!
@LesLaboratory
@LesLaboratory Рік тому
Thanks! Yes, you can use old style fluorescent lamps. These have clearly defined emission lines that are are easy to look up. Regarding lasers: the 532nm green pointers that you can get really cheap are bang on 532nm and do not drift. The 405nm violet pointers are fairly reliable as well. All red pointers drift in wavelength quite significantly, and without spending $$ they may have wavelengths +/- several nanometers from that advertised.
@mackenziebil
@mackenziebil Рік тому
@@LesLaboratory That's awesome, thank you for sharing your knowledge, I really appreciate it.!! I'll keep watching for new content.
@jmadera_6
@jmadera_6 2 роки тому
Would this be useful in detecting what substances make up a powder or liquid? Like if you put it between the light and the receiver, would the change in what light passes through help to determine the makeup of whatever solution you put in its path? Like say for instance you had a few bottles of plant fertilizer without labels and your objective is to identify which is what and if any of them are mixtures, and if they are, what that mixture would be..... If you understand what I'm saying
@LesLaboratory
@LesLaboratory 2 роки тому
Yes. What you are describing is Spectrophotometry. You would have a light source aimed at the spectrometer with a known spectrum. This would pass through a Cuvette containing your solution and note the absorption spectra to make a determination of the contents. You might find with things like Ammonium nitrate, you would need to be able to detect quite far into the Infrared though.
@jmadera_6
@jmadera_6 2 роки тому
@@LesLaboratory what about products like SCiO's NIR Micro Spectrometer? Too good to be true?
@McTroyd
@McTroyd 3 роки тому
Greetings from a HAD reader & new sub. I only recently became aware that it was even possible to build lasers at home -- my wife is concerned. 😁 Cool you were able to get that spectrum on a regular RPi camera. Would the NoIR cam variant help with the sensitivity at the extremes of the spectrum, maybe?
@LesLaboratory
@LesLaboratory 3 роки тому
Yes, the NoIR cam would be more sensitive. The Spectroscope I am using is designed for visible wavelengths though. The deepest into the IR I have seen is 760nm. To get a larger range, you would have to build the spectroscope frontend. UV is particularly problematic. Most glass types, and all plastic will absorb it. You would have to use Fused Silica optics for UV work, which costs $$$! IR should be no problem though.
@McTroyd
@McTroyd 3 роки тому
@@LesLaboratory Ahh yes, of course. You're working in UV... no idea how I got IR in my head. That explains the effort behind the dye lasers.
@ChrisBigBad
@ChrisBigBad 2 роки тому
Hi. I wonder if you could stretch the camera-image to match the graph. My brain was trying to match the lines to the peaks while watching and that would make it easier. very cool.
@LesLaboratory
@LesLaboratory 2 роки тому
It could be done, and it is open source, so you can modify it if you like. The reason it was not done is speed, large live images in OpenCV are a bit hungry for CPU and RAM, so I wanted it lean. I suppose I could remove a strip of video, say 20px high and 640 wide, and display that under the graph, that could look pretty cool!
@rajatbandejiya846
@rajatbandejiya846 Рік тому
Hi Can this also detect light in near IR region i.e. 850nm, 1310nm and 1550nm?
@dilhamwahyudi5605
@dilhamwahyudi5605 10 місяців тому
amazing project! if i using monochrome camera, which parameter should i change? thank you!
@LesLaboratory
@LesLaboratory 10 місяців тому
You shdoulnt have to change anything. Is just uses the first available camera, and if that happens to be a black and white USB camera, it will lick it up and use it. There is updated software by the way, with a seperate script specifically for USB cams: github.com/leswright1977/PySpectrometer2
@dilhamwahyudi5605
@dilhamwahyudi5605 10 місяців тому
@@LesLaboratory thanks's for the opportunities. Buat i mean, i have monochrome camera from Allied Vision (vimba usb camera) that have an API to use. Have you ever know about this?
Building a Nanodrop Style UV/Vis Spectrometer
15:41
The Thought Emporium
Переглядів 253 тис.
Kitten has a slime in her diaper?! 🙀 #cat #kitten #cute
00:28
DIY Scanning Laser Microscope
22:05
Breaking Taps
Переглядів 419 тис.
DIY mass spectrometer measures potassium in dietary salt substitute
26:45
Applied Science
Переглядів 363 тис.
Coupling Laser beams into Fiber Optic Cable!
14:04
Les' Lab
Переглядів 47 тис.
How to Make DIY Spectrometer | Optical spectrum analyzer | Light analysis
6:45
Electrical Projects [CreativeLab]
Переглядів 205 тис.
Little Junk Laser is a MEGAWATT Beast!
20:20
Les' Lab
Переглядів 116 тис.
Spectrometer Introduction, Tear-down, and Data Analysis for Plant Phenotyping
10:08
I Spy, with my Little Pi...
23:46
Jeff Geerling
Переглядів 234 тис.
🔥 Spectrometer made from a smartphone or web camera
9:33
Огненное ТВ
Переглядів 276 тис.
Ozirma - A low cost infrared spectrometer
2:31
Vivien Henry
Переглядів 1,8 тис.
Как открыть дверь в Jaecoo J8? Удобно?🤔😊
0:27
Суворкин Сергей
Переглядів 896 тис.
GitHub Copilot just got promoted to Captain
4:01
Fireship
Переглядів 384 тис.
Photo Changing Replace And Edit Backgrounds 65mn With These 10 Tips
0:53
Irfan AN Tech
Переглядів 260 тис.
Компьютер подписчику
0:40
Miracle
Переглядів 191 тис.