3

I recently found the PiFm project which sends a FM signal through a GPIO pin to effectively create a FM transmitter out of the Pi.

A problem arises when you do a normal playback of a .wav audio file with mplayer or aplay. After you did this the PiFm only gives out a "hum" on the chosen frequency, instead of the chosen audio.

What kind of consequences has the playback of an audio file on the GPIO ports ?

mpromonet
  • 1,124
  • 1
  • 19
  • 38
WalyKu
  • 131
  • 4

1 Answers1

4

There are various versions of PiFM. Some use timed DMA to transfer the data. Timed DMA will use either the PWM or PCM peripheral (probably PWM by default). The peripheral will be configured specially for PiFM. Using mplayer or aplay will reset the PWM peripheral so you will need to restart PiFM afterwards.

joan
  • 71,852
  • 5
  • 76
  • 108