I am creating a thermostat application , it will send to arduino nano the desired temperature (selected from slider) , turn on/off through 2 buttons) and receive every 1 second from arduino the status ( runing,off or off) and the meassured temperature.
Actually I tried to receive a fixed string sent by Arduino but it is receiving bad , example I sent from arduino "Hello" and at a text label a seeing "H" and after "ello".
If I change the IntervalTimer at clock event iI can see "elloH" or "elloHello" or any combination of that but never the correct word.
the arduino script is very simple:
#include <SoftwareSerial.h>
SoftwareSerial mySerial(4, 5); // RX, TX
void setup()
{
// set the data rate for the SoftwareSerial port
mySerial.begin(9600);
}
void loop() // run over and over
{
mySerial.write("Hello");
delay(1000);
}
I`ll appreciate any help!!
Regards
Julio