Making RPZ a radio transmitter and sharing music
For this recipe, we are going to really apply all we've learned, reconfigure our Pi for audio output, and send that out to a radio transmitter. You'll have your own Raspberry Pi radio station!
Getting ready
For this recipe, I used the Adafruit Si4713 FM radio transmitter; it's inexpensive and works great. If you want to run audio directly from your RPZ's audio out, you'll also need the following parts:
2 100 Ohm resistors
2 300 Ohm resistors
2 10uF capacitors
2 22pF capacitors
Jumper wires
If using only the Si4713 and the built-in audio jack, you just need to have I2C enabled, which we covered in the I2C Basics recipe earlier in this chapter. If you are wiring the audio directly from the Pi, you will also need to make some changes to the pin configuration. By default, the Raspberry Pi Zero's audio output is not associated with any physical GPIO pin. We can reassign them easily with a reboot so that the PWM0 and PWN1 alternate pins serve audio. With...