PE Lab Counters TestIrDutyDistanceDetector
SRLM
Posts: 5,045
I'm working away at learning the Propeller, and came across this lab (page 31). I buit the IR circuit and the reciever circuit, and ran the provided code. Unfortunately, all the debug displays is a series of zeros, no matter what. I tried turning the LED around, no good. I tried replacing the LED. Did that with the five that I have. I tried replacing the reciever. No good. Likewise I tried it five times. I put a regular LED in place of the IR: it lights up just fine. Through all these changes, the debug terminal read 0. Any help?
Comments
You are probably working from v0.81.· I just posted v1.0 and recommend updating. It's available from the PE Kit Labs page.
http://forums.parallax.com/showthread.php?p=617192
Try that out, and please let me know if anything changes.
Also, if you are working from the Propeller Demo Baord instad of the PE Kit, make sure pin 3 on the IR detector is connected to + 5 V. Vdd on that board is 3.3 V doesn't have quite enough voltage to power the 5 V part.·
Andy
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Andy Lindsay
Education Department
Parallax, Inc.
Post Edited (Andy Lindsay (Parallax)) : 10/22/2008 11:44:17 PM GMT
Anyway, question on range: I'm able to get about a 0 - 2 ft range. Normal? Not? at the outside of the range, I get 256. However, on the inside I get about 80. I can't help but think that there is an extra 8 in of range to be had. Would this be a correct assumption?
Sorry about that. I thought I had updated the PDF and corrected that error a long time ago. Well, at least it's right in 1.0.
Yeah, your distances are about what I'm getting too, at least for obstacles. Your readings will approach zero if you face the IR LED at the IR detector's IR Phototransistor (the hemispherical bump on the case). You can definitely use that for the 80 to 0 range.
If you find any errors in 1.0, please either post them to this thread:
http://forums.parallax.com/showthread.php?p=648967
or email direct to editor@parallax.com.
Thanks, Andy
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Andy Lindsay
Education Department
Parallax, Inc.
Post Edited (Andy Lindsay (Parallax)) : 10/23/2008 12:54:37 AM GMT
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Andy Lindsay
Education Department
Parallax, Inc.
That aside, I do not have a change tracking sheet because there are enough adjustments to make such a sheet quite·the rat's nest.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Andy Lindsay
Education Department
Parallax, Inc.