I’m new to this and a bit lost. Any help is very much appreciated.
Trying to get one Arduino Xbee to send the data read from Analog input to another Arduino Xbee
I use two Arduino Uno with wireless proto shield and wireles SD shield.
My code for the sender :
int port = A0;
float val = 0;
float offset = 0.05;
val = analogRead(port);
float voltage = offset + 5.0*val/1023.0;
And for the receiver:
float data = Serial.read();
When looking at the serial monitor in the sender the data is fine but at the receiver I only get repetitive data, exactly this:52.00 51.00 13.00 10.00 52.00 51.00 13.00 10.00 52.00 51.00 13.00 10.00. Like this all the time. Even if I vary the input the received data remains the same
However if I send simple H and L signals the data is received perfectly fine. I don’t understand why I have this problem with numbers.
Any ideas? ty