ChepkwonyChatterjee

From Psych 221 Image Systems Engineering
Revision as of 00:51, 20 March 2012 by imported>Psych2012 (LED Measurements)
Jump to navigation Jump to search


LED Flicker system design

Background

Human vision science has been generally defined based on the presence of four types of photopigments in the retina: rods and three types of cones. Rods are responsible for peripheral vision under scotopic and mesopic lighting conditions. Rods are generally not associated with color vision. The cones on the other hand are present in the foveal region and are responsible for color vision under photopic conditions. The L,M,S cones are sensitive to different wavelength ranges of light.

There has been a recent discovery (This paper talks about it) of another type of non-rod non-cone photopigment in the human retina, and this is melanopsin present in the specialized ganglion cells of the retina. Melanopsin in the retina has been studied to the extent that its primary function has been determined to be signaling changes in ambient light levels to the brain throughout the day for unconscious visual reflexes, such as pupillary constriction, and regulating a number of daily behavioral and physiological rhythms, collectively called circadian rhythms. It has been suspected that Melanopsin may play some role in the human visual system as well. The role of melanopsin in color vision and temporally varying light intensity patterns is an emerging research area.

To understand the role of Melanopsin in the human visual system, researchers need a setup for conducting psychophysical experiments. The goal of our project was to build such a device which makes it easy to carry out such experiments.

High Level Device Specifications

  1. Should be capable of producing 4 or more primary colors.
    To test the theory that four color sensitive photopigments (L,M,S cones and melanopsin) contribute to color vision
  2. The flicker rate of each primary color should be programmable.
    To test the response of varying temporal frequencies of light flicker.
  3. The light intensity levels should be adjustable
    To allow for variation of lighting conditions to stimulate the photopigments to different levels.
  4. Should be an easy to use compact portable design.
    The ideal design would be that of a black box with commands for input and a optical fiber which brings the light output. The hope is to integrate this device into an fMRI testing environment.

Design

Components

  1. LED Array of primary lights
    For our final design (to be implemented in future): 7-in-1 round assembly LED Array
  2. Polymer Optics 7 LED Cell Cluster Concentrator lens arrangement
    Shown in this page Lens Optics
  3. Arduino Mega 2560 microcontroller Arduino website
  4. A simple heat sink like Heat sink picture
  5. A perforated circuit board (for the final design) and a breadboard (for making a prototype)
  6. Circuit components
    1. N channel MOSFETs like the 50N06L Datasheet or similar.
    2. npn BJTs like the 2N3904 Datasheet or similar
    3. 2 Ohm 1-2 Watt power resistors (for final circuit), 30-35 Ohm resistors (for prototype)
    4. Large value resistances 10k-1M Ohm
    5. 5V regulated Power supply

Circuit

Driver circuit for the LEDs

To get a system that produces a stable light output, the LED must be driven by a constant current. An approach to get a constant current is using the circuit to the right. The way this circuit works is that the Rfeedback resistor and BJT combination sense the amount of current flowing though the LED and feed this signal back to the MOSFET gate controlling its voltage and hence the current flowing through it.

The key parameter that must be selected with caution is the Rfeedback resistance since that controls the maximum amount of current flowing through the circuit. This page mentions that an empirical estimate to the maximum current flowing through the circuit is 0.5/Rfeedback. We performed some circuit simulations in SPICE to get a sense of the appropriate parameter values.

Seven copies of this circuit should be made to drive each LED, with the seven PWM output signals coming out from different channels of the Arduino microcontroller.

Method

Simulations

We performed simulations of the circuit in HSPICE, to understand the appropriate values of resistances required for the design and also to check the temporal characteristics in the ideal case.

Setting the Rfeedback value as 2 Ohm, we got the current flowing through the LED as 375mA which is well within the capacity for the Luxeon LEDs. For the prototype circuit that we built using regular LEDs, we used around a 30 Ohm resistance for the feedback to limit the current to below 100mA. Code included in Appendix 1.

Prototype Circuit

As a prototype for the final circuit, we designed the system on a breadboard. The circuits for each of the seven channels feeding the individual LEDs were small and compact. We modified the existing firmware to parametrize the number of output channels. Once the circuit was ready we connected it to the arduino and gave commmands to the Arduino through the USB port serial interface.

Prototype circuit


Results

Circuit Measurements

We performed tests to measure verify various aspects of our design. We wanted to verify our circuit design did match the simulation, so part of the tests done was to verify the voltage and current. We also did tests to verify the stability of the output of the circuit over time. Finally we analyzed the spectral characteristics of the light output from the LEDs.

Circuit voltage and current measurements

We took voltage measurement across the LED and also measured the current being drawn from our power supply, which in this case was the Arduino. The results show we had a 1.1V drop across the LED and the total current being drawn from our power supply was approximately 90mA.

We also measured the voltage that was generated from a solar cell that was placed over one of the LED's. The voltage measure across the solar cell was 0.2V.

Note the PWM input from the Arduino was a square wave running at 2Khz and was modulated by a sinusoidal was that was at a 3Hz freq. See video in slide 12 for better picture into input.

Circuit temporal measurements

The LED Flicker was left to run for a 1 hour period after the initial measurements were taken. We then took measuremnets after the 1 hour mark. The goal of this test was to verify the stability of the circuit.

After 1 hour the voltage drop across the LED was 1.1V and the maximum current drawn from the circuit was 90mA. The measured voltage across the solar cell was still 0.2V. This results did show that the circuit was stable after a 1 hour period.

LED Measurements

We obtained the LED spectral properties using a spectrophotometer. We got measurement for a all the seven LED's that we were using. The graph below shows the spectral power distribution on the LED's.

Spectral Power Distribution

Conclusions

References

Software

Appendix I - Code and Data

Code

Spice code for simulated circuit: File:Circuit.sp.zip

Data

Appendix II - Work partition

Hardware assembly - Tirthankar Chatterjee
Firmware edits - Isaac Chepkwony
Simulations and Testing - joint