Adafruit STEMMA Speaker 3885 - direct pi setup?

Moderators: adafruit_support_bill, adafruit

Forum rules
Talk about Adafruit Raspberry Pi® accessories! Please do not ask for Linux support, this is for Adafruit products only! For Raspberry Pi help please visit: http://www.raspberrypi.org/phpBB3/
Locked
User avatar
havenplays
 
Posts: 4
Joined: Wed Jan 05, 2022 5:15 pm

Adafruit STEMMA Speaker 3885 - direct pi setup?

Post by havenplays »

Is it possible to use this product directly connected to a Raspberry PI, e.g. via the GPIO connectors? If so, how should it be connected and what drivers should be used?

https://www.adafruit.com/product/3885

User avatar
dastels
 
Posts: 15653
Joined: Tue Oct 20, 2015 3:22 pm

Re: Adafruit STEMMA Speaker 3885 - direct pi setup?

Post by dastels »

Should be fine since it has an onboard amp. You just need a line-level analog signal (or filtered PWM signal as I believe the Pi audio connector uses) to give it. See the tutorial for more information: https://learn.adafruit.com/adafruit-stemma-speaker

Dave

User avatar
havenplays
 
Posts: 4
Joined: Wed Jan 05, 2022 5:15 pm

Re: Adafruit STEMMA Speaker 3885 - direct pi setup?

Post by havenplays »

dastels wrote:a line-level analog signal (or filtered PWM signal

Dave
Do you mean either line-level or filtered PWM are both supported?
dastels wrote:See the tutorial for more information: https://learn.adafruit.com/adafruit-stemma-speaker

Dave
This tutorial seems to depend on going via an Adafruit Circuit Playground Express. Do you have any advice on connection directly to a Pi and how to get a Pi to output audio on the right pin? Many thanks.

User avatar
dastels
 
Posts: 15653
Joined: Tue Oct 20, 2015 3:22 pm

Re: Adafruit STEMMA Speaker 3885 - direct pi setup?

Post by dastels »

No, analog or filtered PWM. A plain PWM output will result in unwanted audible artifacts from the sharp transitions. You need a filter to average it to an analog waveform. Either way it should be line level to feed into the amplifier.

For the Pi you need something comparable to the CircuitPlayground's A0. You could use the audio jack actually. There's no amplification on it (so it's line level), just the smoothing filter to give an analog signal. This is the can for all the model 3 and 4 Pis.

Dave

Locked
Forum rules
Talk about Adafruit Raspberry Pi® accessories! Please do not ask for Linux support, this is for Adafruit products only! For Raspberry Pi help please visit: http://www.raspberrypi.org/phpBB3/

Return to “Adafruit Raspberry Pi® accessories”