Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 7596

HATs and other add-ons • GPIO IR blaster is not sending IR signal

$
0
0
Hello,

I am trying to use my Pi 3A+ running Bookworm to send IR signals using a GPIO IR blaster (this one, specifically: https://www.aliexpress.com/item/1005007467513536.html). I also have the receiver (a seperate module but made by the same manufacturer).

I have tried transmitting using both the ircodec library (https://pypi.org/project/ircodec/) and irrp.py (https://abyz.me.uk/rpi/pigpio/examples. ... 20Playback). However, while using both there is no IR being transmitted (I am checking using my phone flashlight). Furthermore, there is also a red LED on the transmitter, which does light up when I send an IR signal, and it seems to be flashing the signal that I am sending - so I know that the board is getting something, but not sure if it is a hardware problem or a Pi problem. I also tried it on 2 seperate ones and it didn't work on either, and I also tried removing the LED from one in case it was drawing too much power, but it still didn't work. I also tried with 3 sets of wires.

Both the receiver and transmitter I am using are hooked up to the 5V pin and ground, the transmitter is using GPIO 17 for data and the receiver is using GPIO 24. The receiver is definitely receiving, because the Pi is sensing when I flash an IR remote in front of it.

I don't know if this information will help, but I noticed that:
1) When I have both a transmitter and receiver plugged in, when I transmit a signal the LEDs light up on both the receiving and the transmitting board.
2) I randomly had my headphones plugged in to the Pi with an aux, and when I ran the command to transmit a signal it played a static-y noise on the headphones for the duration that the signal was (supposed to be) sending.

This is in my /boot/firmware/config.txt, on top of the dtoverlays:

Code:

#Enable receiving IRdtoverlay=gpio-ir,gpio_pin=24#Enable sending IRdtoverlay=gpio-ir-tx,gpio_pin=17
This is the ircodec code that I am using (as mentioned it is receiving IR signals on the receiver, but not transmitting them on the transmitter):

Code:

from ircodec.command import CommandSetcontroller = CommandSet(emitter_gpio=17, receiver_gpio=24, description='AC remote')#Receive IR - workscontroller.add('on cool fan high')#Send received signal - does not work, as described#controller.emit('on cool fan high')
I know that I am for sure sending valid codes because I also tried using

Code:

irrp.py
to transmit codes generated by hvac-ir (https://github.com/shprota/hvac_ir), and still nada.

Any help would be appreciated.

Also in case it helps, here is a picture of the transmitter:
Image
Thanks!

Statistics: Posted by KovyJakes — Wed Jul 02, 2025 12:17 pm



Viewing all articles
Browse latest Browse all 7596

Trending Articles