Hi,
i am trying to make a bluetooth communication with my RN42 module and LabView. I have attached the VI with this message. And my arduino code is:
int digPin=9;
void setup() {
pinMode(digPin, INPUT);
Serial.begin(9600);
}
void loop() {
//c=digitalRead(9);
if(Serial.available())
{
//char c = digitalRead(digPin);
char c = analogRead(digPin);
Serial.write(c);
//Serial.write(1);
Serial.print(1);
delay(100);
}
}
I am not able to communicate to my Bluetooth module. Can someone please help me with this.
Thank you.
Regards,
Supreet Juneja