How to use PWM as Audio



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

How to do this ?

Best Regards


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.


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:
With a level shifter, like this: