Skip to content

Can I use other than 9-pin and 32-pin for transmission? #1446

Answered by crankyoldgit
tarodouble asked this question in Q&A
Discussion options

You must be logged in to vote

I want to send an IR using pin 26.
What happens if I specify 26 pins like 9 pins or 32 pins?

You can use any "OUTPUT" GPIO pin you like that is safe to use. See: https://randomnerdtutorials.com/esp32-pinout-reference-gpios/ (I'm assuming you're using an ESP32, as ESP8266 pins don't go that high.

Should I just plug the IR LED into pin 26 and GND?
Do I need to modify the hardware?

No, & Yes. You won't get much range if you power the IR led from the GPIO pin. To have reasonable range/success, you need to use a transistor as a switch for a higher current circuit to power the IR led. Such as: https://github.com/crankyoldgit/IRremoteESP8266/wiki#ir-sending

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@tarodouble
Comment options

Answer selected by crankyoldgit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
2 participants