sparkfun RN-52 User Manual

Bluetooth audio module

Advertisement

Quick Links

Page 1 of 14
RN-52 Bluetooth Hookup Guide
CONTR IBUTORS:
J O EL EB
Overview
The RN-52 is a sleek Bluetooth audio module from Roving Networks. It
allows you to send stereo audio over a wireless Bluetooth connection. The
module has an embedded DSP that handles the audio stream entering and
exiting the module, converting the digital wireless signals into audio and
vice versa. The module is easy to configure with both ASCII commands and
GPIO. It can function as a stand alone module, or it can be incorporated
with a microprocessor to create the ultimate wireless audio experience.
Covered in this Tutorial
In this tutorial, we will go over some of the module's features. We'll show
you how to configure the module to suit your projects needs, how to hook it
up, and go over a simple example project using the RN-52.
Suggested Reading
• Bluetooth Basics

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the RN-52 and is the answer not in the manual?

Questions and answers

Summary of Contents for sparkfun RN-52

  • Page 1 J O EL EB Overview The RN-52 is a sleek Bluetooth audio module from Roving Networks. It allows you to send stereo audio over a wireless Bluetooth connection. The module has an embedded DSP that handles the audio stream entering and exiting the module, converting the digital wireless signals into audio and vice versa.
  • Page 2: Bluetooth Version

    As with any product, it is wise to read the datasheet before embedding this device into a project. Bluetooth Version The RN-52 is a Bluetooth v3.0 module. It is compatible with all Bluetooth v3.0 devices and also backwards compatible with all Bluetooth v2.1 + EDR, 1.2, and 1.1 devices.
  • Page 3: Wireless Audio

    We’ll discuss these in more depth in the next section. The RN-52 Breakout There is a lot going on with the RN-52 breakout board. Let’s break it up into sections to find out what pins are needed for what purposes.
  • Page 4 Here is the module broken up into sections by color (and numerically for the color-vision impared). 1. Power Powering the RN-52 is very simple. There are three pins necessary to power the board, 3.3V, GND, and power enable (PWR_EN). The supply voltage should be in the 3.0 ~ 3.6V range.
  • Page 5 You can attach speakers directly to the speaker pins and get immediate gratification from wireless music. The RN-52 has a built in integrated amplifier capable of driving two 16Ω speakers or most standard headphones. The speaker outputs can also be attached to an external amplifier for greater amplification.
  • Page 6: Hardware Setup

    Before you can configure the module, some hardware needs to be connected. This section will cover the necessary hardware needed to work with the RN-52. Materials Needed Aside from an RN-52 Breakout, you will need the following: RN-52 Breakout SparkFun Wish List (2) Break Away Headers - Straight PRT-00116 A row of headers - break to fit.
  • Page 7 This is the newest revision of our [FTDI Basic](http://www.sparkfun.co… Wiring the RN-52 In order to use the RN-52, you must first decide how you will connect external hardware to the breakout board. One option is to solder female headers to both sides of the breakout. Second, you can solder wire directly to the breakout.
  • Page 8 Page 8 of 14 In this example, we’ll be using an Breadboard Power Supply to provide 3.3V to the breakout. If you would like to power the breakout with a battery, make sure the battery can provide the correct amount of voltage. We recommend using a LiPo Battery in conjunction with the LiPower board set for 3.3V.
  • Page 9: Configure The Module

    Page 9 of 14 We’re now ready to dive in and see how the RN-52 can be configured. Configure the Module Now that you can actually power up the RN-52 and send it into command mode, let’s talk about changing the settings, and thus the behavior, of the Bluetooth module.
  • Page 10: Get Commands

    RN- 52’s address. If you only have one RN-52, you can change the name to whatever you’d like. If you have multiple RN-52s active, it may be best to keep the default names for identification purposes.
  • Page 11: Troubleshooting

    Troubleshooting • If you cannot talk to the RN-52 over the serial port, make sure you are connected at the correct baud rate (default:115200). • To change the baud rate, GPIO7 must be pulled LOW (it is HIGH by default).
  • Page 12 Page 12 of 14 The functions for each GPIO can be found in the datasheet. Configuration By default, the RN-52 does not have the AVRCP enabled. This is part of the extended features. When you type to see the basic settings, you’ll notice a line that says , where XX is some hex value.
  • Page 13: Connect And Play

    Connect and Play You are now ready to connect to your Bluetooth device and start streaming some music. Directions on how to pair and connect to the RN-52 can also be found in section 1.4 of the user guide. *Note: The quality of the audio will depend on which speakers you’ve attached.
  • Page 14 • RN-52 Datasheet • RN-52 Command Reference User Guide • RN-52 Command Specifications Also, don’t forget to check out the RN-52 GitHub page for all the hardware files and info. This site is a handy Bluetooth Class of Device (CoD) generator.

Table of Contents