Hello to all.... I am interfacing a Heart Rate Sensor from Nonin (the Xpod) and the sensor sends 3 bytes once a second, I receive 3 bytes, but completely wrong, don't know why. I'm doing a passtrough but don't know why... I expect to receive <163><127><127> and I receive <46><64><64>.... do you know why?... I'm working with the Arduino Mega 2560, and using a Hardware UART on it (N°1), the sketch is very simple
char incoming_char;
void setup{
Serial.begin(9600);
Serial1.begin(9600);
}
void loop{
if(Serial1.available()){
incoming_char()=Serial1.read();
Serial.print(incoming_char);
}
}
Any help will be appreciated... Or some example sketch will be very very useful.... Thanks to all....