click here to enter

Bluetooth Module

Kingston hackSpace

The HC-06 Bluetooth module is a regular ‘SPP’ serial link client device, that can pair with any electronics devices, which has a Bluetooth connection. This will allow you to control your components or microcontroller completely wirelessly around 10-15 meters away. The very good advantage of this module is that it automatically detects and changes the serial baud rate. That means if you open up the COM port on your computer at 9600 baud, the output will be 9600. All the most common baud rates are supported with this sensor: 2400, 4800, 9600, 19200, 38400, 57600, 115200 and 230400. You never have to configure or customize the module by hand - it all happens completely automatically inside the RF module.

The Bluetooth sensor also has an RX/TX indicator LED, so you can tell when data is sent & received as well as a connection status pin. The only down side of the Bluetooth is the distance it can work in; if you want to have a stronger connection BlueSMiRF and Bluetooth Mate can reach around 100 meters. HC-06 sensor works great with Mac and Windows computers, but also it can connect to android and apple phones using specific designed applications.

/*http://kingstonhack.spaceA script to launch a bluetooth serial connection to a computer andto send a string variable along the conection based on two button presses*/#include #define BT_SERIAL_TX 10#define BT_SERIAL_RX 11SoftwareSerial BluetoothSerial(BT_SERIAL_TX, BT_SERIAL_RX);int pushButton = 2;  int pushButton1 = 3;    void setup() {//initalise serialBluetoothSerial.begin(9600); delay(1000);//declare button modespinMode(pushButton, INPUT);pinMode(pushButton1, INPUT);BluetoothSerial.print(\"Starting ...\");}void loop() {if (digitalRead(pushButton) == HIGH) {  BluetoothSerial.print(\"01\");}else{BluetoothSerial.print(\"00\");}     BluetoothSerial.print(\":\");if (digitalRead(pushButton1) == HIGH) {  BluetoothSerial.print(\"02\");} else{BluetoothSerial.print(\"00\");} BluetoothSerial.println(\"\");//adds a new line character to the streamdelay(10);}
  • To borrow the bluetooth module, click here