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
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/
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/
- havenplays
- Posts: 4
- Joined: Wed Jan 05, 2022 5:15 pm
- dastels
- Posts: 15653
- Joined: Tue Oct 20, 2015 3:22 pm
Re: Adafruit STEMMA Speaker 3885 - direct pi setup?
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
Dave
- havenplays
- Posts: 4
- Joined: Wed Jan 05, 2022 5:15 pm
Re: Adafruit STEMMA Speaker 3885 - direct pi setup?
Do you mean either line-level or filtered PWM are both supported?dastels wrote:a line-level analog signal (or filtered PWM signal
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.dastels wrote:See the tutorial for more information: https://learn.adafruit.com/adafruit-stemma-speaker
Dave
- dastels
- Posts: 15653
- Joined: Tue Oct 20, 2015 3:22 pm
Re: Adafruit STEMMA Speaker 3885 - direct pi setup?
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
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
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/
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/