Can I use other than 9-pin and 32-pin for transmission? #1446
-
I want to send an IR using pin 26. "IRsend irsend (26);" Should I just plug the IR LED into pin 26 and GND? Thank you in advance. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
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.
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 |
Beta Was this translation helpful? Give feedback.
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.
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