SeGa
SeGa

Reputation: 27

Arduino Bluetooth module output

i have a JY-MCU bluetooth module that is connected with a Arduino Uno and is running the following sketch (it was an example of the cordova bluetooth serial plugin):

 #include <SoftwareSerial.h>

 #define RxD 11
 #define TxD 10

 SoftwareSerial bluetooth(RxD,TxD);
 int counter = 0;

 void setup() 
 { 
  Serial.begin(9600);
  bluetooth.begin(9600); //Set BluetoothBee BaudRate to default baud rate 38400
  setupBluetooth();
  Serial.println("\nBluetooth Counter\n");
 } 

 void loop() {

  Serial.println(counter);
  bluetooth.print(counter);
  counter++;
  delay(1000);
 }

When im open the serial monitor with the USB-port, it counting from 0 and i see all things right. When im open the serial monitor with the bluetooth-port, im getting only diamonds with a question mark in it. Baudrate is on 9600, so thats not the problem.

Anyone knows what i have to do, to get the right values through bluetooth?

Upvotes: 0

Views: 368

Answers (1)

SeGa
SeGa

Reputation: 27

The module wasnt working right, we changed the module and all things work now.

Upvotes: 0

Related Questions