Book Image

Raspberry Pi Zero Cookbook

Book Image

Raspberry Pi Zero Cookbook

Overview of this book

The Raspberry Pi Zero, one of the most inexpensive, fully-functional computers available, is a powerful and revolutionary product developed by the Raspberry Pi Foundation. The Raspberry Pi Zero opens up a new world for the makers out there. This book will give you expertise with the Raspberry Pi Zero, providing all the necessary recipes that will get you up and running. In this book, you will learn how to prepare your own circuits rather than buying the expensive add–ons available in the market. We start by showing you how to set up and manage the Pi Zero and then move on to configuring the hardware, running it with Linux, and programming it with Python scripts. Later, we integrate the Raspberry Pi Zero with sensors, motors, and other hardware. You will also get hands-on with interesting projects in media centers, IoT, and more.
Table of Contents (17 chapters)
Raspberry Pi Zero Cookbook
Credits
About the Author
About the Reviewer
www.PacktPub.com
Customer Feedback
Preface

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...