Receiving / Sending Serial Print from Arduino IDE to Android using MIT Apps

Hi. I'm currently working on something that need to transfer data from serial monitor to android.

I'm using

  • Arduino UNO Rev3
  • Bluetooth HC-05
  • MIT Apps

The data from serial monitor will be transferred to MIT apps on android using Bluetooth HC-05.

#include <SoftwareSerial.h> 
  
#define rxPin 2                     // define SoftwareSerial rx data pin  
#define txPin 3                     // define SoftwareSerial tx data pin  
  
SoftwareSerial blueTooth(rxPin, txPin);  // create instance of SoftwareSerial  
  
void setup()  
{  
  Serial.begin(9600);            // Start hardware Serial  
  blueTooth.begin(9600);         // Start SoftwareSerial  
}  
  
void loop()  
{  
    char c;  
     if (Serial.available())  
     {  
       c = Serial.read();  
        
       Serial.println(c);             // Write the character to the Serial Monitor  
        
       blueTooth.write (c);           // Write the character to Bluetooth  
     }  
}

This is the codes that I have tried but it doesn't display anything on the MIT apps.

Is the HC05 paired with the device that is running the MIT app?

Is the HC05 connected to the MIT app?

Is the Bluetooth module RX connected to Uno pin 3.

Is the Bluetooth module TX connected to Uno pin 2.

I have tried your code with my Uno and HC05. I successfully send data from serial monitor to Serial Bluetooth terminal on my tablet.

I suggest that you try connecting to Serial Bluetooth terminal. If you can talk to SB terminal but not the MIT app, there is a clue.

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