Send information from arduino using the HC05 BL module to an android app

Hello guys,

I have an ultrasonic sensor (HC-sr04) with whom I can know the distance X between the US sensor and an obstacle in front of it, I also have a Bluetooth module (HC-05), and I would like to send the information ( that X distance ) to the app as we can see in the image so that the 0 change to X cm.

So please can somebody teach me how to do that

Thank You
Steewz

There would appear to be three steps to your solution.

  1. Write an Arduino program to run the HC SR04 and send the distance to the serial monitor.

  2. Add the HC05 BT module and send the data to a phone running a Bluetooth Serial Terminal app. This can be a straight forward as loading the program from step 1 and then attaching the Module Rx to the Arduino Tx and the Module Tx to the Arduino Rx. Bluetooth is just Serial without wires.

  3. Develop a custom app for the phone to replace the Terminal app.

Which step are you having problems with?