Page 1 of 1

Connecting IR Transmitter & Receiver to right GPIO pins?

Posted: Sun Apr 24, 2016 7:01 am
by tony power
Hi

I am new to Raspberry pi world. I have the new Raspberry Pi 3.
My project requires IR transmitter & receiver and I am not sure where the right pins to connect to.
Do I need bread board, transistors, resistors or connect directly without bread board?
I searched a lot but couldn't find an answer

Here is my IR transmitter & receiver description
IR is widely used in remote control. With this IR transmitter, the Arduin project is able to transmit command to any IR remote Receiver if you have the right decoder.
Well, it will be also easy to make your own IR controller using IR Receiver
Basedon the 38KHz IR Transmitter Sensor
Can be used for remote control
Power Supply : 5V
Interface : Digital
Modulate Frequency : 38Khz
Pin Definitions : (1) Output (2) Vcc (3) GND
Can be compatible with Wrobot Digital 38KHz IR Receiver Sensor
Apply to a variety of platforms including Arduin/51/AVR/ARM
Cable length: Approx.20c
IR transmitter & receiver image with labels written by me
Image

Here is the mapping
Image

Please help me with connecting it to pins

Re: Connecting IR Transmitter & Receiver to right GPIO pins?

Posted: Sun Apr 24, 2016 8:12 am
by joan
It doesn't matter which GPIO you use.

For the transmitter connect VCC to 5V (say pin 4) and ground to ground (say pin 6). Connect output to any GPIO (say pin 7 which is GPIO 4).

Try powering the receiver from 3.3V (say pin 1) and ground (say pin 6 or pin 9). If you power from 3.3V you can connect to any spare GPIO (say pin 11 which is GPIO 17). If the receiver doesn't work at 3.3V you'll need to power from 5V (say pin 2) AND use some form of voltage divider to cut the the 5V output to a Pi safe 3V3.

I suggest you use LIRC to send and receive the pulses.

Re: Connecting IR Transmitter & Receiver to right GPIO pins?

Posted: Sun Apr 24, 2016 8:23 am
by tony power
joan wrote:It doesn't matter which GPIO you use.

For the transmitter connect VCC to 5V (say pin 4) and ground to ground (say pin 6). Connect output to any GPIO (say pin 7 which is GPIO 4).

Try powering the receiver from 3.3V (say pin 1) and ground (say pin 6 or pin 9). If you power from 3.3V you can connect to any spare GPIO (say pin 11 which is GPIO 17). If the receiver doesn't work at 3.3V you'll need to power from 5V (say pin 2) AND use some form of voltage divider to cut the the 5V output to a Pi safe 3V3.

I suggest you use LIRC to send and receive the pulses.
can you refer to the image of ir transmitter & receiver because I don't know which one to connect to in rasoberry pi

I labelled on pic with t1, t2 and t3 for transmitter and r1,r2 and r3 for receiver

- means ground right? what about output and vcc?
I don't know what vcc means so I don't need any bread board nor resistors

Re: Connecting IR Transmitter & Receiver to right GPIO pins?

Posted: Sun Apr 24, 2016 1:15 pm
by darkbibble
- is ground, vcc is power connection, output is the data signal pin

Re: Connecting IR Transmitter & Receiver to right GPIO pins?

Posted: Sun Apr 24, 2016 5:45 pm
by drgeoff
joan wrote:It doesn't matter which GPIO you use.
Provided you use the appropriate ones in the software. :)

Re: Connecting IR Transmitter & Receiver to right GPIO pins?

Posted: Sun Apr 24, 2016 5:49 pm
by tony power
I tried both ir tranmitter and receiver and I have the module lirc_rpi loaded in the kernal

I tried irrecord command but I don't see any key code received

I am not sure about the connection please tell me according to the image of ir sender and receiver labelled with r1 r2 r3 t1 t2 t3

UPDATE: I successfully recorded ir codes with irrecord
but my problem now when I connect it sender and run power key with irsend
I can see the tv ir receiver blink but it doesn't turn off

Re: Connecting IR Transmitter & Receiver to right GPIO pins?

Posted: Mon Apr 25, 2016 6:21 am
by tony power
Everything now works fine ir receiver and ir sender I don't know why samsung didnt respond it ir signals sent then I tried with my tv box and it worked
next I will search how to make lirc socket to accept ir automatically on each boot