
I launched my Android App and clicked “Start as Client”. I didn’t find any documentation on the HC-06 datasheet on how to connect to a BT server so I assumed it was default set up as a BT server. You should see the string show up in the Received Text box on the other device. Just type a string in the Send Text box and hit the Send button.If the Bluetooth link is established, the screen on both sides should change to have Send Text / Received Text boxes and Send button.Click the “Start as Client” button on the 2nd device.Click the “Start as Server” button on the 1st device.It can even be installed on 2 Android devices then: The App can actually be used without the Arduino + HC-06 setup. If you just want to install and use it, here is the. aia file if you want to load it into your AppInventor environment and review it on your own…. I created the app in MIT’s AppInventor environment but it would be a little too long to post a tutorial on all the steps. Once a BT connection is made in either mode, I want to be able to send and receive characters to the other side. I have a feeling I will be working with Bluetooth often from now on so I decided to make a very generic Android App that can be set to run as BT server or BT client. Since I have been playing with MIT’s AppInventor recently (see some of my previous posts with the AppInventor tag), I decided to just build my own. Next was to find an Android App that could send and receive Bluetooth characters/strings. The HC-06 data sheet gives the command to change the pin if needed but I am just going to leave it as the 1234 default for now. I entered 1234 and successfully paired my Android tablet with the HC-06 module. I found the default pin listed in the HC-06 datasheet ( ) as 1234. When I tried to pair with it, I was asked for a pin. When I searched for devices in the Android Bluetooth menu, I saw a new device with name HC-06. To prepare for the testing, I powered up the HC-06 module and Bluetooth paired my tablet with the HC-06 using the standard Android Bluetooth settings menu. Not sure what they should be connected to if it were a HC-05. The State and Key pins are not there on my HC-06 module. Note: I used a HC-05 Fritzing symbol here (only one I could find). I used the same serial passthrough Arduino sketch as I showed in the above referenced post.ĭIAGRAM UPDATED: Someone noticed that I had the HV and LV supply reversed in my original diagram. I have the same Arduino Uno + HC-06 Bluetooth module setup from the above referenced post. I will now show how to use that to send characters back and forth between an Android phone/tablet and the Arduino over Bluetooth using the HC-06 module. In my last post, I showed basic serial communication between an Arduino Uno and a HC-06 Bluetooth module ( Arduino + Bluetooth Module Bringup).
