With the Dwengo Bluetooth module, you can communicate wireless to your projects. You can build your own cell phone controlled robot or a home automation system . The Bluetooth module is based on a class 2 HC-06 module and supports Bluetooth v2.0. Thanks to its serial interface (TTL level) the Bluetooth module is easy to use.
The communication bandwidth of the module can be configured for 1200, 2400, 4800, 9600, 19200, 38400, 57600 or up to 115200 baud. When active, the module uses 40 mA.
The Dwengo Bluetooth module has four pins: two are used for serial communication (RXD and TXD), while the other two are used as a power supply (GND and 5V):
The easiest way to connect the Bluetooth module to your Dwengo board is by using the breadboard. Connect pins GND and 5V to the - and + lines of the breadboard. The RXD and TXD pins must be connected to the RC6 and RC7 pins of the Dwengo board:
If you connect the Bluetooth module in this way, it is important to disconnect jumper JP1-4 such that there is no connection between the RS232 chip on the Dwengo board and the Bluetooth module!
After connecting the Bluetooth module to your Dwengo board, you can use the USART module built into the PIC18F4550 to communicate with your Bluetooth module. The standard configuration is 9600 baud, 8 data bits, 1 stop bit and no parity bit.
Whenever your Bluetooth module (and thus Dwengo board) is active it will be recognized by your computer. Therefore you need to connect linvor with your computer. The passphrase is 1234.
To change the properties of the Bluetooth module you can use following AT codes:
- AT+PINabcd where abcd is the new passphrase
- AT+BAUDx with x = 1 to 8 with which you can configure the bandwidth from 1200 baud to 115200 baud, standard configuration is BAUD4 = 9600 baud
- AT+NAMExyz where xyz is a new name for the Bluetooth module