Many people think about this but no solid implementation so far.. have
you consider I2S audio codec?
Tomek


On Sun, Feb 23, 2025 at 12:07 AM Kevin Witteveen <kevinwit1...@gmail.com> wrote:
>
> Thanks, however I'm specifically looking for audio. For example, music,
> samples, etc. A tone is not enough for what I'm looking for.
> Or did I miss something and the audio_tone is actually more than just a
> tone?
>
> Op za 22 feb 2025 om 22:05 schreef TimH <t...@jti.uk.com.invalid>:
>
> > CONFIG_AUDIO_TONE?
> >
> > Not sure if that’s exactly what you’re after but could be?
> >
> > > On 22 Feb 2025, at 17:12, Kevin Witteveen <kevinwit1...@gmail.com>
> > wrote:
> > >
> > > Hi nuttx,
> > >
> > > I need an audio device that can generate sound using PWM on the RP2040.
> > It
> > > appears nothing already exists for this.
> > > What would be a good way to implement this?
> > >
> > > My previous implementation outside NuttX was to use DMA to feed samples
> > > into a PWM register. Relatively simple.
> > > However, in NuttX i now need to combine the PWM implementation with the
> > > DMAC implementation. This is where I'm not sure how to "connect them
> > > together" on a proper "nuttx" way.
> > > Then also have it show up as an audio device.
> > >
> > > in case you wonder about the concept PWM audio. It is a common way to
> > > generate audio. It is how class-D amplifiers work. This is because the
> > duty
> > > cycle of PWM when filtered becomes an analog signal. A very cheap way to
> > > implement audio in systems.
> > >
> > > Are there any examples of projects out there that did this with Nuttx?
> > > Or are there any people that have an idea how to take this project on?
> > > Where do i begin? Where would i implement this? Board? Architecture?
> > >
> > > I would appreciate any help
> >
> >



-- 
CeDeROM, SQ7MHZ, http://www.tomek.cedro.info

Reply via email to