Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

comunicacion serial via bluetooth

Hola, estoy comenzando a ustilizar labview, tengo un programa en ARDUINO que via bluetooth emite la temperatura en tiempo real con un sensor LM35, mi codigo es el siguiente: 

 

#include <SoftwareSerial.h>
SoftwareSerial BT(1,0); // RX,TX
float tempC;
float tempF;
int tempPin=0;
int LED = 13;


void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
BT.begin(9600);
pinMode(LED,OUTPUT);
}

void loop() {
// put your main code here, to run repeatedly:

tempC=analogRead(tempPin);


tempC = (5.0* tempC * 100)/1024.0;
tempF = (tempC * 1.8 + 32);
if (tempC >= 30)
{
Serial.print(tempC);
Serial.print(" C° ");

Serial.print(tempF);
Serial.println(" F° PELIGRO!!!");
digitalWrite(LED,HIGH);

delay(2000);
}


else
{


Serial.print(tempC);
Serial.print(" C° ");


Serial.print(tempF);
Serial.println(" F°");


digitalWrite(LED,LOW);
delay(2000);;
}


}

 

Con una App de android llamada Bluetooth Terminal puedo recivir los datos emitidos por arduino pero ¿como puedo recivir los datos por medio de labview? 

0 Kudos
Message 1 of 2
(4,300 Views)

Your question is not instrument control related.

 

I suggest you post your question to http://forum.arduino.cc

 

 

0 Kudos
Message 2 of 2
(4,285 Views)