LED Input device
johnnyairplane
Posts: 25
Hello!
I came across an idea (on the Internet!)
LED's as input devices! mrl.nyu.edu/~jhan/ledtouch/index.html
So, I did some research, came up with this terrific paper!
www.merl.com/reports/docs/TR2003-35.pdf
I quickly got it running on an SX chip, anybody want to try making it a SPIN object?
I'm working on it right now, am new to SPINning, this LED idea is an interesting input device!
This Prop Chip is freaking me out (in a good way!), haven't had this much
fun programming in a long, long time!
post -edit:
Yeah, it's an amazing article! - I'm ready to start playing with the idea....
I still can't get even the lightmeter1.spin program to work the way the article says,
still a spinning newbie!, did you try the .sxb program?
I knew that green led's could be used as photovoltaic 'cells' and are used in some
solar panel 'pointers', quite ingenious also....
Thanks!
John McPhail
"I put the fun in dysfunctional!"
Post Edited (johnnyairplane) : 8/12/2006 5:31:52 AM GMT
I came across an idea (on the Internet!)
LED's as input devices! mrl.nyu.edu/~jhan/ledtouch/index.html
So, I did some research, came up with this terrific paper!
www.merl.com/reports/docs/TR2003-35.pdf
I quickly got it running on an SX chip, anybody want to try making it a SPIN object?
I'm working on it right now, am new to SPINning, this LED idea is an interesting input device!
This Prop Chip is freaking me out (in a good way!), haven't had this much
fun programming in a long, long time!
post -edit:
Yeah, it's an amazing article! - I'm ready to start playing with the idea....
I still can't get even the lightmeter1.spin program to work the way the article says,
still a spinning newbie!, did you try the .sxb program?
I knew that green led's could be used as photovoltaic 'cells' and are used in some
solar panel 'pointers', quite ingenious also....
Thanks!
John McPhail
"I put the fun in dysfunctional!"
Post Edited (johnnyairplane) : 8/12/2006 5:31:52 AM GMT
Comments
With a 10pF cap across an led & 220 ohm res connected to A0 & A1 this bit-o-code is friggin neat!!!
Post edit-
After reading throught the whole 19pg pdf, i found the article quite informative and creative. I wonder if Chip and Beau saw this article? Or if they remember that LED's have the photodiode property when rev biased? As they mentioned in the article encryption/encrypted keyes & the easy ability to copy/hack such data may be a big factor when considering implementing the LEDcomm as a secure key.
Certainly thought the properties of an led in reverse bias would proove beneficial to many projects, especially backlit remotes! I'm surprized i never saw this application on any remote newer than '04 I would imagine some members actually reading the article you posted, the link that's not active, and comming up with some chatterbox boe-bots! LOL
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Definetly a E3 (Electronics Engineer Extrodinare!)
"I laugh in the face of imposible,... not because i know it all, ... but because I don't know well enough!"
Post Edited (RinksCustoms) : 8/12/2006 5:17:46 AM GMT
Tracey Allen already did this...In fact, I saw him do it in February during an early preview of the Propeller.
Check this thread about halfway down on the first page...
http://forums.parallax.com/showthread.php?p=574524
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Beau Schwabe
IC Layout Engineer
Parallax, Inc.
Thanks for the Assist!, guess I should have done a better search through the forums!?
Any idea why 'we' need the small capacitor across the LED, I've got it working on BS2 and SX boards without the cap...
It's a really neat input device, finger reflects light back to led, so an output device (light emitter) becomes
an input device - that Forrest Mimms was one smart cookie!
John
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Definetly a E3 (Electronics Engineer Extrodinare!)
"I laugh in the face of imposible,... not because i know it all, ... but because I don't know well enough!"
Partly perhaps the forums aren't 'sorted', but I honestly just cruised right over that portion of that post,
maybe my mouse wheel needs some weights to dampen it's 'spinning' motion (pun - he, he....blek!)
Can you get this lightmeter1.spin program to work correctly?
I've only been successful at modifying exsisting programs (reverse engineering)....
I'm feeling like a RPN guy in a algebraic world (again).....
John
http://forums.parallax.com/showthread.php?p=562370
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
csavage@parallax.com
yeah first run, i think there's a schematic in the code if you click on documentation view. This prog should work for you as it uses the internal oscillator i think.
I'm running a "homebrew" dev board, ok it's a DIP40 on a couple of breadboards with a MAX232 (5V ver), video & VGA DAC and 10 element bargraph w/a 10MHz crystal. Ironically the lightmeter.spin works beautifully, but my mini video monitor shows nothing but garbled junk!
And thank you Chris for the link! You have just shaved hrs if not days off my searching!
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Definetly a E3 (Electronics Engineer Extrodinare!)
"I laugh in the face of imposible,... not because i know it all, ... but because I don't know well enough!"
Post Edited (RinksCustoms) : 8/12/2006 6:36:14 AM GMT
Anyway, I never got the lightmeter1.spin program to work, nor the lightmeter2.spin!
I started reverse engineering (hacking - which means programming until you can't stay up anymore!)
Attached is a simple program that takes a LED on p0 and p1, lights it and uses reflected light
to it in photodiode mode to detect the presence of even a poorly reflective object.
output LED is on p4
Simply put,
Both LEDs light
Put your finger near the one on P0&P1
and the LED on P4'll go off!
Touch sensor with an LED!
John,
I put the fun in dysfunctional!
(and I want to meet a woman who puts the sexy in dyslexic!)
now where did i put that damn thing!!!
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Definetly a E3 (Electronics Engineer Extrodinare!)
"I laugh in the face of imposible,... not because i know it all, ... but because I don't know well enough!"
RinksCustoms,
The 'switch' (LED) does respond to it's own reflected light, a finger anywhere near it and it activates
I'm using the clear lens RED LED's (best operation so far!) and it is quite sensitive,
black pens bodys also activate it (black plastic is reflective to some red).
a small mirror is quite effective (because of lens on LED)
Laser Pointers - WORK! - use the same color though, been experimenting with other color LED's in proximity
to the LED Switch, different color=no work!
Increase/Decrease the delay after switching to input mode for different sensitivities....
the BS2 and SX versions seem to be less sensitive to background light, have no idea why,
perhaps it's my newbieness to the SPIN language!?
John
You could do some really neat things where you have a row of SMT leds and as you stroke your finger across them they light up then go out. You could make a very cool input device with a line of them or a ring of them, just needs a few too many pins. Also doesn't work so well in the dark [noparse]:)[/noparse]
Graham
the idea of a line of leds for something as simple as a dimmer switch/fader control, a great idea!
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Definetly a E3 (Electronics Engineer Extrodinare!)
"I laugh in the face of imposible,... not because i know it all, ... but because I don't know well enough!"
both LEDS stays·ON and nothing happens when I touch the·RED LED.
I am using the Propeller Demo Board.
I increased both delays and now the Output LED turns OFF when I touch the Red LED.
Coooooool stuff
Marty
P.S. i have a hunch the capacitor was added to increase the time that it takes the photo-current of the LED to discharge the capacitance of the circuit so that SPIN code can keep up.·(aka assembly code shouldn't need the cap, just the resistor and the LED)
Post Edited (Lawson) : 8/14/2006 4:55:17 AM GMT