View previous topic :: View next topic |
Author |
Message |
vsmguy
Joined: 13 Jan 2007 Posts: 91
|
Interfacing photodiodes to PIC ADC |
Posted: Sun Feb 25, 2007 12:16 am |
|
|
The PIC ADC requires that the input impedance be max 2.5k for fast operation.
Then, how I do go about interfacing photodiodes to the ADC without using something like opamps, because as far as I know photodiodes have very high impedance.
The circuit I have at mind is :
http://www.geocities.com/vimalsshankar/sch.png
Should it be that I have to adjust the value of R1 to be within specification ?
Please comment. |
|
|
asmallri
Joined: 12 Aug 2004 Posts: 1635 Location: Perth, Australia
|
|
Posted: Sun Feb 25, 2007 12:53 am |
|
|
The simplest way of interfacing this sensor to the PIC is to use an opamp. _________________ Regards, Andrew
http://www.brushelectronics.com/software
Home of Ethernet, SD card and Encrypted Serial Bootloaders for PICs!! |
|
|
vsmguy
Joined: 13 Jan 2007 Posts: 91
|
|
Posted: Sun Feb 25, 2007 8:25 am |
|
|
asmallri wrote: | The simplest way of interfacing this sensor to the PIC is to use an opamp. |
I know that
I wanted to know if I could do it another way. |
|
|
SherpaDoug
Joined: 07 Sep 2003 Posts: 1640 Location: Cape Cod Mass USA
|
|
Posted: Sun Feb 25, 2007 9:12 am |
|
|
What are you trying to measure? If you are measuring full sunlight or some other bright constant light source you may get away with the single resistor design. But if you are looking for high speed or high sensitivity you are going to need an amplifier. _________________ The search for better is endless. Instead simply find very good and get the job done. |
|
|
Ttelmah Guest
|
|
Posted: Sun Feb 25, 2007 10:19 am |
|
|
SherpaDoug, has 'put his finger' on the critical question.
The photodiode, acts as a current source, with the amount of current, dependant on the quantum efficiency, and the amount of light involved.
Now this diode, will itself have leakage, as does the ADC input on the PIC (quoted as up to 100nA). The current flowing must be large enough, to draw the ADC input, to the required voltage for sampling, in a reasonable timescale. The longer the timescale, the more significant the leakage terms, and other things like thermal noise in the diode become. Now just how small the current involved is, is perhaps best illustrated by a typical 'high sensitivity' photo detector, which will typically use a sampling resistor, in the order of 1000MR. However, with a larger diode (normally bad for frequency response, because it gives a larger junction capacitance, but 'better' in terms of how many photons are collected), for bright illumination levels, the diode may well be useable without an op-amp, especially if the sampling time is kept reasonably long (allowing the internal capacitor to charge). However for lower light levels an amplifier will be needed. It doesn't have to be an op-amp. A simple FET source-follower can of course be used.
Best Wishes |
|
|
vsmguy
Joined: 13 Jan 2007 Posts: 91
|
|
Posted: Sun Feb 25, 2007 12:58 pm |
|
|
am sorry I was not very specific .
The setup will be used for hobby robotics in very dimly lit environment for line followers.
The environment should not saturate the diode though - typically classroom flouroscent lighting. I am on the lookout for pointers regarding that.
White poster paper with black poster paper/scotch tape will be the targets to detect.
I don't want digital output using comparator because I want to use dynamic calibration using intensity values.
It's not very convenient to keep on adjusting presets for triggering threshold.
Will a simple LM324 work ? |
|
|
asmallri
Joined: 12 Aug 2004 Posts: 1635 Location: Perth, Australia
|
|
Posted: Sun Feb 25, 2007 4:59 pm |
|
|
vsmguy wrote: | Will a simple LM324 work ? |
A single supply opamp (typical cmos opamp) will be sufficient - no need to use a dual supply type. _________________ Regards, Andrew
http://www.brushelectronics.com/software
Home of Ethernet, SD card and Encrypted Serial Bootloaders for PICs!! |
|
|
vsmguy
Joined: 13 Jan 2007 Posts: 91
|
|
Posted: Sun Feb 25, 2007 8:21 pm |
|
|
The LM324 can be run from a single supply too...
Will it work ?
What is the specs of the opamp I am looking at to interface with photodiode ? |
|
|
kender
Joined: 09 Aug 2004 Posts: 768 Location: Silicon Valley
|
|
Posted: Mon Feb 26, 2007 12:01 am |
|
|
vsmguy wrote: | What is the specs of the opamp I am looking at to interface with photodiode ? |
You want a high input impedance and low input bias current. Takea look at this app note too: http://focus.ti.com/lit/an/sboa035/sboa035.pdf |
|
|
vsmguy
Joined: 13 Jan 2007 Posts: 91
|
|
Posted: Mon Feb 26, 2007 8:10 am |
|
|
Kender,
after I came back here from EDABoard, I had a sense of Deja Vu ;)
Will a LF351 fit the bill ? |
|
|
|