0

I'm following a tutorial on how to connect an infrared sensor to the raspberry pi to control it with remote control. So far so good, the infrared sensor is working, but now I have to read its output with the GPIOs. However, the tutorial I'm following is for another model of rpi (I have a 4GB pi4 model), and they are saying to connect the output of the sensor to the GPIO 18 (rpi 12) pin.

I don't want to burn any pin, so can someone help me choosing the right pin please?

Basically, in the tutorial, they are using this command: mode2 -d / dev / lirc0 and getting these results: enter image description here

Here is their setup: enter image description here

I'd like to get something similar, so I can then get what is the infrared input through some python script. Thanks for your help!

The article is in french, but here it is.

1 Answer 1

0

The pin outs on all the Pi's with the 40-pin header are the same.

See https://pinout.xyz/

GPIO 18 is still connected to pin 12.

Your green jumper wire is connected to GPIO 18 (pin 12).

1
  • You pretty much answered my question, however, I discovered that we can modify the IR input pins, and in my distribution of raspbian they were set to gpio17. You couldn't guess it with the info I provided, so I'm accepting this answer. Mar 8, 2021 at 22:36

Your Answer

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

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