Optics question: I need parallel illumination for a Contact Image Sensor (CIS)

In summary, the conversation discusses the use of a CIS (Contact Image Sensor) from a document scanner to detect the position of an object as it passes the scanner bar. The goal is to find the X,Y position of the object as it passes the two CIS scanner bars. One suggestion is to use a line laser or row of LEDs to create a shadow of the object, which can then be detected by the CIS. However, this method may not work if the object is too close to the light source or the CIS. Another suggestion is to use a second CIS to determine the Y position of the object and then calculate its X and Y position. Various methods using lenses and light sources are discussed, but it is noted that a large lens is
  • #1
rich333
7
0
I am experimenting with a CIS from a document scanner (basically a row of photo sensors).

I want to detect the position of an object as it passes the scanner bar. Initially in one dimension - x along the CIS.

If the object is always a set distance from the light bar, I can provide illumination with a line laser or row of leds and the object will cast a shadow as it passes through the light. The position of the object along the light bar can be detected.

However if the object can be close to the light source or close to the CIS, it's shadow will be cast in different places.

In effect I need a row of light beams such that the object shadow is cast in the correct x direction, regardless of it's y position. Is that even possible?

If I add a second CIS and then find the objects Y position, I guess I can calculate it's X and Y position, even with light sources that are effectively single point?

The ultimate goal is to find the X,Y position of the object as it passes the two CIS scanner bars.

Any ideas most welcome!
laser.jpg


(Simple sketch attached)
 

Attachments

  • laser.jpg
    laser.jpg
    14.4 KB · Views: 851
Science news on Phys.org
  • #2
rich333 said:
In effect I need a row of light beams such that the object shadow is cast in the correct x direction, regardless of it's y position. Is that even possible?

Yes, but it's not easy unless your setup is fairly small. Making a collimated beam of light requires a lens or mirror at least as large as the beam so you'll have to have lenses approximately the diameter of your sensor.

rich333 said:
If I add a second CIS and then find the objects Y position, I guess I can calculate it's X and Y position, even with light sources that are effectively single point?

That seems like a good option, as it would avoid adding large lenses or other complications to your setup. Just two light sources and two sensors.
 
  • #3
I'll have a think on the situation with two sensors at right angles to each other...

I think what I was looking for was some sort of optical device that would create a series of parallel laser beams from one laser source, that doesn't cost a fortune! A line laser certainly doesn't do this...

The sensor has approximately 300 holes along it's length (9 inches), the resolution is actually closer to 3000 pixels, so I assume each hole has a lens in which covers 10 photodiodes.
 
  • #4
rich333 said:
I think what I was looking for was some sort of optical device that would create a series of parallel laser beams from one laser source, that doesn't cost a fortune! A line laser certainly doesn't do this...

The simplest setup would be a pinhole light source placed at the focal point of a lens. This would create a collimated beam of light, however, you would need a lens at least as wide as the beam diameter, and a 9-inch diameter lens is probably not what you want. There are various ways to improve this basic method, but none remove the need for a large lens.

I'm sure there are a thousand ways to figure out the position of your object using your linear sensor array, but I'm afraid I can't be of much help as I'm only a student at the moment.
 
  • #5
Drakkith said:
The simplest setup would be a pinhole light source placed at the focal point of a lens. This would create a collimated beam of light, however, you would need a lens at least as wide as the beam diameter, and a 9-inch diameter lens is probably not what you want. There are various ways to improve this basic method, but none remove the need for a large lens.

I'm sure there are a thousand ways to figure out the position of your object using your linear sensor array, but I'm afraid I can't be of much help as I'm only a student at the moment.

Thanks for your prompt reply to my initial post! I'm going off to have a think and doodle!
 
  • #6
rich333 said:
I am experimenting with a CIS from a document scanner (basically a row of photo sensors).

I want to detect the position of an object as it passes the scanner bar. Initially in one dimension - x along the CIS.

If the object is always a set distance from the light bar, I can provide illumination with a line laser or row of leds and the object will cast a shadow as it passes through the light. The position of the object along the light bar can be detected.

However if the object can be close to the light source or close to the CIS, it's shadow will be cast in different places.

In effect I need a row of light beams such that the object shadow is cast in the correct x direction, regardless of it's y position. Is that even possible?

If I add a second CIS and then find the objects Y position, I guess I can calculate it's X and Y position, even with light sources that are effectively single point?

The ultimate goal is to find the X,Y position of the object as it passes the two CIS scanner bars.

Any ideas most welcome!View attachment 219994

(Simple sketch attached)
Welcome to the PF. :smile:

It seems like you are using the CIS for something that it is not designed for, and is not optimum for in this application. Is this just a fun project for you to try to see how well you can get a DIY experiment to work? Or is this for an actual product design?

Assuming it's just for a personal project to challenge yourself and learn, can you post the datasheet or specs for the CIS modules you are wanting to use? What is their dynamic range for light sensing at each pixel? Do the CIS modules include the multiplexed digitization of the light levels of each pixel, or do you need to do the shifting of analog charges and do the digitizing in your external circuit?

What accuracy do you need the (x,y) position of the object accurate to? What are the size ranges of the obscuring object compared to the pixel spacing of the CIS modules? What are the ranges of (x,y) values with respect to the position of the CIS module that you want to detect for that object?

Depending on the answers to the above questions, it should be possible to do the (x,y) position sensing with one CIS module and one laser line scanner. Can you take a guess at what I have in mind?
 
  • #7
berkeman said:
Welcome to the PF. :smile:

It seems like you are using the CIS for something that it is not designed for, and is not optimum for in this application. Is this just a fun project for you to try to see how well you can get a DIY experiment to work? Or is this for an actual product design?

Assuming it's just for a personal project to challenge yourself and learn, can you post the datasheet or specs for the CIS modules you are wanting to use? What is their dynamic range for light sensing at each pixel? Do the CIS modules include the multiplexed digitization of the light levels of each pixel, or do you need to do the shifting of analog charges and do the digitizing in your external circuit?

What accuracy do you need the (x,y) position of the object accurate to? What are the size ranges of the obscuring object compared to the pixel spacing of the CIS modules? What are the ranges of (x,y) values with respect to the position of the CIS module that you want to detect for that object?

Depending on the answers to the above questions, it should be possible to do the (x,y) position sensing with one CIS module and one laser line scanner. Can you take a guess at what I have in mind?

Ha! Yes a CIS is designed specifically for flatbed scanners and scanning things that are flat and close to the scanner bar. (i.e. a document).

I am using one as a DIY experiment mainly because I was able to buy a complete working printer/scanner combo for £1...

I have no idea what the spec of the CIS is, all I can do is scope it while it's working. Its from an HP scanner.

With no illumination leds on, you can illuminate from directly overhead (or sideways as per my sketch) with a line laser. On the scope you see a full set of set pixels. A shadow cast by a screwdriver shaft is clearly shown on the scope trace.

The CIS works in monochrome. It is just illuminated by different colours with the build in led light bar, which I'm not using. Each pixel is clocked out on one wire serially. It's not a digital output though. The pixel level varies according to illumination level. I will read the CIS either with an AtoD or more likely just run it through a comparitor and get a digital stream since I don't need to know intensity.

A low power laser line is enough to fully 'set' the pixels, i.e. max level. (which is actually a low voltage level output).
 
  • #8
rich333 said:
With no illumination leds on, you can illuminate from directly overhead (or sideways as per my sketch) with a line laser. On the scope you see a full set of set pixels. A shadow cast by a screwdriver shaft is clearly shown on the scope trace.
rich333 said:
Each pixel is clocked out on one wire serially. It's not a digital output though. The pixel level varies according to illumination level. I will read the CIS either with an AtoD or more likely just run it through a comparitor and get a digital stream since I don't need to know intensity.
Hint, hint... :smile:
 
  • #9
Also, you didn't say if the size of the object that you want to detect is variable, and by how much...
 
  • #10
berkeman said:
Also, you didn't say if the size of the object that you want to detect is variable, and by how much...
It's 2am here, so I am just about awake!

The object is always the same size. 5mm sphere.
 
  • #11
rich333 said:
It's 2am here, so I am just about awake!

The object is always the same size. 5mm sphere.
Great! Then when you wake up tomorrow morning, think about my hints and how you can use them to make this work. Nighty-night! :smile:
 
  • #12
berkeman said:
Great! Then when you wake up tomorrow morning, think about my hints and how you can use them to make this work. Nighty-night! :smile:
My only thought was that if the object is closer to the CIS, it's shadow will be narrower. The shadow widens the closer it is to the light source.

The main issue with using that is that the shadow cast by a sphere passing will not be constant. I'd have to be sure to sample a few times as it passes to find width at the widest part.
 
  • #13
Yes, the width of the shadow (measured in an analog fashion) was what I had in mind. But overnight I realized that this will work a lot better if you use two line sources (time multiplexed) with the one CIS. Picture a square area with the CIS as the top line, and the two laser line sources at the bottom left and right corners. That will give you better (x,y) position information than you can get with just one source.
 
  • #14
berkeman said:
Yes, the width of the shadow (measured in an analog fashion) was what I had in mind. But overnight I realized that this will work a lot better if you use two line sources (time multiplexed) with the one CIS. Picture a square area with the CIS as the top line, and the two laser line sources at the bottom left and right corners. That will give you better (x,y) position information than you can get with just one source.
Interesting idea! Line lasers are very cheap.

The problem will be duration. I haven't said what speed the object will be traveling at, but suffice to say I think I will only get time to get one scan of the CIS as it passes. (Sorry, should have mentioned that)

I have seen that you can buy linear collimator lenses for LED strip lights, not sure if this would provide what I want...
 
  • #15
rich333 said:
Interesting idea! Line lasers are very cheap.

The problem will be duration. I haven't said what speed the object will be traveling at, but suffice to say I think I will only get time to get one scan of the CIS as it passes. (Sorry, should have mentioned that)

I have seen that you can buy linear collimator lenses for LED strip lights, not sure if this would provide what I want...
you might use two scanner bars for x and y coordinates. Or one with mirrors.
 
  • #16
berkeman said:
But overnight I realized that this will work a lot better if you use two line sources (time multiplexed) with the one CIS.
Time-multiplexed I take it means pulsing the two sources out of phase? Why not use two sources dimmed down so that one source produces 50% activation? Then you can identify fully activated, half activated, or not activated and do a bit of geometry.
 
  • #17
Actually, @Ibix brings up an interesting point...
rich333 said:
I am experimenting with a CIS from a document scanner (basically a row of photo sensors).
@rich333 -- Is this a 3-color CIS? It it's from a document scanner, it likely is. If so, can you find red and green laser line scanners?
 

Related to Optics question: I need parallel illumination for a Contact Image Sensor (CIS)

1. How does parallel illumination work for a Contact Image Sensor?

Parallel illumination for a Contact Image Sensor (CIS) involves using a light source that provides uniform and consistent lighting across the entire surface of the sensor. This helps to ensure that the images captured by the sensor are clear and accurate.

2. What are the benefits of using parallel illumination for a CIS?

The main benefit of using parallel illumination for a CIS is that it helps to reduce shadows and glare on the sensor, leading to more accurate and high-quality images. It also allows for faster scanning and improves the overall efficiency of the sensor.

3. What type of light source is typically used for parallel illumination in a CIS?

A common type of light source used for parallel illumination in a CIS is an LED (light-emitting diode) due to its low power consumption, long lifespan, and ability to provide consistent lighting. However, other types of light sources, such as fluorescent or halogen lights, can also be used.

4. Are there any challenges associated with implementing parallel illumination for a CIS?

Yes, there can be challenges in implementing parallel illumination for a CIS, such as ensuring that the light source is positioned at the correct angle and distance from the sensor to provide even lighting. Additionally, the type and intensity of the light source may need to be adjusted for different scanning environments.

5. How does parallel illumination compare to other types of illumination for a CIS?

Compared to other types of illumination, such as diffuse or directional lighting, parallel illumination provides more consistent and even lighting, resulting in better image quality. It also allows for faster scanning and is less prone to producing shadows and glare on the sensor.

Similar threads

Replies
1
Views
1K
Replies
8
Views
1K
Replies
3
Views
583
Replies
1
Views
1K
Replies
4
Views
1K
Replies
7
Views
1K
  • Computing and Technology
Replies
4
Views
1K
Replies
7
Views
1K
Replies
1
Views
1K
Back
Top