Inclinomter

Pete's picture

Offline

Joined: Sep 30, 2018

Replies: 2
Inclinomter
November 3, 2018 - 1:40am

My project displays axis data from the MPU 6050 to the serial monitor but the app doesn't see the HC-05 Bluetooth module I'm using instead of an HC-06. The phone sees it and I tried renaming it on the phone to HC-06.

Can anybody help me?

Aswinth Raj's picture

Offline

Joined: Aug 16, 2016

Replies: 878
You cannot rename on your phone
November 5, 2018 - 11:01am

Hi Pete,

 

The android application is programed only to connect with devices named as "HC-05". If you are having a HC-06 then there are two thing that you can do to make it work.

Renaming Bluetooth module:

Yes, renaming the Bluetooth module will work but you cant do it form your phone. The HC-06 has to operatign modes, you have to get into the command mode and use AT commands to rename the Bluetooth module.

Changing the processing sketch:

 Other option would be to change the code, find the name "HC-05" in the code and simply replace it with HC-06. This will make the application to connect to any device that has the name HC-06. But you should set up the Processing android mode in your computer to be able to compile and upload the program.

If you are in a hurry the easiest way it to get a HC-05 itself, I think you can easily fin one in your hardware store. 

Pete's picture

Offline

Joined: Sep 30, 2018

Replies: 2
HC-05
November 27, 2018 - 5:03am

Thanks for your help, much appreciated, I ordered an HC-05 which arrived the other day. It pairs with my Samsung S8 but the app doesn't display data. I have had flu so maybe my brain is  missing something silly.

Jayant's picture

Offline

Joined: May 19, 2015

Replies: 204
Before working with the
November 27, 2018 - 11:22am

Before working with the actual application make sure your hardware is working properly you can do this by either using a bluetoth terminal application on android to check if you are geting anything from the hardware via BT. Or you can also upload a simple led control program to check if the hardware and connections are fine 

Pete's picture

Offline

Joined: Sep 30, 2018

Replies: 2
Inclinometer
December 18, 2018 - 4:01am

OK, I now have an HC-05 and an HC-06.

I pair the HC-05 and see it on my S8 Bluetooth as "DSD TECH HC-05", not simply "HC-05".

I guess that might be why the inclinometer program will not see it.

I have the circuit running and the Arduino program on my laptop showing pitch, roll, yaw, temp info scrolling on the ftdi terminal window.

I found a bluetooth terminal program and run it on the S8 paired with the HC-05. Set to ASCII it looks like gibberish but HEX seems to produce data that changes if I move the board various ways. Numbers and letters scroll up.

I'm not sure if I should see the data the same as the laptop over the FTDI terminal window.

I'm stumbling along the best I can which means I'm learning, so that's good.

I'm supposing I'm going to have to figure put how to get the name changed to HC-05 with AT command mode.

Jayant's picture

Offline

Joined: May 19, 2015

Replies: 204
I pair the HC-05 and see it
December 18, 2018 - 11:45am

I pair the HC-05 and see it on my S8 Bluetooth as "DSD TECH HC-05", not simply "HC-05".

Thats off, normally the chip from manufacturers will read "HC-05".

I'm supposing I'm going to have to figure put how to get the name changed to HC-05 with AT command mode.

Exactly you have to change the name using AT mode of edit the android application sketch using processing. The former one should be easier.