Hi All,
I have been struggling for a number of hours trying to get my Teensy 3.5 communicating to an Arduino over hardware serial.
To ensure it was not (well less likely) a software error I stripped my programs down to a simple serial print (Arduino) and serial receive (Teensy) as seen below. (I tried using the example Teensy code too.)
I have quadruple checked my wiring between the two and continuity checked between the RX, TX and TX, RX pins of the Arduino, Teensy respectably. I have also had other devices communicating with the Arduino over the serial port in question.
I have tried writing from the Teensy to the Arduino and even tried another Teensy both to no avail.
The Teensy is running at 96MHZ if that matters.
Any help is much appreciated!
I have been struggling for a number of hours trying to get my Teensy 3.5 communicating to an Arduino over hardware serial.
To ensure it was not (well less likely) a software error I stripped my programs down to a simple serial print (Arduino) and serial receive (Teensy) as seen below. (I tried using the example Teensy code too.)
I have quadruple checked my wiring between the two and continuity checked between the RX, TX and TX, RX pins of the Arduino, Teensy respectably. I have also had other devices communicating with the Arduino over the serial port in question.
I have tried writing from the Teensy to the Arduino and even tried another Teensy both to no avail.
The Teensy is running at 96MHZ if that matters.
Any help is much appreciated!
Code:
//this is the Teensy 3.5 code
void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
Serial1.begin(9600);
Serial.println("Setup Finished");
}
void loop() {
// put your main code here, to run repeatedly:
if(Serial1.available()> 0){
Serial.write(Serial1.read());
}
}
Code:
//this is the Arduino mega code
void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
Serial1.begin(9600);
Serial.println("Setup Finished");
}
void loop() {
// put your main code here, to run repeatedly:
Serial1.print("data");
Serial.println("Data Sent to Teensy");
delay(1000);
}