Connecting Arduino with Android - Bluetooth

@paulgoux hi

First he can try application from Google play store ( Bluetooth serial terminal ) there is more than version he can use… And two android devices needed one for the Bluetooth serial terminal application and the other for APDE scketch

The aim of this is to make sure that ketai sketch connected and transmitting/receiving Data and everything works fine

Then this code must adept to suit ketai

void serialEvent(Serial port)
{
  // odczytujemy dane do momentu wystąpienia znaku nowej linii n
  String input = port.readStringUntil(10);
 
  if (input != null)
  {
    // rozbijamy odczyt po przecinku i nowej linii
    int[] vals = int(splitTokens(input, "\n"));
    
    // przypisujemy do zmiennych
    x = vals[0];
    y = vals[1];
    b = vals[2];   
  }
}

This code from @Kagami link

1 Like