Quantcast
Channel: Instrument Control (GPIB, Serial, VISA, IVI) topics
Viewing all articles
Browse latest Browse all 5680

comunicacion serial via bluetooth

$
0
0

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? 


Viewing all articles
Browse latest Browse all 5680

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>