Welcome
Username or Email:

Password:


Missing Code




[ ]
[ ]
Online
  • Guests: 31
  • Members: 0
  • Newest Member: omjtest
  • Most ever online: 396
    Guests: 396, Members: 0 on 12 Jan : 12:51
Members Birthdays:
No birthdays today

Next birthdays
05/27 Daniel Davis (53)
05/29 Zonalklism (33)
05/29 Dr Hankenstein (67)
Contact
If you need assistance, please send an email to forum at 4hv dot org. To ensure your email is not marked as spam, please include the phrase "4hv help" in the subject line. You can also find assistance via IRC, at irc.shadowworld.net, room #hvcomm.
Support 4hv.org!
Donate:
4hv.org is hosted on a dedicated server. Unfortunately, this server costs and we rely on the help of site members to keep 4hv.org running. Please consider donating. We will place your name on the thanks list and you'll be helping to keep 4hv.org alive and free for everyone. Members whose names appear in red bold have donated recently. Green bold denotes those who have recently donated to keep the server carbon neutral.


Special Thanks To:
  • Aaron Holmes
  • Aaron Wheeler
  • Adam Horden
  • Alan Scrimgeour
  • Andre
  • Andrew Haynes
  • Anonymous000
  • asabase
  • Austin Weil
  • barney
  • Barry
  • Bert Hickman
  • Bill Kukowski
  • Blitzorn
  • Brandon Paradelas
  • Bruce Bowling
  • BubeeMike
  • Byong Park
  • Cesiumsponge
  • Chris F.
  • Chris Hooper
  • Corey Worthington
  • Derek Woodroffe
  • Dalus
  • Dan Strother
  • Daniel Davis
  • Daniel Uhrenholt
  • datasheetarchive
  • Dave Billington
  • Dave Marshall
  • David F.
  • Dennis Rogers
  • drelectrix
  • Dr. John Gudenas
  • Dr. Spark
  • E.TexasTesla
  • eastvoltresearch
  • Eirik Taylor
  • Erik Dyakov
  • Erlend^SE
  • Finn Hammer
  • Firebug24k
  • GalliumMan
  • Gary Peterson
  • George Slade
  • GhostNull
  • Gordon Mcknight
  • Graham Armitage
  • Grant
  • GreySoul
  • Henry H
  • IamSmooth
  • In memory of Leo Powning
  • Jacob Cash
  • James Howells
  • James Pawson
  • Jeff Greenfield
  • Jeff Thomas
  • Jesse Frost
  • Jim Mitchell
  • jlr134
  • Joe Mastroianni
  • John Forcina
  • John Oberg
  • John Willcutt
  • Jon Newcomb
  • klugesmith
  • Leslie Wright
  • Lutz Hoffman
  • Mads Barnkob
  • Martin King
  • Mats Karlsson
  • Matt Gibson
  • Matthew Guidry
  • mbd
  • Michael D'Angelo
  • Mikkel
  • mileswaldron
  • mister_rf
  • Neil Foster
  • Nick de Smith
  • Nick Soroka
  • nicklenorp
  • Nik
  • Norman Stanley
  • Patrick Coleman
  • Paul Brodie
  • Paul Jordan
  • Paul Montgomery
  • Ped
  • Peter Krogen
  • Peter Terren
  • PhilGood
  • Richard Feldman
  • Robert Bush
  • Royce Bailey
  • Scott Fusare
  • Scott Newman
  • smiffy
  • Stella
  • Steven Busic
  • Steve Conner
  • Steve Jones
  • Steve Ward
  • Sulaiman
  • Thomas Coyle
  • Thomas A. Wallace
  • Thomas W
  • Timo
  • Torch
  • Ulf Jonsson
  • vasil
  • Vaxian
  • vladi mazzilli
  • wastehl
  • Weston
  • William Kim
  • William N.
  • William Stehl
  • Wesley Venis
The aforementioned have contributed financially to the continuing triumph of 4hv.org. They are deserving of my most heartfelt thanks.
Forums
4hv.org :: Forums :: Electromagnetic Radiation
« Previous topic | Next topic »   

Optics and laser beam width, need help please.

first  3 4 5 6 
Move Thread LAN_403
Pinky's Brain
Fri Nov 30 2012, 09:56PM
Pinky's Brain Registered Member #2901 Joined: Thu Jun 03 2010, 01:25PM
Location:
Posts: 837
Patrick wrote ...

yes, agreed. but near objects dont seem to be a problem. far objects with beam divergence is.
AFAICS the decrease in magnification with distance makes that irrelevant.
Back to top
Patrick
Fri Nov 30 2012, 10:23PM
Patrick Registered Member #2431 Joined: Tue Oct 13 2009, 09:47PM
Location: Chico, CA. USA
Posts: 5639
Pinky's Brain wrote ...

Patrick wrote ...

yes, agreed. but near objects dont seem to be a problem. far objects with beam divergence is.
AFAICS the decrease in magnification with distance makes that irrelevant.
I was trying to confirm this, but im worried i might have to light up 20-40 pixels, of just 497 useful pixels. im not sure what 2spoons thinks is a "good" amount of ir blur, versus what would be too much, i was hoping for 3-5 pixels being lit at a time...


Back to top
2Spoons
Sat Dec 01 2012, 12:22AM
2Spoons Registered Member #2939 Joined: Fri Jun 25 2010, 04:25AM
Location:
Posts: 615
5 pixels is enough to get over the quantization jumps you would other wise get.
Your method of finding beam mid point works, but will be prone to jumps. A better method is to use a weighted average technique, so brighter pixels are weighted heavier than dim ones.
Are you using ambient light cancellation?
Back to top
Patrick
Sat Dec 01 2012, 01:06AM
Patrick Registered Member #2431 Joined: Tue Oct 13 2009, 09:47PM
Location: Chico, CA. USA
Posts: 5639
2Spoons wrote ...

5 pixels is enough to get over the quantization jumps you would other wise get.
Your method of finding beam mid point works, but will be prone to jumps. A better method is to use a weighted average technique, so brighter pixels are weighted heavier than dim ones.
Are you using ambient light cancellation?
Oooooo! glad i asked. i guess i will figure out what ambient light cancellation is... and as long as the DLIS-2k is good at analog, then yeah ill look at the btighter pixels, can you elaborate on the math for that?
Back to top
2Spoons
Sat Dec 01 2012, 06:42PM
2Spoons Registered Member #2939 Joined: Fri Jun 25 2010, 04:25AM
Location:
Posts: 615
if each pixel gets a number in the array (0 - 2047), and the pixel value is how bright it is then
weighted average: sum(pixel value x pixel number) / (sum(pixel number)

To make this calc faster you can use thresholding to find the start and end of the laser image, and go a few extra pixels either side.

An 8-bit ADC is plenty of resolution - more than that and you are really only getting noise bits.

Ambient subtraction: capture a frame with the laser off, and store it. capture another frame with the laser on and subtract the first frame from it . This gets rid of everything in the image except the laser line, making the line much easier to find in software. Its not a perfect technique, motion and time delays between frames can reduce its effectiveness, as can flickering light sources (halogen lamps are really bad: lots of IR modulated at 2x mains).
Ideally you want a very bright laser, for short shutter times, and a fast ADC to speed up capture and get the two frames as close in time as possible.

I know you've been looking at using a simple lens for imaging, but it might be worth considering the small lenses used for CCTV and webcams. These come in a large range of focal lengths, have a handy fine threaded (12mm) barrel for mounting and focusing, and are ridiculously cheap.
Back to top
Patrick
Sat Dec 01 2012, 08:48PM
Patrick Registered Member #2431 Joined: Tue Oct 13 2009, 09:47PM
Location: Chico, CA. USA
Posts: 5639
2Spoons wrote ...

if each pixel gets a number in the array (0 - 2047), and the pixel value is how bright it is then
weighted average: sum(pixel value x pixel number) / (sum(pixel number)
ill code this for sure...

2Spoons wrote ...

To make this calc faster you can use thresholding to find the start and end of the laser image, and go a few extra pixels either side.
yep i was going to do this 1 or so uS before the main measurement.

2Spoons wrote ...

An 8-bit ADC is plenty of resolution - more than that and you are really only getting noise bits.
Agreed.

2Spoons wrote ...

Ambient subtraction: capture a frame with the laser off, and store it. capture another frame with the laser on and subtract the first frame from it . This gets rid of everything in the image except the laser line, making the line much easier to find in software. Its not a perfect technique, motion and time delays between frames can reduce its effectiveness, as can flickering light sources (halogen lamps are really bad: lots of IR modulated at 2x mains).
Ideally you want a very bright laser, for short shutter times, and a fast ADC to speed up capture and get the two frames as close in time as possible.
yes ill subtract a first initial frame from the second actual frame, then use a minimum value for lit pixel count, like 50% brightness is on(and goes to the averaging algorithm), less is a dark pixel. im thinking a fast sample of 3uS-500nS time interval will be fast enough to avoid flicker noise for unwanted sources. but i dont think a 9$ IR laser line can be modulated that fast.

2Spoons wrote ...

I know you've been looking at using a simple lens for imaging, but it might be worth considering the small lenses used for CCTV and webcams. These come in a large range of focal lengths, have a handy fine threaded (12mm) barrel for mounting and focusing, and are ridiculously cheap.
Ill look at this then, any sources? EBAY is where ill start.
Back to top
Pinky's Brain
Sat Dec 01 2012, 10:25PM
Pinky's Brain Registered Member #2901 Joined: Thu Jun 03 2010, 01:25PM
Location:
Posts: 837
I still think the 50mm FL lens with it's centre 50mm away from the laser would be a good place to start (covers around 10 mm of the sensor). It has the advantage of nice round numbers.

This is with the setup carbon rod linked to with the laser perpendicular to the plane of the lens/sensor, not with the laser at an angle like in the original post.

PS. the diode itself in that 9$ laser almost certainly can be modulated with 500 ns pulsewidth, you'll have to rip out the existing electronics though ... I'm debating myself what's the easiest/best/cheapest way to pulse a laser diode is, there are reasonably priced specialist ICs, you could use an opamp voltage to current converter, but I'm leaning towards having an inductor with constant current and simply paralleling the diode with a RF BJT/MOSFET, turning it off to push current through the diode.
Back to top
Patrick
Sat Dec 01 2012, 11:03PM
Patrick Registered Member #2431 Joined: Tue Oct 13 2009, 09:47PM
Location: Chico, CA. USA
Posts: 5639

PS. the diode itself in that 9$ laser almost certainly can be modulated with 500 ns pulsewidth,
im worried about getting trapped into makeing a laser diode driver, as ive been told laser diodes are easy to kill. and drviers are hard to make.

Link2 an diode maker

Link2 line lasers, but since there not from china, therye going to cost $
Back to top
Pinky's Brain
Sun Dec 02 2012, 01:16AM
Pinky's Brain Registered Member #2901 Joined: Thu Jun 03 2010, 01:25PM
Location:
Posts: 837
If you put a lenticular lens in front of a collimated laser you get a line.

You can get OSRAM pulse laser diodes with integrated capacitors and MOSFET for ~50$ unfortunately turning that into a decent line will be quite hard.

Link2
Back to top
Patrick
Sun Dec 02 2012, 03:39AM
Patrick Registered Member #2431 Joined: Tue Oct 13 2009, 09:47PM
Location: Chico, CA. USA
Posts: 5639
Pinky's Brain wrote ...

...unfortunately turning that into a decent line will be quite hard...
why? is it the package? is everything inside that plastic case? so we just pulse power to its pins and it works at nS speed? becuase it seems its the driver most people build wrong and kill there diode lasers.
Back to top
first  3 4 5 6 

Moderator(s): Chris Russell, Noelle, Alex, Tesladownunder, Dave Marshall, Dave Billington, Bjørn, Steve Conner, Wolfram, Kizmo, Mads Barnkob

Go to:

Powered by e107 Forum System
 
Legal Information
This site is powered by e107, which is released under the GNU GPL License. All work on this site, except where otherwise noted, is licensed under a Creative Commons Attribution-ShareAlike 2.5 License. By submitting any information to this site, you agree that anything submitted will be so licensed. Please read our Disclaimer and Policies page for information on your rights and responsibilities regarding this site.