DIY Raspberry Pi Spectrometer NEW SOFTWARE!

แชร์
ฝัง
  • เผยแพร่เมื่อ 5 มิ.ย. 2024
  • Episode 45
    #spectroscope
    #spectrometer
    #raspberrypi
    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 the latest and greatest software for the home-made Raspberry Pi Spectrometer with al new features! If you already have a Raspberry Pi, this useful tool can be built for under 100 bucks!
    The new software features:
    Accuracy has been significantly improved by implementing multi-wavelength calibration and a Polynomial regression data fit to compute wavelengths as precisely as possible across the measured range.
    Full screen spectrometer display! On Raspberry Pi systems, the interface is designed to fit 800 x 480 screens, which seem to be a common resolution for RPi LCD's, paving the way for the creation of a stand alone benchtop instrument. (for example the HyperPixel 4.0, etc)
    Waterfall display from measuring spectra changes over time
    This uses readily available components and easy to use Python software I have written specially for this application.
    A commercial Diffraction grating Spectroscope www.patonhawksley.com/product...
    Original PySectrometer: • How to build a DIY Ras...
    Nitrogen Laser repair: • Can it be repaired? Du...
    Home made Dye Laser: • DIY Tunable Dye Laser!...
    Ulbricht Sphere: • Home Made Integrating ...
    All code for this video and the bill of materials, as well as additional information is available at my GitHub.
    github.com/leswright1977/PySp...
    #raspberrypi
    #optics
    #laser
    0:00 Intro
    0:16 Hardware
    1:41 Software Repo Github
    2:33 New Features!
    6:20 Where to buy parts
    7:45 Quick test
    9:30 New Software Demo!
    9:49 Calibration
    14:38 Waterfall mode
    15:36 Test with a Dye Laser!
    18:19 Self contained unit with screen!
    19:16 Outro
    19:26 Channel supporter credits
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 149

  • @dgalvarez
    @dgalvarez 22 วันที่ผ่านมา +3

    I've been using your spectroscope this weekend and it helped me with barium salts identification. I had many sodium contamination and it's a pleasure to use the spectrometer to find elements like sodium calcium barium and strontium... Also helped me to find sodium contamination wich was supposed to be calcium, but it's clearly sodium.Thank you very much for your work ❤🎉

    • @LesLaboratory
      @LesLaboratory  21 วันที่ผ่านมา

      Fantastic! I am glad this stuff is useful!

  • @mikekay4076
    @mikekay4076 ปีที่แล้ว +5

    Gemmologists would love this. The spectra of gemstones can be very useful for identification.

    • @LesLaboratory
      @LesLaboratory  ปีที่แล้ว

      For sure!

    • @GemFacets
      @GemFacets ปีที่แล้ว +1

      Student gemmologist, and cutter - just loaded up my shopping cart...

    • @manosandroulakis6443
      @manosandroulakis6443 11 หลายเดือนก่อน

      @@GemFacets my dear friend, because I am also interested in the distribution of precious stones, did it work for you? Can you give me some details?Thank you.

  • @WaffleStaffel
    @WaffleStaffel ปีที่แล้ว +2

    Beautiful! I love all the improvements! Thank you!

  • @willrobertson7778
    @willrobertson7778 8 หลายเดือนก่อน +2

    Thank you very much for this wonderful spectrometer!
    I was thinking about building a spectrometer for colorimetric analysis for cheese making and earth chemistry and as part of an AES spectrometer - your spectrometer and software are much better than anything that I could have built myself!
    There are two tricks from experimental physics that I thought I'd mention in case they were of any interest:
    One is to use an "optical chopper" (usually a "chopper wheel" or "chopper disk") and phase sensitive detection to improve the signal/noise when measuring weak light sources. I think modern cameras and a Pi might be fast enough for phase sensitive detection to be implemented in software now though I'm not sure.
    Another is to use a reflective diffraction grating instead of a transmissive diffraction grating - that can allow the wider range of wavelengths to be measured since the light doesn't pass through the grating.

  • @marwinthedja5450
    @marwinthedja5450 ปีที่แล้ว +2

    Thank you so much and congratulations on this beautiful project!
    It's really a must-build for me now.

  • @Tesla210
    @Tesla210 ปีที่แล้ว +2

    Thank you for this Les! I have always wanted a spectrometer but they were so expensive! I have recreated this for myself. Thanks again!

    • @LesLaboratory
      @LesLaboratory  ปีที่แล้ว +1

      Awesome, glad you found it useful! :-)

  • @zenbutter
    @zenbutter ปีที่แล้ว +3

    This is an amazing creation!
    Coming from an audio perspective I love how the same tools of spectrogram and spectrograph are equally revealing and amazing, just at different frequencies. :)
    If the software ever developed the ability to determine CIE 1931 xy chromaticity coordinates, along with the ability to calculate the true luminosity in nits, this would let the it be used to match a relatively inexpensive tristimulus colorimeter to the absolute accuracy of a spectrophotometer for display colour calibration.
    This match is done by measuring the same “pure” RGBW colour patches on the same display with both meters, and then the software take those two sets of chromacity measurements and use them to match the values produced tristimulus meter which can measure quickly and at low light levels to the spectrometer.
    Currently the tools to do this sort of measurement to 10nm accuracy, i.e. good enough for a LCD/CRT/bulb projector are ~$1.5K. And to get to a narrow enough range to be able to accurately measure the primaries of a laser based source would require a $15K instrument.
    There is a strong community of amateur home theatre colour calibration enthusiasts (and professional I’m sure) that would be eternally grateful if this window opened for them via your DIY creation. Me included!
    Cheers, take care and thank you.
    -Jonathon

  • @MrYuriMan
    @MrYuriMan ปีที่แล้ว +1

    Great job! Please keep up the good and interesting work.

  • @dsvilko
    @dsvilko ปีที่แล้ว +14

    This looks great! A few cool things to add would be:
    1. Average mode for reduced noise (continuous integration?)
    2. HDR mode (combine multiple different exposures to avoid clipping the high intensities but also get low noise on low intensities), possibly with log Y option
    3. Blackbody calibration (incandescent light bulb?) to get a more realistic absolute intensities
    4. Relative spectra (compared to a saved reference spectra to be able to get absorption spectra)

    • @LesLaboratory
      @LesLaboratory  ปีที่แล้ว +6

      1) Peak hold integrates the max values of all peaks over a period of time, but I guess you are thinking of grabbing say 30 frames worth, averaging then displaying?
      2) Like image stacking in astophotography?. LogY sounds interesting.
      3) This may be done at some point, but software might not be the best solution. Picams (like many cameras) have poor linearity across the spectrum. The current most sensible solutions are to debayer the camera sensor (not easy, see my other videos!) or acquire a B&W USB camera. Both have relatively linear responses when compared with color cams.
      4) A cool idea!

    • @stefanmayer444
      @stefanmayer444 ปีที่แล้ว +2

      Very cool Ideas indeed! Intensity calibration with a black body would be awesome! That way you could determine stuff like the CRI of LEDs.

    • @stefanmayer444
      @stefanmayer444 ปีที่แล้ว

      @@LesLaboratory 3) Couldn't you calibrate the software by measuring the change of brightness while doubling the distance to the blackbody emitter and determine the change in measured intensity to the theoretical change in intensity?

    • @LesLaboratory
      @LesLaboratory  ปีที่แล้ว +2

      @@stefanmayer444 for any given individual wavelength yes, but the color filter on the bayer layer results in a non linear spectral response. It should be a bell curve, from about 400nm to 900nm or so, but it is way off and this would need compensating.

    • @stefanmayer444
      @stefanmayer444 ปีที่แล้ว

      @@LesLaboratory Okay, so Ideally a monochrome sensor, but we can still hope for a software compensated solution? Would be interesting to see the accuracy between a monochrome sensor and a software compensated RGB sensor.

  • @vincenzomartorana2625
    @vincenzomartorana2625 ปีที่แล้ว +1

    I couldn't resist! I've built the smallest of the spectrometers, but using a picam1 and a Raspberry vers. 1 (!). I modified the new version of the software to make it compatible with the old picam and removed some bells and whistles to make it less sluggish. Now it is kind of usable, I've just to wait! I also modified the source to average the spectrum on an arbitrary number of rows and changed the 'holdpeak' behaviour to let the signal accumulate for very weak sources. So, thanks for all, Les, that was fun.

  • @thatoneguy99100
    @thatoneguy99100 ปีที่แล้ว

    Fantastic as always Les!

  • @petergoose8164
    @petergoose8164 ปีที่แล้ว +8

    You've been a busy boy Les. I have built V1 so am very pleased to see that you have upgraded the software. The calibration is brilliant kitchen physics. Great for teachers. Kudos to you. Now to get hold of a Pi4.

    • @LesLaboratory
      @LesLaboratory  ปีที่แล้ว +3

      Thanks! It will run on a 3B+ without issues, but the boot time for Bullseye is a little slow. It may work ok on others so long as Bullseye will run on it.

    • @richgoza1956
      @richgoza1956 8 หลายเดือนก่อน

      @@LesLaboratory
      Is it possible to use an ESP-Cam that streams the video over WiFi that pipes it through a UDP receiver in order to make a stand-alone, portable version?
      That would be epic, Sir.
      That's exactly what I'm trying to do.
      I want to stream it to a tablet. 😁

  • @MrFraneque
    @MrFraneque 7 หลายเดือนก่อน

    Man, I LOVE your vids. They blow up anybody's mind. Keep on going!

  • @jsfotografie
    @jsfotografie ปีที่แล้ว +1

    holy moly Les your a wizzard have to look at allllll your projects and build them :D thx a ton!

  • @rezganger
    @rezganger 8 หลายเดือนก่อน

    this is awesome!!! thanks for sharing,man.

  • @neophytealpha
    @neophytealpha 4 หลายเดือนก่อน +1

    Potentially quite useful

  • @flaviospedalieri8707
    @flaviospedalieri8707 ปีที่แล้ว +1

    Excellent job😉 much more refined software.

  • @stefanmayer444
    @stefanmayer444 ปีที่แล้ว +1

    Very cool. 🌈

  • @senorjp21
    @senorjp21 ปีที่แล้ว +7

    Galactic redshifts are on the order or 10s of nm. With a suitable telescope you might be able to measure redshift with your setup. I think you would also need a chamber filled with hydrogen to get an adsorption spectrum? My gr 12 physics is failing me...

    • @LesLaboratory
      @LesLaboratory  ปีที่แล้ว +2

      Something I would like to get into is stellar spectroscopy, I just need time...I have had a couple of ideas about how this might be accomplished and calibrated. Red-shift would be especially interesting...

    • @richgoza1956
      @richgoza1956 10 หลายเดือนก่อน +1

      ​@@LesLaboratory
      How cool would it be to map the spectra coming from a Sonoliuminesce experiment where water cavitation occurs in standing-wave nodes?
      If one were to identify helium in those produced emissions, I think that would be an epic breakthrough.

  • @richgoza1956
    @richgoza1956 10 หลายเดือนก่อน +2

    I am curious as to what kind of readings one would obtain by looking at stars through a telescope with this device.
    I am also wondering if the camera can be adapted to a wireless esp-cam streaming via UDP.
    Your work is spectacular!
    Keep doing what you're doing.

  • @olafmarzocchi6194
    @olafmarzocchi6194 ปีที่แล้ว

    Very nicely done!
    Is the vertical scale linear? so that, assuming I find a source with known intensities, would I be able to calibrate the vertical scale as function of wavelength? if the camera gain if fixed, it should be possible.

  • @matthewtscott1
    @matthewtscott1 ปีที่แล้ว +3

    Definitely would be worthwhile implementing CSV output for data analyses. Would be very interesting to analyse water quality 🤔

    • @LesLaboratory
      @LesLaboratory  ปีที่แล้ว +2

      When you hit save, it saves data as a graph image, and as a CSV file :-)

  • @eugeneputin1858
    @eugeneputin1858 10 หลายเดือนก่อน

    Well ill be dam. Amazing work! Will try to recreate😁

  • @WhatCID
    @WhatCID ปีที่แล้ว +2

    Merci ;)

  • @Ahheck01
    @Ahheck01 ปีที่แล้ว +6

    Wonderful! Two questions: 1) If using a pi camera that does NOT filter out IR, how far into the IR spectrum can the spectroscope & software support? 2) Have you or are you interested in exploring integration of something like ArgyllCMS? I'd love to be able to get the output of >>>spotread with this level of precision and resolution.

    • @LesLaboratory
      @LesLaboratory  ปีที่แล้ว

      The physical spectrometer is designed for visible light, and the deepest you can get is about 800nm or so. The software however does not care too much about range. When I was testing, I was using test data from 300nm to 1500nm, so it should be fine.
      You could always roll your own spectrometer head and indeed I am thinking of looking into this myself, there are too many interesting things to be seen in the IR that I am missing!
      I have not used Argyll CMS or spotread, and am certainly not an expert in color spaces. What is your application?

    • @Ahheck01
      @Ahheck01 ปีที่แล้ว

      @@LesLaboratory It started out as an interest in accurate CRI and TM-30 analysis on home and studio lighting sources - essentially looking for DIY alternative to the Sekonic C-800. That said my interest has evolved to include effects of deep red and IR in home lighting, wellness, etc. I'm interested in UV as well, but that brings with it many more challenges and safety considerations that haven't yet been overridden by curiosity. I'm subscribed and will be following along if you do venture into a wider spectrum!

  • @theelmonk
    @theelmonk ปีที่แล้ว +4

    Does it need a high speed pi like a pi4 (I see you have a fancy cooling rig!) or will it run with a low-end one such as a pi zero ? The zero seems better suited to a self-contained unit.

    • @LesLaboratory
      @LesLaboratory  ปีที่แล้ว +1

      It ill run on at least a 3B+, but I have not tried it on the zero yet. If Bullseye will run on the zero, I would reckon this software would, although I expect it will be slower than on on the Pi4. Since the software now supports full-screen, it might be possible to run it in a minimal desktop environment.

  • @chanheosican6636
    @chanheosican6636 11 หลายเดือนก่อน +1

    Build a nitrogen pulsed 2 joule per second and made a rough spectrum uv machine that was hooked up to a photo diode and oscilloscope 100 Mhz. Tested many chemicals including cobalt chloride, copper sulfate, hcl, ethanol, ethylene glycol, water, methanol, etc.

  • @CBroPhotography
    @CBroPhotography ปีที่แล้ว +2

    Will start building now. Thanks!
    Would it be possible to extend this into the IR range with the appropriate sensor/grating? I have used my Pi IRCUT cam to test some dodgy green laser pointers. With the filter turned off it was possible to see two lines of IR with diffraction. Just beginning my deep dive into optics/lasers so thanks for creating this.

  • @davestorm6718
    @davestorm6718 ปีที่แล้ว

    That's really nice. I saw the first version. I wonder how difficult it would be to make an IR spectrometer w/a RaspberryPi ... :)

  • @yihanzhang2094
    @yihanzhang2094 ปีที่แล้ว

    Great work. Are you using the Pi camera that you stripped the bayer layer? Is there any calibration to the intensity of the light at different wavelength?

    • @LesLaboratory
      @LesLaboratory  ปีที่แล้ว

      I was just using the ordinary version of the camera in this video. Intensity is arbitrary units from 0-255, however it can save data as CSV which you can import into whatever program you like to do post processing

  • @andymouse
    @andymouse ปีที่แล้ว

    Excellent stuff ! I think I shall have a play with this as I have a 10 quid ebay usb microscope that I would happily pull the sensor out of or maybe it might work 'as is ' what do you think ? You have done an amazing job with this and I hope schools and colleges know about it as back when I was a student I would loved to make something like this ! and you get a very capable scientific instrument at the end of it. This has the lot, Lasers (everyone's favorite!) optics, software, electronics so it's all there...cheers.

    • @LesLaboratory
      @LesLaboratory  ปีที่แล้ว +1

      Thanks! Sure, a USB camera should work with the USB version of the software, and will probably work more or less as is, though you will have to tweak the focus!
      There have been a few colleges e-mailed me since the first version last year, but yes, this kind of kit should be in every school and even Universities for that matter!
      It is such a pity that the "Amateur Scientist" and other great columns are no longer a thing!

  • @henryj.8528
    @henryj.8528 9 หลายเดือนก่อน

    Which version of the RaspberryPI do you recommend for this project?
    Very nicely done BTW....

  • @andicrellin9838
    @andicrellin9838 ปีที่แล้ว

    Wonderful idea and very clear presentation, thank you. If I source a suitable camera would the spectroscope and your software be compatible as far into NIR as 1850nm? I see some of the Pi cameras with Sony IMX 219 are without IR filters but I haven’t yet been able to find exact specifications as to wavelengths filter version cuts in. Any subscribers in the know?

    • @andicrellin9838
      @andicrellin9838 ปีที่แล้ว

      OK, so a little more research completed. For anyone looking outside of the visual spectrum a camera without an IR filter is what you need. However, most compatible cameras seem to run out by 1000nm. The ultra low light IMX462 without IR filter seems to be about the best option with a little more width to 1100nm (from what I’ve read so don’t quote me) It’s only 2MP and uses a bigger M16 fitting too, anyone who’s built one, would these be a problem if matched to a suitable lens?
      I don’t have any suitability info on the spectroscope. I did email the suggested retailer but had no reply - any scholarly subscribers with a pearl or two of wisdom?

  • @chanheosican6636
    @chanheosican6636 11 หลายเดือนก่อน

    Could u build a uv vis type spectrometer that can measure concentrations? Cool.

  • @customthings3081
    @customthings3081 ปีที่แล้ว

    A question, how does is it possible to calibrating the amount of power measured by this spectrometer? like for example, uW/cm2/nm. I'm looking for solutions! Thanks in advance!

  • @aviationodyssey1892
    @aviationodyssey1892 ปีที่แล้ว

    Donated! Wow Les it's incredible to see the v2!! So many nice features. How about CIE1931 display with the blackbody graph and the Rec.709, P3, Rec.2020 color spaces in the future versions?

    • @LesLaboratory
      @LesLaboratory  ปีที่แล้ว +1

      Thanks so much for your support! :-)
      Now that would be interesting, though it ill take a little while to wrap my head around the math for that. What would be the intended purpose? Measuring the color temp of light sources?

    • @aviationodyssey1892
      @aviationodyssey1892 ปีที่แล้ว

      @@LesLaboratory In our Video Recording Lab at the University we are teaching students different light sources properties. The CIE1931 in 2D or even better in 3D is our basic graph for understanding the light sources/cameras/HDR monitors wide color gamuts. It would be great to have it as an option on your awesome software - if possible.

    • @LesLaboratory
      @LesLaboratory  ปีที่แล้ว

      ​@@aviationodyssey1892 A couple of people have asked about this, and I am looking into it. It looks like it might take a bit of figuring out, but at this stage I have the general gist of it. It looks like luminosity data is relative rather then absolute, which solves a headache.
      When displaying the data, I assume a simple marker on the Chromacity diagram is what is required? Would it also be useful to print out the x & y coordinates?
      Edit: Although I have the gist of it, by the looks of the academic paper I looked at, it will likely take a while to implement it sensibly, but I am sure it ill be an adventure!

    • @taylorhealy7889
      @taylorhealy7889 ปีที่แล้ว +1

      Hi-- art conservator here! I'd also be interested in this! I am building this spectrometer to identify gas fills in neon/gas-discharge tubes and would use chromaticity measurements (CIE1931) to characterize the color of the neons/gas-discharge tubes and assess for color matches and color shifting! Thanks so much for this incredible work.

    • @LesLaboratory
      @LesLaboratory  ปีที่แล้ว +1

      ​@@taylorhealy7889 You are welcome! It will make it into the next iteration as either part of the existing interface or an add-on. From the requests I get for this software, I might be as well building a modular plug-in system, but we shall see.

  • @IOxOI_art
    @IOxOI_art ปีที่แล้ว

    Awesome build! I need a spectrometer for some time now but always was holded up by cost. I need it to go down to 360nm, is your software going this low?
    Thanks for sharing!

    • @LesLaboratory
      @LesLaboratory  ปีที่แล้ว

      The software will, however the spectroscope shown will not. UV requires silica optics for a transmission spectroscope, so you would need a custom build.

  • @apoorvbhatnagar2219
    @apoorvbhatnagar2219 ปีที่แล้ว

    Its pretty good software, but can you also add a wavelength specific intensity measurement function please?

    • @LesLaboratory
      @LesLaboratory  ปีที่แล้ว

      Eventually. I need to characterise the sensors first, then subtract the response curve from the data.

  • @MountainParameters
    @MountainParameters 6 หลายเดือนก่อน

    If buying a Pi4 for this project, I see there are options for 1,2,4 or 8GB of ram, which made me wonder which is suited best for this project?

  • @stevegulick7656
    @stevegulick7656 10 วันที่ผ่านมา

    HI - looking for spectroscope for NIR 750-950nm for testing IR-led. can this instrument be made to cover that range?

  • @raimahi
    @raimahi ปีที่แล้ว

    Love your work. Unfortunately I needed something that handled the UVA and UVB range (primarily 311nm and 365nm so this build wasn't suitable for me. Great stuff though. Awesome.

    • @LesLaboratory
      @LesLaboratory  ปีที่แล้ว

      It is possible to do it if you de-bayer the camera and use quartz optics for the Spectroscope.

  • @catalinalb1722
    @catalinalb1722 ปีที่แล้ว +1

    Great stuff, I have a spectrometer made from a 3d-printed black enclosure and a usb Webcam with it's IR filter removed. This looks way better! Are there differences in performance between the two?

    • @LesLaboratory
      @LesLaboratory  ปีที่แล้ว +1

      The two versions shown in the video have comparable performance to each other. The entrance slits in each are the same size, and so the miniature one is just as crisp and bright.

  • @weirdsciencetv4999
    @weirdsciencetv4999 ปีที่แล้ว

    Could you do a teardown of the spectroscope tube?

  • @tannerbean3801
    @tannerbean3801 หลายเดือนก่อน

    Do you anticipate there being a relatively easy way to modify the python script for the USB version, to not crash when using a resolution other than 800x600?
    I've been looking for a means to interface with a Thunder Optics SMA-E spectrometer on a raspberry pi (or another SBC, but RPi is most likely to find existing open source support/software) which I can also use with GPIO to stop a Titanium anodization process, inexpensive configurable optical endpointing...
    I was able to view an image from this SMA-E (USB) spectrometer via guvcview but I cannot configure the resolution to 800x600 (It is 640x480), nor can I get pyspectrometer2(USB) to run without crashing - I don't have a picam to verify there are no other issues... but guvcview works with it and python3-opencv IS installed.
    Thanks for any help you can provide

  • @perroloco2395
    @perroloco2395 ปีที่แล้ว

    super great video Les, great respect. I do have a questin. Do you know if the resolution is enough to detect mercury an cadmiun in food. Hav ea great day, Les. Cheers

    • @LesLaboratory
      @LesLaboratory  ปีที่แล้ว

      Thanks! In order to detect heavy metals with a spectroscope, you would need to heat them to incandescence, and there would have to be sufficient quantity to be able to observe the characteristic peaks. For ppm or ppb values that you would likely encounter in food, you would have to consider X-Ray-Fluorescence (XRF). For qualitative detection is is possible to use Phenyl-,2-phenylhydrazide.

  • @fernandohh2438
    @fernandohh2438 6 หลายเดือนก่อน

    A question, what OS are you using? For some reason my raspberry does not detect the camera, I tried with another raspberry or changing the camera, it is not a hardware problem, I think it is a software problem.

  • @HitAndMissLab
    @HitAndMissLab ปีที่แล้ว

    @Les' Lab
    What programming lanquage did you use to write spectrometer software?

    • @LesLaboratory
      @LesLaboratory  ปีที่แล้ว +1

      It's all written in Python, and is available on my GitHub.

  • @das250250
    @das250250 ปีที่แล้ว

    Not sure you have mentioned it but the camera may need to be on for 5-15 minutes before calibration to have all parts at operational temperature and also note the temperature of the room at time of calibration

    • @LesLaboratory
      @LesLaboratory  ปีที่แล้ว

      The optical path is fairly short, so temperature should have no detectable effect on wavelength.Sensor gain is another matter...

  • @JeracVideo
    @JeracVideo 2 หลายเดือนก่อน

    Hi, this is really amazing! Do you think it could be used to determine elements and organic matter in the liquid (water)? Or will more sophisticated equipment be needed? What should be used as a light source, laser, UV or IR? Or more sources asynchronously, e.g. IR for organic, UV for chemical elements...

    • @LesLaboratory
      @LesLaboratory  2 หลายเดือนก่อน

      I think it would take more, work and probably a more sensitive camera. Really for determining composition of materials, you would be looking at Raman spectroscopy or hyperspectral imaging.

  • @perldition
    @perldition ปีที่แล้ว +1

    Woohoo! I'm excited about this video, and thought you might've put the pispectrometer project aside for the time being. Would you be willing to accept pull-requests on this new repository?

    • @LesLaboratory
      @LesLaboratory  ปีที่แล้ว

      Thanks! I have just been pushed for time with life vs projects :-) What are you considering contributing?

  • @GTS00000
    @GTS00000 ปีที่แล้ว +1

    Very good!
    It would be fantastic if you would make your code for chip decap with excimer laser available

    • @RoosieBoomstick
      @RoosieBoomstick ปีที่แล้ว +1

      2nd guy on youtube who said the word excimer xD cheers to you! I also wanna make my students try to build something like this. And we got excimers!

    • @LesLaboratory
      @LesLaboratory  ปีที่แล้ว +1

      Tell you what, I will write it up in the style of an academic paper, (might take a while, but will be worth it!) and fire it on GitHub, why not.

  • @MrYuriMan
    @MrYuriMan ปีที่แล้ว +1

    Is there any way to customize waterfall sample period or to make composite image automatically? Now waterfall shows only about 30 seconds. Would be awesome to be able to make long composite or set e.g. for 2 hour waterfall image. Thanks

    • @LesLaboratory
      @LesLaboratory  ปีที่แล้ว

      It could be done, but I have questions:
      What is the application?
      What would be the required update frequency? (Important, since we have limited RAM on the pi!)

    • @MrYuriMan
      @MrYuriMan ปีที่แล้ว

      @@LesLaboratory To see light spectrum changes during the day for example. There are studies that prove light spectrum is changing throughout the day (of course) and it's highly beneficial to get some of the "specific light into our eyes" in the morning and also in the evening to trigger hormone production that helps us sleep, relax, aware and so on. I would like to set up a little monitor to collect data during the day and compare sunny day to cloudy day, etc. It would be great to have the option to snapshot CSV data on particular times. I would suggest update frequency to be editable. Not sure how it impacts RAM or if it can be stored on the disk to lessen memory consumption.

  • @kenhornback3715
    @kenhornback3715 ปีที่แล้ว

    Not sure if this is the right place for this question but I’ll give it a shot. On your nitrogen laser low-voltage Power supply to Drive the ZVS board to power the flyback transformer what are you using might I ask? I’m finding power supplies that are producing 0 to 30 V at 20 A is that enough or too little? Whatever information you’re willing to share would be appreciated
    i’d like to say that your nitrogen laser build is brilliant. thank you

    • @LesLaboratory
      @LesLaboratory  ปีที่แล้ว

      Thanks! I run the ZVS driver at 12v and 1A, there is no need to go crazy, for this application, you only need 20kV at a few milliamps. I have a ZVS PSU I built that does 30V at 6 or 7 Amps, but it is way to powerful to drive a Nitrogen Laser, all it would do is start a fire! Less is more with stuff like this.

  • @beautifulsolutions-salonko6183
    @beautifulsolutions-salonko6183 3 หลายเดือนก่อน

    What is the operating range of your spectrometer?
    Can it see UVB light from 280 nm?
    What is the lower limit and what is the upper limit?

  • @akithyren
    @akithyren 5 หลายเดือนก่อน

    Amazing work ! Keep playing with spectra and spectrometers - there are amazing things that can be done with them. Just look at all the spectrometers used on space missions and not to mention all the amazing applications they have here on the ground as well. I once saw a hand held spectrometer for geologists that could give you the major chemical makeup of a rock - that device costed several tens of thousands of dollars/euros. But i really think it costs that much mainly because of intelectual property rights and so on, the actual hardware shouldn't be that expressive to build a spectrometer with an equal performance - maybe I'm wrong but that's what I understood. What do you think ? My dream is to be able to built highly sensitive spectrometers like that geologic one that I've described or even better with regular off the shelf components and granted maybe a camera ccd a bit better than average but the rest would be software i guess.
    In your experience, or anyone else reading the comments for that matter, do you guys think it would be possible to build spectrometers capable of identifying specific chemicals ? In my humble opinion spectrometry is the future and at the moment sensitive spectrometers are only available to very very expressive research labs but just imagine how much innovation would be enabled by enabling people like you here to build your own very sensitive spectrometers... Imagine having a NASA style curiosity Rover quality spectrometer available to you.. The possibilities would be endless. I can't wait for these kinds of open source hardware information to improve and to become more widely available.
    Thank you for your work and for documenting and sharing what you're doing here on TH-cam. All the best to you !

    • @LesLaboratory
      @LesLaboratory  4 หลายเดือนก่อน

      Thanks! I think what you are describing there is a Raman spectrometer if it can identify samples. It is something I intend to look into if I get time. The software is where the complexity will be especially if you want to autodetect, though for Raman setups the optics are fairly critical as well.

  • @joepardue5044
    @joepardue5044 6 หลายเดือนก่อน

    Les, this is an excellent series and I'm happy I found it. I haven't read all the comments, but I thought I'd ask about turning the spectrum to a diagonal and taking the pixel samples from that diagonal.
    For a 5MP camera you should get:
    3240 diagonal of 2592 x 1944
    3240-2592 = 648
    648/2592 = .25 so 25% more pixels
    I will be reviewing your code over the next several days , but I was wondering if you had thought about doing this to improve resolution and/or have any comments about the feasibility? Thanks!

    • @LesLaboratory
      @LesLaboratory  5 หลายเดือนก่อน +1

      So, you could do this, but... The resolution of the camera is already very high at 2592 horizontal pixels. Of these the software scales down to 800px, and then processes that data. The reason is, 1/3 the data gives a >3x speed up in processing, so we can get a live view. Secondly, but more importantly the spectral detail that can be resolved depends on the optics more then the camera (although sensor size plays an important part). It is not likely you could split and resolve the Sodium D lines for example no matter how many pixels you try and throw at it, so we would just be processing wasted data.
      This could all be fixed by designing a better physical package with and adjustable slit, precision ruled gratings, coated optics and a larger sensor. The problem then is that the cost skyrockets.

    • @joepardue5044
      @joepardue5044 5 หลายเดือนก่อน

      Well that all makes sense. I'm trying to implement this on a Raspberry Pi 5 and have found that the latest and greatest isn't so great. I can't get the camera to work on it and I'm seeing all kinds of Google stuff about problems with both the camera and underlying graphical system compatibility with older stuff. Very frustrating. Today I will retreat to a RPi 4 and if I can't get that to work I'm going back to an RPi 3. I really like the work you've done and I'll report back on what I get working. Thank you so much for this project.
      @@LesLaboratory

    • @joepardue5044
      @joepardue5044 5 หลายเดือนก่อน

      Just to help someone else who might have problems with the RPi 5 as I described earlier: I retreated to the RPi4, same camera, same tests AND IT JUST WORKS! While this does not preclude the inference that I've done something stupid, it does point a stronger light on the RPi5 as having camera problems.

  • @ninjaroo882
    @ninjaroo882 ปีที่แล้ว +1

    Have you found any IR filter free camera modules?

    • @LesLaboratory
      @LesLaboratory  ปีที่แล้ว

      There are NoIR cameras available from the Pi Resellers, For cameras with an M12 mount and No IR filter, just look for the Picam night vision knockoffs.

  • @Mr1Spring
    @Mr1Spring ปีที่แล้ว +1

    Very nicely done! I'm interested in spectra from 340nm and upwards. Is that possible with the current setup? Or does one need different hardware?

    • @LesLaboratory
      @LesLaboratory  ปีที่แล้ว

      Thanks! I have not tried this, and all I can say is, its a maybe, but unlikely.
      The problem is that regular glass will absorb significant quantities of UV light, and many glass types are quite opaque at these wavelengths.
      You would need to construct a spectrometer head with either Silica optics, or go for a reflection grating setup instead.

  • @user-uq9eu5pf5h
    @user-uq9eu5pf5h ปีที่แล้ว

    Hello. I have watched your video about the Raspberry Pi spectrometer. I would like to know if what is the unit of intensity that your software is displaying. Thank you.

    • @LesLaboratory
      @LesLaboratory  ปีที่แล้ว

      It is arbitrary between 0 and 255.

    • @user-uq9eu5pf5h
      @user-uq9eu5pf5h ปีที่แล้ว

      @@LesLaboratory which will be more proper? W/m² or lm/m²?

  • @chewbaccabg
    @chewbaccabg ปีที่แล้ว +1

    Is this capable of outputting CRI, LUX & correlated color temperature ?

    • @LesLaboratory
      @LesLaboratory  ปีที่แล้ว +1

      Not yet! It is on my todo list, as there seems to be a fair amount of interest in this. I am thinking of implementing CIE-1931.

    • @chewbaccabg
      @chewbaccabg ปีที่แล้ว

      @@LesLaboratory I looked into sensors capable of measuring CRI LUX, while they are cheap, the PAR (which is by far one of the most important) is quite expensive. The sensors start at 150$.

  • @038_ece_rizvihussain6
    @038_ece_rizvihussain6 ปีที่แล้ว

    Can we have infrared spectroscopy for fruit quality

  • @fractal5764
    @fractal5764 ปีที่แล้ว

    How well did the OV9281 end up working?

    • @LesLaboratory
      @LesLaboratory  ปีที่แล้ว

      I found the Arducam problematic in terms of drivers etc, that said, that was back on Buster, I have not tried it on Bullseye. If i get time over the holidays, I will spin up a now install and see ow it measures up!

  • @whatthefunction9140
    @whatthefunction9140 ปีที่แล้ว +1

    Is it possible to get this to work in the ir range?

    • @LesLaboratory
      @LesLaboratory  ปีที่แล้ว +1

      The software is capable, but the spectroscope itself is designed for visible light only. With a custom hardware build, but UV an IR imaging are possible.

  • @PlasmaFreak
    @PlasmaFreak 20 วันที่ผ่านมา

    Hi Les, I am part of a team working on creating a novel toroidal plasma accelerator. We are interested in using this setup to examine the black body radiation of the plasma for our study. However, the spectroscope you are using is out of our budget. Do you have any cheaper recommendations for us? I was looking at either using a "pocket jewelers spectroscope" or a 600 line Diffraction Grating sheet which could be made into a homemade scope with a 3D printed housing. I look forward to any ideas you may have!

    • @LesLaboratory
      @LesLaboratory  20 วันที่ผ่านมา +1

      If the scope you are using gives a usable image it should work ok, but I have never used one of the cheap ones. I used the patton hawksley scope, because I had one on hand. There is no reason why you can't build your own. With a self build you can get into the IR. If you can afford (or scrounge) the optics, the UV is not out of the question either.

  • @fonecelautorizadatim882
    @fonecelautorizadatim882 8 หลายเดือนก่อน

    Is it possible to run diy spectrometer on the Raspberry pi Desktop system with a usb camera?

    • @LesLaboratory
      @LesLaboratory  8 หลายเดือนก่อน +1

      Yes. This is documented in the GitHub repo. Most cameras work, so long as the native resolution is at least 800px wide.

  • @chanheosican6636
    @chanheosican6636 11 หลายเดือนก่อน

    Got 70% as a thesis.

  • @gil80
    @gil80 4 หลายเดือนก่อน

    Can this be used to calibrate monitors?

    • @LesLaboratory
      @LesLaboratory  4 หลายเดือนก่อน

      Probably with modification, though it has caveats I guess. LED monitors would give a different spectrum than CCFL monitors, regardless of the test image being used for calibration.

  • @galaxystudio3740
    @galaxystudio3740 ปีที่แล้ว +1

    Is there any free software like that for a windows?

    • @LesLaboratory
      @LesLaboratory  ปีที่แล้ว +1

      I built the software in Python, so if Python is installed, it will run. I have not tried this on Windows however.

  • @mikeharmon4901
    @mikeharmon4901 4 หลายเดือนก่อน

    Hello, I am pretty dumb. I downloaded python to PC. I downloaded your software. I can not get it to turn on. I can get the python screen to come up [ the one that appears to allow commands to be entered] and the html page for python. Somehow I am missing something. Maybe put your program folder in python folder? I am wanting to use pc for a while before I get the raspberry.

  • @willgilliam9053
    @willgilliam9053 ปีที่แล้ว +1

    possible to attach this to a telescope? take a look at some bright stars, maybe the moon?

    • @LesLaboratory
      @LesLaboratory  ปีที่แล้ว

      For the moon, it would probably work, but for stars, well they are already a point source for all intents and purposes, so a different physical setup would be required, that would dispense with the slit.

  • @thenimbo2
    @thenimbo2 ปีที่แล้ว

    Have you tried radiometry with this guy?

    • @LesLaboratory
      @LesLaboratory  ปีที่แล้ว

      No. It is possible though, but you need to be aware the spectral response of PiCameras is very nonlinear. This can be fixed by de-bayering the camera (see my other videos) and it is potentially fixable in software.

  • @JosephMusya-fj4bo
    @JosephMusya-fj4bo 8 หลายเดือนก่อน

    Hello, if I don't have a raspberry pi, can I use my pc with a USB Webcam?

    • @LesLaboratory
      @LesLaboratory  8 หลายเดือนก่อน

      Yes. It was developed on a PC. Since it runs on Python, so long as dependencies are met, it should be ok.

  • @danielgawedzki3425
    @danielgawedzki3425 5 หลายเดือนก่อน

    Do you sell this hardware yourself?

    • @LesLaboratory
      @LesLaboratory  4 หลายเดือนก่อน

      No, all the stuff is off the shelf hardware and so is already widely available.

  • @chanheosican6636
    @chanheosican6636 11 หลายเดือนก่อน

    Thesis in photonics 15 years ago.

  • @crohkorthreetoes3821
    @crohkorthreetoes3821 15 วันที่ผ่านมา

    It's a shame that all the important stuff (for my application) takes place between 150nm-350nm