0

So, recently I went to an electronics store to buy an IR Sensor, so they gave me the next one: IR Phototransistor NPN

Then I went online to check how to build this, and to my surprise, I've found that a lot of tutorials are of the three leads, when I've got only two leads. I'm new in the electronics world, and I need help to use this IR Sensor as a receiver for Raspberry Pi. Does anyone know how to use it? (ex: Which leads do correspond to the three lead version, or which GPIO pins...)

7
  • Nothing to do with the Raspberry Pi. You need to read up about IR protocols.
    – joan
    Jan 4, 2020 at 13:07
  • But will it work as an IR receiver for LIRC? Jan 4, 2020 at 13:10
  • Hi TutoInfo Shexph, Welcome and nice to meet you. You might like to read my answer to the following LIRC question to study how to use LIRC for Rpi. Your two leg guy should be TSAL6200, an IR emitting diode. And three leg guy are receivers. I would recommend to get kit with both UART based emitter and receivers. Most linux and raspbian guys use LIRC, but I would recommend Rpi newbies use UART.
    – tlfong01
    Jan 4, 2020 at 13:39
  • But the vendor said its an IR receiver Jan 4, 2020 at 13:45
  • 1
    Yes it is a receiver. No it will not work with lirc. You need a IR demodulator (3 lead) which strips the IR 38kHz carrier. Read up on IR.
    – joan
    Jan 4, 2020 at 13:54

1 Answer 1

0

OK Thanks. I went to the vendor and resulted it was something like a PIR sensor. He exchanged it for a TSOP4838, that's a Receptor. Thanks for the Help

Not the answer you're looking for? Browse other questions tagged or ask your own question.