A simple mbed demo app for the BC127 Bluetooth Audio and Data module.
BC127 Melody mbed Echo App
This is a demo application for the BC127 module available from BlueCreation and and the mbed. You will need an mbed, a BC127, and a phone that support Bluetooth and SPP and has the Melody application installed. The Melody app is available on the Play Store here:
The BC127 and mbed
Connecting BC127 to mbed
BC127 Pin | mbed Pin |
---|---|
1 - GND | GND |
33 - VDD | Vout |
34 - VDD | Vout |
41 - TX | p9 |
42 - RX | p10 |
Connect and power the BC127 module according to the Manual and Data sheet. Connect Power, Gnd, and connect TX on the module to Pin 9 on the mbed and Rx to pin 10. Also connect ground from the module to the mbed.
- Compile and load the BC127 Melody mbed Echo App.
- Reset the mbed to load the app.
- Reset or power up the BC127.
- You will see LED1 on the mbed light up.
- The BC127 is now discoverable.
- List Find BC127 using your phone and pair to it.
- The device name will be of the type BlueCreation-XXXXXX.
- Open the Melody application and connect to the BC127.
- LED2 on the mbed should light up in addition to LED1. You are now connected!
- When LED3 lights up the mbed has configured the BC127.
- Follow the instructions you just received in the Melody app!
Note: If you reset the BC127 you will need to reset the mbed to enable it to connect and configure the BC127. If you just disconnect and reconnect the phone, you will be sent back the SPP open indicator event coming from the BC127.
Revisions of main.cpp
Revision | Date | Message | Actions |
---|---|---|---|
4:c17c10e9862e | 2013-02-15 | fixed some typos | File Diff Annotate |
3:b8f28af864fe | 2013-02-15 | changed some formatting and minor mistakes | File Diff Annotate |
2:206fd245b81b | 2013-02-15 | replaced hard coded buffer size with define | File Diff Annotate |
1:0644b8d3df40 | 2013-02-15 | Updated header to reflect source code license | File Diff Annotate |
0:10292bb158f3 | 2013-02-15 | initial cookbook version | File Diff Annotate |