Infrared Help

Hello, I have recently started using an Ardunio Uno and I need some help on using an infrared receiver. I have tried looking up some tutorials but they seem to be for 3 pin receivers. I have a 2 pin receiver. How would I go about hooking it all up? And would the code be different to the code posted on the Playground?

How would I go about hooking it all up?

I'm not entirely sure, but I think you should attach the positive pin to +5v (probably with a resistor in between), a 10k ohm resistor in between GND and the input pin, and the GND pin on the receiver to the input pin.

Harris6310:
Hello, I have recently started using an Ardunio Uno and I need some help on using an infrared receiver. I have tried looking up some tutorials but they seem to be for 3 pin receivers. I have a 2 pin receiver. How would I go about hooking it all up? And would the code be different to the code posted on the Playground?

Infrared 'receivers' are 3 terminal devices. If you have a two terminal IR device you most likely have a infrared 'sensor' that doesn't have all the internal electronics needed to properly process a typical IR remote control signals. If you could link to a datasheet for your 2 terminal device perhaps we could verify what you actually have.

Here is a typical IR receiver device datasheet that has 3 terminals and explains what internal circuits are needed to process the IR remote signals. http://www.sparkfun.com/datasheets/Sensors/Infrared/tsop382.pdf

Lefty