05-20-2015 01:31 AM
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?
05-20-2015 08:03 AM
Your question is not instrument control related.
I suggest you post your question to http://forum.arduino.cc