Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Noise from speaker instead of sending signals #5

Open
ErfolgreichCharismatisch opened this issue Dec 11, 2022 · 7 comments
Open

Noise from speaker instead of sending signals #5

ErfolgreichCharismatisch opened this issue Dec 11, 2022 · 7 comments

Comments

@ErfolgreichCharismatisch

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.

@ErfolgreichCharismatisch
Copy link
Author

@ts1
Copy link
Owner

ts1 commented Dec 11, 2022

It seems like a hardware issue, and I have no idea how to fix it using software.

@ts1 ts1 closed this as completed Dec 11, 2022
@ErfolgreichCharismatisch
Copy link
Author

ErfolgreichCharismatisch commented Dec 12, 2022

How to reproduce:

  1. piir play your parameters
  2. aplay wave file
  3. piir play your parameters

@ts1
Copy link
Owner

ts1 commented Dec 12, 2022

Maybe it will work if you try using a different GPIO.

@ts1 ts1 reopened this Dec 12, 2022
@ErfolgreichCharismatisch
Copy link
Author

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?

@ts1
Copy link
Owner

ts1 commented Dec 12, 2022

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.

@ErfolgreichCharismatisch
Copy link
Author

ErfolgreichCharismatisch commented Dec 12, 2022

I switched from GPIO22 to GPIO24, same result unfortunately.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants