Unable to connect custom-built android app with arduino using Bluetooth HC-05 module

Hi everyone, new hear so please forgive any faux pas on my part.

  1. I am trying to use my Samsung Android phone to turn on and off an LED mounted on a breadboard, connected to an Arduino Uno based on this Youtube tutorial:
    Arduino and HC-05 Bluetooth Module Tutorial | Android Smartphone & Laptop Control - YouTube

  2. I am using a Bluetooth HC-05 wired to the Arduino to make the connection.

  3. I used MIT App inventor following the steps from another Youtube tutorial from the same channel for this purpose, see link attached:
    How To Build Custom Android App for your Arduino Project using MIT App Inventor - YouTube
    I have also attach images of the complete block code.
    Simulator wire up using Fritzing software and hardware images:


    Block code for App:

  4. I made some additions to the code for the Arduino, I programmed it so that pins 8 & 9 were the serial port and not TX, RX/Pins 1 & 2, this way I don’t need to disconnect the Arduino before uploading the code, but otherwise the code seems to upload. See image of code attached.

  5. I used a circuit divider between the arduino’s transmitter (TX), and the Bluetooth HC-05’s receiver (RX) since the Arduino’s Vout = 5V and the Bluetooth’s RX operates at 3.3 V.
    R1 = 1k and R2 = 2k, this should give a Vin of 3.33V (I hope)

  6. I can pair the HC-05 with my phone (the Bluetooth HC-05 module is flashing when arduino is connected to laptop to upload code) but when I try to connect with it using the App I built on my phone it can’t detect it, or any other Bluetooth device for that matter, also unlike the MIT app in the tutorial I get the numbers -65536 on my interface where it should say ‘Connect/Not Connected.'

Any help here to solve this issue would be greatly appreciated.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.