Hi,
I'm trying to communicate with a arduino bt (BT-V06) via serial port.
I successfully upload this program to arduino:
int ledPin = 13; // select the pin for the LED
int i=0; // simple counter to show we're doing something
void setup() {
pinMode(ledPin,OUTPUT); // declare the LED's pin as output
Serial.begin(115200); // connect to the serial port
}
void loop () {
Serial.print(i++);
Serial.println(" Hello world!"); // print out a hello
digitalWrite(ledPin, HIGH);
delay(500);
digitalWrite(ledPin, LOW);
delay(500);
}
After installing pySerial, I try to read data using the following python code:
>>> import serial
>>> ser = serial.Serial('/dev/tty.ARDUINOBT-BluetoothSeri-1', 115200)
>>> while 1:
... ser.readline()
However I do not get any answer...
Any ideas?