I am currently trying to get serial data from a battery controller onto an Uno. This is the code I am using to view the serial data.
String configuration = “”; // stores all values entered on the serial monitor
void setup() {
Serial.begin(57600); // set baud rate
}
void loop() {
while(Serial.available()){
configuration += (Serial.read()); // adds incoming character to the receiving string variable
}
delay(50); //delay. Make sure the delay is long enough to allow the arduino to receive all the incoming data
Serial.println(configuration);
configuration = “”;
}
The data looks vastly different than the data I see when I use Putty to view the serial data (so I know the baud is correct at 57600). Any help is awesome!