sparkfun RN-52 Скачать руководство пользователя страница 8

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.

As usual, connect the GND pin to GND, and connect the 3.3V pin to the 
Vcc pin on the supply. That just leaves the power enable pin (PWR_EN). 
This can be hooked up one of two ways. The first method is to simply 
jumper the PWR_EN pin to 3.3V. This will cause the module to start up 
immediately once it is powered.

Make this connection on the breadboard, or solder a small jumper wire.

The PWR_EN pin can also be attached to a button to allow the user to 
power up the module when it is desired, even if power is already supplied. 
This is useful in headset/hands-free applications where a battery is 
attached to the module but the module doesn’t need to be on all the time.

Hold down the momentary push button, and, after about 1 second, the RN-

52 will power up. Then release the push button.

GPIO9

GPIO9 is used to tell the module to enter command mode. If GPIO9 is 
HIGH or left floating, the module will remain in its default data mode, 
streaming audio or data. In order to enter command mode, 

GPIO9 must be 

pulled LOW

. This can be accomplished by simply connecting GPIO9 to 

GND with a jumper wire. In this example, a switch is used to easily enter 
and exit command mode.

UART

You will need a way to communicate to the module and send commands. 
This will be accomplished with a 3.3V FTDI Basic. Connect GND to GND, 
TXO to UART_RX, and RXI to UART_TX. Those are the only connections 
needed to talk to the module.

With that, you should have something that looks like this:

Page 8 of 14

Содержание RN-52

Страница 1: ...ss 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...

Страница 2: ...ou to configure the device over a UART serial connection This can also be used to send commands to the module from a microcontroller HFP HSP Support of both Hands Free Profile and Headset Profile mean...

Страница 3: ...converts the radio waves sent from the transmitter device phone computer etc into electrical signals that can then be sent to the amplifier and then to your audio output speakers headphones When stre...

Страница 4: ...oltage should be in the 3 0 3 6V range 2 GPIO Pins The RN 52 has eleven general purpose input output pins GPIO Many of these pins are reserved for special functions when the module is booted up and wh...

Страница 5: ...lso be used to connect the module to an external microcontroller that issues commands and handles status updates 4 USB The USB lines are strictly used for device firmware update DFU mode Used in conju...

Страница 6: ...e SPI lines 8 PCM Another option for communicating with the module is the Pulse Code Modulation PCM pins PCM is a way to digitally represent sampled analog signals This is done over an I S connection...

Страница 7: ...kout Another option and the one that will be used in all the demos in this tutorial is to solder straight male headers to the breakout so that it can be used in a breadboard Note The RN 52 breakout is...

Страница 8: ...red even if power is already supplied This is useful in headset hands free applications where a battery is attached to the module but the module doesn t need to be on all the time Hold down the moment...

Страница 9: ...begin flashing alternately 4 Your device is now ready to make a connection Rather than connect over Bluetooth the connection will be made over the serial UART 5 Open a terminal window on the port you...

Страница 10: ...lt name is RN52 xxxx where the last four numbers are the same last for numbers of the 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...

Страница 11: ...e RN 52 all terminate with a carriage return r not with a carriage return line feed If you keep seeing after every command you enter there should be a setting in your serial terminal to turn on just c...

Страница 12: ...th the AVRCP buttons disabled Future versions of the firmware may differ Looking in the Command Specifications document we find this table EK is the Evaluation Kit Roving Networks sells and comes with...

Страница 13: ...volume needs to be cranked up to achieve normal indoor volume If you re not satisfied with the volume an external amp can be connected to the speaker pins We recommend using the Audio Amplifier Kit Re...

Страница 14: ...ll the hardware files and info This site is a handy Bluetooth Class of Device CoD generator For more tutorial action check out these related tutorials BC127 Audio Bluetooth Hookup Guide Interactive Ha...

Отзывы: