Open ErfolgreichCharismatisch opened 1 year ago
It seems like a hardware issue, and I have no idea how to fix it using software.
How to reproduce:
your parameters
wave file
your parameters
Maybe it will work if you try using a different GPIO.
I found https://raspberrypi.stackexchange.com/questions/72696/how-to-configure-pigpiod-to-prevent-being-affected-by-aplay, there is no solution, but the mentioned command affects the speaker for it to produce constant interference. The root cause is in the pigpiod which you are wrapping. As you wrapped it, you know it well, so where could this come from?
Good find, PiIR uses pigpio's wave function for IR transmission. If I remember correctly, this is accomplished using a DMA-like function. Maybe this is a problem that cannot be fundamentally fixed. But I think there is a slight chance to try to change the GPIO port.
I switched from GPIO22 to GPIO24, same result unfortunately.
piir play --gpio 22 --file "/home/pi/Infrarot/harmankardon.json" 'Off'
It worked quite well from the start, recording and playing back, great library. That being said, sometimes no codes are being sent but instead I hear a weird noise coming from the speakers plugged into the stereo jack of the pi as if the signals were routed to the speakers. A reboot normally solves the issue. How do I solve it without reboot? Raspi 1 B, Bullseye.