PDA

View Full Version : Strange readings on serial1 with teensy3



lollotek
12-30-2012, 10:35 AM
with an easy program like this:


void setup() {
Serial1.begin(57600);
}

void loop() {
int incomingByte;

if (Serial1.available() > 0) {
incomingByte = Serial1.read();
Serial1.write(incomingByte);
}
Serial1.println("12345");
}

I recivie this loop response:


12345
112345
212345
312345
412345
512345

12345

12345
112345
212345
312345
412345
512345

12345


The RX of serial is not connected and i read the TX through an arduino.

Seems like that I get on serial with "Serial1.read()" is what I previusly sent, how is possible ?
and I see this problem on all of my ports..
I broke somethink?

lollotek
12-30-2012, 12:45 PM
[SOLVED]
I found the problem.. rx and tx was connected by some bad soldering.. :mad: