Hey, ich würde gerne Daten von meinem Handy über ein Bluetooth modul(HC-05) auf den Arduino übertragen. Zum Test habe ich die Daten(Text) auf den Serial Monitor weitergeleitet. Aber ich bekommen nur "x" und "?" als Ausgabe. Das gleiche passiert wenn ich versuche Daten auf das Handy zu senden.
Code:
#include <SoftwareSerial.h>
SoftwareSerial BTserial(2, 3); // RX, TX
void setup() {
Serial.begin(9600);
BTserial.begin(38400);
}
void loop(){
// Read from the Bluetooth module and send to the Arduino Serial Monitor
if (BTserial.available()){
Serial.write(BTserial.read());
}
// Read from the Serial Monitor and send to the Bluetooth module
if (Serial.available()){
BTserial.write(Serial.read());
}
}