How to use PWM as Audio

96boards

#1

Hello,
I want use PWM as audio like rpi (This example)

How to do this ?

Best Regards


#2

From online availble SoC Datasheet (RDA8810PL), I undestand that PWM is available on GPO_0 (PWT) or GPO_2 (PWL_1). From pi96 Board schematics, we can see these pins are not routed to any header.


#3

Pins 16, 18, 20, and 22 make up an i2s port.
Wouldn’t it make a lot more sense to use an i2s codec?

Edit: You could use something like this: https://www.adafruit.com/product/3678
With a level shifter, like this: https://www.adafruit.com/product/1875