BluetoothConnection

HC-06

HC-06 is very famous bluetooth slave module for Arduino.

HC-06 has two type.

One is 3.3v level the other is 5v level.

(I recommend 5v level type of HC-06)

3.3v level type

(Left is 3.3v level type and Right is 5v level type)

The circuit for using this component are as follows:

You should set same baudrate Arduino board and HC-06.

You can set baudrate of Arduino board in ArdunityApp.

And you can set baudrate of HC-06 using AT command.

If you have assemble the circuit as above, export Sketch by running the sample Unity Scene to find ArdunityApp.

(See how to export sketch from ArdunityApp)

The generated Sketch can be uploaded to the board by using Arduino IDE.

(See how to upload sketch)

If the circuit used in Unity Scene is the same circuit, you do not need to repeat the same Export Sketch & Upload.

Finally, you should add bluetooth permission in Android Manifest file.

(See how to)

You can build Android App and test on your device.