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

Incompatible with pyaudio? #47

Closed
skiniry opened this issue Nov 28, 2015 · 3 comments
Closed

Incompatible with pyaudio? #47

skiniry opened this issue Nov 28, 2015 · 3 comments

Comments

@skiniry
Copy link

skiniry commented Nov 28, 2015

So I've encountered a strange issue with my lights while using the pyaudio module. Using this module in any script on the pi seems to cause the lights to behave erratically. Running a script with just:

import pyaudio
p = pyaudio.PyAudio()

and then running the strandtest.py will cause the lights to blink rapidly on and off in a series of random colours. This persists until the pi is rebooted.

@jgarff
Copy link
Owner

jgarff commented Nov 28, 2015

That's correct. The Pi only has a single PWM hardware module. The audio
device uses the PWM, as does this library. If you need audio, you'll
probably want to use a USB audio device instead.

On Sat, Nov 28, 2015 at 2:20 PM skiniry notifications@github.com wrote:

So I've encountered a strange issue with my lights while using the pyaudio
module. Using this module in any script on the pi seems to cause the lights
to behave erratically. Running a script with just:

import pyaudio
p = pyaudio.PyAudio()

and then running the strandtest.py will cause the lights to blink rapidly
on and off in a series of random colours. This persists until the pi is
rebooted.


Reply to this email directly or view it on GitHub
#47.

@skiniry
Copy link
Author

skiniry commented Nov 28, 2015

Will do, Thanks.

@skiniry skiniry closed this as completed Nov 28, 2015
@doudz
Copy link

doudz commented Dec 17, 2015

I know this issue is closed but is there a way to use PCM peripheral instead of PWM to avoid audio conflict ?
As I understand ServoBlaster does it so controlling servo is possible with audio output.
https://github.com/richardghirst/PiBits/tree/master/ServoBlaster

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

3 participants