Skip to content Skip to navigation

Connexions

You are here: Home » Content » Projector Setup and Issues

Navigation

Recently Viewed

This feature requires Javascript to be enabled.
 

Projector Setup and Issues

Module by: J. Ryan Stinnett, Jennifer Gillenwater. E-mail the authors

To implement a compressive sensing camera, the most vital element is the DMD. There are two practical alternatives for incorporating a DMD into a prototype:

  • Use the DMD that is built into a standard DLP projector, or
  • Buy a TI Discovery Board kit.
We chose to investigate the projector option first, as it offers a compact structure with a lamp and set of lenses already built in. The following paragraphs and images walk through the work we did to attempt to adapt the projector into an NIR camera.

The overall system we worked with consisted of the projector and the surrounding components that can be seen in the figure below. The basic flow of control in this system is as follows:

  1. Laptop sends random frames to the projector
  2. Projector light, modulated by the frames on the DMD, is projected on to the target object
  3. Light reflects off the target back towards the projector
  4. Zoom lens beside the projector captures the reflected light and focuses it down onto a photodiode
  5. Photodiode output goes through a preamplifier and filter
  6. Filter output feeds into a DAQ
  7. DAQ output is sent back to the laptop for reconstruction into the target image

Figure 1: Laptop, projector, zoom lens, and DAQ
Overall System
Overall System (total_system.jpg)

The image below shows the zoom lens that we used to focus reflected light onto our photodiode. This photodiode has both an NIR detector and a visible detector. Both have a 1.5mm diameter active area, onto which the zoom lens needs to focus all the light it takes in. We had great difficulty getting this focus correct. Ultimately, we ended up focusing it by connecting the output of the photodiode to an oscilloscope, then turning the fine and coarse focus knobs until the maximum signal was achieved. Even with careful focusing, we only obtained max measurements of about 100mV for the NIR signal, when all mirrors of the DMD were turned to their "on" position.

Figure 2: 10x zoom lens with photodiode mounted at focal point
Zoom Lens
Zoom Lens (zoom_lens.jpg)

To combat the zoom lens focusing difficulties and try to achieve a greater signal at the photodiode, we investigated different lamp alternatives. The standard projector lamp we originally worked with, pictured below, has a power of 200W. Much of its output is not in the NIR range, however. Thus, we found a 100W bulb with its peak emittance at 1 micron, and ordered it. However, replacing the projector bulb with this new bulb proved very cumbersome. The new bulb required a different power supply (12V, 8A, DC) than the projector bulb, so we had to buy a separate power source for it. Additionally, the projector has a safety feature which requires that something be attached to its lamp socket, or else it will not run. So, we had to make a set of connectors for the original projector lamp so that we could remove the lamp from its place inside the projector. After all of this, though, in the end we found it prohibitively difficult to mount the new bulb in the projector, as we could find no good way to secure it in place.

Figure 3: Standard mercury lamp from an Optoma projector
Projector Lamp
Projector Lamp (proj_lamp.jpg)

In addition to difficulties with the light source and focusing lens, we also had trouble with speeding up image acquisition time. We originally were sending frames to the projector from a standard MATLAB script. This was very slow. Using the Psychtoolbox plugin allowed us to take advantage of frame buffering [3]. This sped up the rate to between 15 and 50 frames per second (fps). The frames shown in the video below change at a rate in this range.

Figure 4: Illustration of random frames displayed as MATLAB movie
Random Frames

To further decrease capture time we tried exploring tighter control of the projector's image display capabilities. Although the video frame rate is 60 Hz, which is the maximum rate at which the projector can receive images, the mirrors on the projector's digital micromirror array (DMD) flip at a rate of at least 1000 Hz. Possibly, the mirror flip rate may even be as fast as 9800 Hz [4]. So, we wanted to use every mirror flip as a random frame for our CS measurements, rather than just using each video frame to take one measurement. The result would be such that for each video frame, we would obtain between 16 and 164 measurements. Ultimately, if for a 1-megapixel image we required 100,000 frames, then this could give an image capture time of 10 to 50 seconds.

In order to exploit each individual mirror flip, we needed to understand pulse width modulation (PWM). This is the scheme that the projector uses to determine mirror flipping. Under normal operation conditions, PWM is used to simulate grayscale values of image frames. For example, consider the image in the figure below. In this image, the grayscale of the right half is true while the grayscale of the left half is an illusion: the left half in fact contains only black and white dots, no grey. A projector creates the grayscale illusion in a similar manner. By rapidly toggling its mirrors between "on" to "off" positions, it tricks the eye into perceiving a series of black and white squares as grey. The "on"/"off" pattern is determined according to PWM.

Figure 5: Mirror flickering on a DMD creates the illusion of grayscale through PWM [2]
Grayscale Image
Grayscale Image (hill.png)

Our investigation of PWM schemes led us to understand that basic PWM works as illustrated in the example of the figure below. First, the time allotted for a video frame (1/60th of a second) is divided into blocks. There is one block for each bit of a pixel's grayscale value. If grayscale values can range between 0 and 31, then 6 blocks are created. For the length of each block, the mirror will either be turned to its "on" position if the bit associated with the block is a 1, or its "off" position if the bit associated with the block is a 0. This is an acceptable method for creating a grayscale effect using only black and white projections. However, the long duration of blocks associated with higher-order bits can produce effects that are jarring to the eye.

Figure 6: An example of how basic PWM works [1]
Basic PWM
Basic PWM (pwm-1.png)

A smoother version of PWM is used in most projectors, to reduce the jarring effects seen with basic PWM [1]. The methodology of smooth PWM is illustrated in the example below. This modulation scheme devotes the same amount of time to each bit as basic PWM. However, instead of laying the blocks for each bit end-to-end, it breaks them up into smaller packets and mixes them up. Each block from basic PWM becomes a series of blocks in smooth PWM. These smaller blocks are spread out over the entire time for a frame, alternating with blocks that represent the other bits of the desired grayscale value.

Figure 7: An example of how smooth PWM works [1]
Smooth PWM
Smooth PWM (pwm-2.png)

After completing textbook research of PWM, we attempted to observe PWM patterns in the lab. We sent the projector frames with known grayscale values and captured the mirror-flipping with a visible-range photodiode. However, the mirror-flipping patterns we observed with this approach did not resemble anything like what we had expected. They looked something like the plot shown in the figure below. At first we thought the problem must be on the photodiode end. Yet, the specification sheet for the photodiode listed its response time in the nanosecond range. So, we took another look at the documentation of PWM available on TI's website, and emailed some TI representatives to see if they could give us some insight on the problem. From these sources, we learned that the PWM scheme employed by current DLP projectors is very much more complex than that described in the examples of basic and smooth PWM above. Although smooth PWM may be a part of what current projectors use, the actual mirror flipping patterns are determined based on an algorithm that takes into account a large variety of projector settings. We were told that, in fact, TI considers their mirror-flipping algorithms proprietary, as these codes contribute to the projector's image quality.

Figure 8: Mirror flipping for the grayscale value 67
Observed PWM
Observed PWM (grayscale67.PNG)

Due to the multitude of dead ends we ran into trying to create a projector-based version of a compressive sensing NIR camera, we turned to working with a stand-alone DMD board for the last few months of our project.

References

  1. D. Doherty, G. Hewlett. (1998). 10.4: Phased Reset Timing for Improved Digital Micromirror Device (DMD) Brightness. http://citeseer.ist.psu.edu/243072.html.
  2. (2007, November). Grayscale Hill. http://carol.gimp.org/GIMP/howto/desaturate/decompose-gray-RGB.png.
  3. (2007, December). Psychtoolbox. http://psychtoolbox.org/.
  4. Texas Instruments. (2004). DMD Discovery 1100: Controller Board and Starter Kit. http://focus.ti.com/download/dlpdmd/DiscoveryStarterKit.pdf.

Content actions

Download module as:

Add module to:

My Favorites (?)

'My Favorites' is a special kind of lens which you can use to bookmark modules and collections. 'My Favorites' can only be seen by you, and collections saved in 'My Favorites' can remember the last module you were on. You need an account to use 'My Favorites'.

| A lens I own (?)

Definition of a lens

Lenses

A lens is a custom view of the content in the repository. You can think of it as a fancy kind of list that will let you see content through the eyes of organizations and people you trust.

What is in a lens?

Lens makers point to materials (modules and collections), creating a guide that includes their own comments and descriptive tags about the content.

Who can create a lens?

Any individual member, a community, or a respected organization.

What are tags? tag icon

Tags are descriptors added by lens makers to help label content, attaching a vocabulary that is meaningful in the context of the lens.

| External bookmarks