Bluetooth Modem Video Tutorials

Besides Bluetooth Shield and Bluetooth Bee video tutorials, currently we continue to release Bluetooth series product - Bluetooth Modem Video Tutorials. Bluetooth has increasingly become the focused topic in ordinary life, and is always our important and hot-sale product, therefore, we really hope these tutorials would do something for our customers in the real DIY operation. You can also download the Bluetooth Modem User-Guide besides watch Bluetooth Modem video.

Bluetooth Modem Introduction

The Bluetooth Modem is the latest Bluetooth wireless serial cable! This version of the popular Bluetooth uses the HC-05/HC-06 module. These modems work as a serial (RX/TX) pipe. Any serial stream from 9600 to 115200bps can be passed seamlessly from your computer to your target. The Power Supply Voltage is 3.3V-5V and the IO Voltage is 3.3V/TTL The remote unit can be powered from 3.3V up to 6V for easy battery attachment. All signal pins on the remote unit are 3V-6V tolerant. No level shifting is required. Do not attach this device directly to a serial port. You will need an RS232 to TTL converter circuit if you need to attach this to a computer. You can either solder a 6-pin header or individual wires.

Step 2. Android Communication

Click the icon of ElecFreaks BluetoothBee as above and then open Bluetooth.

Click As Client and start scanning

When it scan out HC-05, click HC-05.

Type the Bluetooth pairing PIN 1234.

Input hello,elecfreaks in mobile, and the Serial Tool sscom32 would display hello,elecfreaks from mobile. (For sscom32, remember to set the BaudRate as 9600.)

Input hello from PC, mobile would also respond hello.

Q&A

If you use Arduino Mega1280/2560 or Freaduino ADK there are some difference. Please note the NewSoftSerial library about Mega2560 explanation in SoftwareSerial.cpp :

[cce]
// Specifically for the Arduino Mega 2560 (or 1280 on the original Arduino Mega)
// majority of the pins are NOT PCINTs, SO BE WARNED (i.e. you cannot use them as receive pins)
// Only pins available for RECEIVE (TRANSMIT can be on any pin):
// (I've deliberately left out pin mapping to the Hardware USARTs - seems senseless to me)
// Pins: 10, 11, 12, 13, 50, 51, 52, 53, 62, 63, 64, 65, 66, 67, 68, 69
[/cce]

That means the library do not support D0-D7 as receiving pins, and you just could use pins:10, 11, 12, 13, 50, 51, 52, 53, 62, 63, 64, 65, 66, 67, 68, 69 for receiving. So there are two way to resolve it, but they all need external jumper wires. First method: Change the define of rxPin and txPin. Jumper wires connect to DOUT-D10, DIN-D11.

[cce]
#define rxPin 10
#define txPin 11
[/cce]

Second method: Use the other Hardware Serial port because Mega has 4 hardware serial ports. Jumper wires connect to DOUT-RX1(D19) DIN-TX1(D18)

ELECFREAKS is a globally competitive micro:bit peripheral product manufacturer, working closely with the micro:bit Foundation and its partners. We focus on the development, production and sales of micro:bit extension modules and accessories. In addition to that, the tutorials, blogs, and videos we create are our contribution to building a comprehensive knowledge base for the micro:bit community. Our belief is that programming is more interesting when it is tangible, and we aim to make coding more popular. We promise to provide excellent products and services to our customers.more