Hi all,
I m using fio and 2 pcs xbeep24 s1. One xbee attached on my fio and the other xbee attached on my pc with xbee explorer.I just want read my sensor datas on my pc with ASCII table.I just reading strange characters on xctus serial.I tried other serials,didnt solve for me. Here is my code:
#include “DHT.h”
#define DHT1PIN 2
#define DHT2PIN 7
#define DHT3PIN 4
#define DHT1TYPE DHT22
#define DHT2TYPE DHT22
#define DHT3TYPE DHT22
DHT dht1(DHT1PIN, DHT1TYPE, 3);
DHT dht2(DHT2PIN, DHT2TYPE, 3);
DHT dht3(DHT3PIN, DHT3TYPE, 3);
void setup(){
Serial.begin(9600);
dht1.begin();
dht2.begin();
dht3.begin();
}
void loop(){
delay(2000);
float h1 = dht1.readHumidity();
float t1 = dht1.readTemperature();
float h2 = dht2.readHumidity();
float t2 = dht2.readTemperature();
float h3 = dht3.readHumidity();
float t3 = dht3.readTemperature();
if(isnan (h1) || isnan(t1)) {
Serial.println(“Sicaklik ve nem bilgisi bekleniyor…”);
}else{
Serial.print("Nem1: ");
Serial.print(h1);
Serial.print(" %/t");
Serial.print("Sicaklik1: ");
Serial.print(t1);
Serial.println(" *C ");
}
if(isnan(h2) || isnan(t2)){
Serial.println(“Sicaklik ve nem bilgisi bekleniyor…”);
}else{
Serial.print(“Nem2 :”);
Serial.print(h2);
Serial.print(" %/t");
Serial.print("Sicaklik2: ");
Serial.print(t2);
Serial.println(" *C ");
}
if(isnan(h3) || isnan(t3)){
Serial.println(“Sicaklik ve nem bilgisi bekleniyor…”);
}else{
Serial.print(“Nem3 :”);
Serial.print(h3);
Serial.print(" %/t");
Serial.print("Sicaklik3: ");
Serial.print(t3);
Serial.println(" *C ");
}
Serial.println();
}
and reading strange characters.Any helps will be wonderful.I m using Pın DIO 0 on xbee.
Kind regards,
Eren