▲ | monocasa 6 days ago | ||||||||||||||||||||||
For real. For the kind of sound I'd expect out of this, the pwm channels on the rpi work just fine. If you want better sound, the rpi supports i2s. | |||||||||||||||||||||||
▲ | bangaladore 6 days ago | parent | next [-] | ||||||||||||||||||||||
> As we know, it's always been somehow difficult or tricky to add sound for RaspberryPi. Some use gpio to generate pwm to make sound for speakers, some use I2S audio module to generate sound for speakers. But they all have some shortcomings. PWM generated from gpios on raspberryPi have much noise that make the speakers nealy usable, and I2S audio module will occupy the very precious gpio resoureces(usually take 3 gpio pins). And in some operating system there is no driver for these pwm or I2S audio module. Due to the reasons above this is how I solve the sound problem. [1] [1] https://github.com/ZitaoTech/HackberryPiCM5/tree/main/Speake... | |||||||||||||||||||||||
| |||||||||||||||||||||||
▲ | OhMeadhbh 6 days ago | parent | prev | next [-] | ||||||||||||||||||||||
The design artifacts are released with a liberal license, it shouldn't be TOO hard to fix that. Though I've never worked with SPI or I2S sound chips before. | |||||||||||||||||||||||
▲ | guywhocodes 6 days ago | parent | prev [-] | ||||||||||||||||||||||
When I've used i2s it has required setting spi clocks that made my spi devices not function. While it does have all of these IO buses, using more than one at a time is a bit of tetris. I wouldn't be surprised if there is some hardware constraint making i2s impossible. |