Tranmissive sensor
EvilMaro
Posts: 27
I have a 4 pin tranmissive sensor and i am going to trouble shoot with my project but the thing is when i input a freqout conmmand to the infra red part it did not trigger any voltage different when there is an object in the slot.· I configure the sensor as what i learn in the BS2 education kit ( the infra red and deector part) but it did not work.· There is two logo on the sensor one is a diode or i can say infra red logo and the other is a C and E i think it mean collector and emittor.· The configuration i have is like this p0 with 220ohm to the input of the infra red and then to ground where the other i configure the 5v voltage(Vdd) to the collect and the output emittor with a 220ohm then to my p15.
But the sensor can't work pls advise me what is wrong this time??
the sensor i used are below
http://content.honeywell.com/sensing/prodinfo/infrared/catalog/Pg_310.pdf
From
Tony
But the sensor can't work pls advise me what is wrong this time??
the sensor i used are below
http://content.honeywell.com/sensing/prodinfo/infrared/catalog/Pg_310.pdf
From
Tony
Comments
1) Make sure you have the IR emitter (LED) connected properly. The Stamp I/O pin should be connected to the anode (through the resistor) and the cathode should be connected to ground. The LED will be on when a HIGH is executed and off when a LOW or INPUT is executed for that pin.
2) A better way to connect the IR detector (phototransistor) would be to connect the emitter to ground. Use a 4.7K resistor between the collector and +5V. Connect the Stamp I/O pin to the collector/resistor junction. You should see a high input when the emitter is off (or when the sensor is blocked) and a low input when the emitter is on (and not blocked).
There are a couple of things that I can see. If you are trying to read the sensor with a Stamp as you are sending it a signal, you wont see anything because the Stamp processes code line by line. Once the Freqout command has completed, the next command(s) you use to read the sensor wont see the Freqout because it is no longer sending the command to pin0. You are in luck though, for this particular application you do not need to send a Freqout command on P0. All you need to do is simply make the pin (P0) HIGH. The second thing I see, is that you need a pull-down resistor off of the sensors E pin (Emitter) of some kind. A 10K resistor should be fine. (see attached schematic). From there, after making P15 an input, simply read P15 with the IN15 directive... see below.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Beau Schwabe
IC Layout Engineer
Parallax, Inc.