tony power
Posts: 33
Joined: Tue Mar 08, 2016 9:07 pm

Connecting IR Transmitter & Receiver to right GPIO pins?

Sun Apr 24, 2016 7:01 am

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

User avatar
joan
Posts: 14935
Joined: Thu Jul 05, 2012 5:09 pm
Location: UK

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

Sun Apr 24, 2016 8:12 am

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.

tony power
Posts: 33
Joined: Tue Mar 08, 2016 9:07 pm

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

Sun Apr 24, 2016 8:23 am

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

darkbibble
Posts: 602
Joined: Mon Mar 09, 2015 5:20 pm
Location: corby, england

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

Sun Apr 24, 2016 1:15 pm

- is ground, vcc is power connection, output is the data signal pin
Q; How many Windows users does it take to fix a Linux problem??
A; Whats a Linux problem

drgeoff
Posts: 10765
Joined: Wed Jan 25, 2012 6:39 pm

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

Sun Apr 24, 2016 5:45 pm

joan wrote:It doesn't matter which GPIO you use.
Provided you use the appropriate ones in the software. :)

tony power
Posts: 33
Joined: Tue Mar 08, 2016 9:07 pm

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

Sun Apr 24, 2016 5:49 pm

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

tony power
Posts: 33
Joined: Tue Mar 08, 2016 9:07 pm

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

Mon Apr 25, 2016 6:21 am

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

Return to “Beginners”