linear1 forums
[part of the linear1 network]
+ [linear1 case mods]
+ [LED Center]
+ [privacy policy]
Welcome, Guest. Please login or register.
March 19, 2010, 06:45:05 PM

Login with username, password and session length
Search:     Advanced search
* Home Help Search Login Register

linear1 forums  |  LED discussion  |  Microcontroller madness  |  Topic: Simpler, smaller LED sensor project « previous next »
Pages: [1] Print
Author Topic: Simpler, smaller LED sensor project  (Read 1699 times)
dalewheat
purveyor of gizmos & gadgets
Strong like bull
*
Offline Offline

Posts: 6


Dale Wheat


WWW
« on: December 12, 2005, 01:43:53 PM »

justDIY,

Instead of using the AtoD conversion to read the value of the LED sensor, couldn't you use a digital input and measure the time to discharge the junction charge?  I'm trying to build the simplest possible version of this device, more or less just to demonstrate the idea.  Ideally, I'd like to be able to use two LEDs as a one-dimensional slider control.

Here's the background information for the LED sensor project as started by justDIY:

http://www.merl.com/publications/TR2003-035

Thanks,

Dale
Logged

Dale Wheat
http://dalewheat.com
877-DALEWHEAT
justDIY
Microcontroller Madman
Administrator
Smart like tractor
*****
Offline Offline

Posts: 1652


UFOric


WWW
« Reply #1 on: December 12, 2005, 02:14:29 PM »

In a sense, that's all I'm doing with the A2D sample ... transfer the charge from the junction to the internal sample capacitor, and then timing how long it takes to discharge that capacitor.  the time value is just correlated to a voltage value.  the language I'm using (along with the microcontroller I've chosen) provides a simple interface to the A2D functions, so its easy for me to use that method, rather than setting up a subroutine to time the transistion from high to low on a digital input pin... thats not a bad idea to try out, since it might allow for a faster 'reading' of the sensor

I have observed it takes a fair amount of time for the voltage stored in the junction to discharge, the intensity of light reflected onto the junction just doesn't drive it down very fast.   I've settled on 600uS  for the 'sampling' period in my a2d routines - it works pretty well under 'normal' room light, and exceptionally well in a 'darkened' room... I think the reason this technology is not 'in use' is daylight screws it up pretty bad - so do 'strong' indoor lights, like a halogen floodlight I have over my smd workarea.

I will dig up some of my 'proof of concept' code, before I started going crazy with trying to built huge arrays - it's in basic, but its so darn simple you should pick it up right away.
Logged

Want to contact me directly? gmail gordonthree
My Project Blog - http://projects.dimension-x.net

Favorite numbers:
09 F9 11 02 9D 74 E3 5B D8 41 56 C5 63 56 88 C0
justDIY
Microcontroller Madman
Administrator
Smart like tractor
*****
Offline Offline

Posts: 1652


UFOric


WWW
« Reply #2 on: December 13, 2005, 09:06:55 PM »

Attached is a text file with my basic code for the led sensors.

there is a lot of stuff in the beginning that's just junk I carry from project to project, mostly just stuff setup for my breadboards.

This code reads four led sensors and outputs the results to an attached vfd I use for debugging.

* sensor6.txt (4.71 KB - downloaded 106 times.)
Logged

Want to contact me directly? gmail gordonthree
My Project Blog - http://projects.dimension-x.net

Favorite numbers:
09 F9 11 02 9D 74 E3 5B D8 41 56 C5 63 56 88 C0
Pages: [1] Print 
linear1 forums  |  LED discussion  |  Microcontroller madness  |  Topic: Simpler, smaller LED sensor project « previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.7 | SMF © 2006-2008, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Page created in 0.136 seconds with 20 queries.