Skip to content

Noise from speaker instead of sending signals #5

Description

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.

Activity

  1. ErfolgreichCharismatisch commented on Dec 11, 2022

    @ErfolgreichCharismatisch
    Author
  2. ts1 commented on Dec 11, 2022

    @ts1
    Owner

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

  3. ErfolgreichCharismatisch commented on Dec 12, 2022

    @ErfolgreichCharismatisch
    Author

    How to reproduce:

    1. piir play your parameters
    2. aplay wave file
    3. piir play your parameters
  4. ts1 commented on Dec 12, 2022

    @ts1
    Owner

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

  5. reopened this on Dec 12, 2022
  6. ErfolgreichCharismatisch commented on Dec 12, 2022

    @ErfolgreichCharismatisch
    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?

  7. ts1 commented on Dec 12, 2022

    @ts1
    Owner

    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.

  8. ErfolgreichCharismatisch commented on Dec 12, 2022

    @ErfolgreichCharismatisch
    Author

    I switched from GPIO22 to GPIO24, same result unfortunately.

  9. omgitsraven commented on Jul 12, 2025

    @omgitsraven

    I'm having the exact same problem -- piir works great right up until the first time I launch MPV, following which piir will only produce bursts of static on my speakers until I reboot my whole machine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions