Raspberry Pi 2 + IR Emitter

I would like to control my TV with the Raspberry Pi 2. Using the following hardware:

You can see my wiring on the diagram above, I've followed this tutorial, but I can't get it to work. Whenever I try to execute the command (which should turn the volume up on my TV):

irsend SEND_ONCE emitter KEY_NEXT

It doesn't do anything, so I assume that I have some problems with my circuit.

(Lirc is installed and configured.)

Do you know what can be the issue?

  • 1
    First thing I would do is find out whether the emitter is working. Typically you can use the camera on your phone to this. Try it first with a known working remote control because some cameras anymore filter IR... For instance with an iPhone 6 you must use the forward facing camera to see the light from the emitter, the normal back facing camera filters it.
    – Tyson
    Sep 16, 2015 at 19:02
  • Are those resistor values accurate? 10k seems too high as does 200.
    – joan
    Sep 16, 2015 at 19:26
  • The polarity of the diode in your circuit diagram is actually backwards. I can't say whether your actual wiring is or not.
    – Octopus
    Sep 16, 2015 at 19:27
  • Obviously you did not follow the tutorial which uses a PNP transistor as an emitter follower. It is far from clear whether you have your transistor and diode connected correctly.
    – Milliways
    Sep 17, 2015 at 1:59
  • 1
    Without knowledge of the characteristics of the IR emitter, or the signal you are planning to use I can't design it. I would suggest you look at "Using an NPN transistor" on elinux.org/RPi_GPIO_Interface_Circuits. Replace the load with the IR emitter and resistor in series. The value of the resistor should be chosen to give the desired current, allowing for the voltage drop across the diode.
    – Milliways
    Sep 21, 2015 at 23:54

1 Answer 1


@Milliways answered my question. Probably my IR Emitter wasn't working, I've replaced it and now it is operational.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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