Hi, i am trying to get a teensy 4.1 to comunicate with an arduino nano 33 IOT over a serial bus but.
Here is the arduino code that is supposed to constantly send a message:
And here is the teensy code that is supposed to read the message sent by the arduino on the serial monitor:
I am also attaching a photo of the breadboard wiring
The problem is that i dont see anything on the serial monitor when i plug in the teensy.
Any help will be apreciated.
Here is the arduino code that is supposed to constantly send a message:
Code:
void setup() {
Serial.begin(9600);
pinMode(13,OUTPUT);
digitalWrite(13,HIGH);
}
void loop() {
Serial.println("Hello World");
digitalWrite(13,!digitalRead(13));
delay(1000);
}
And here is the teensy code that is supposed to read the message sent by the arduino on the serial monitor:
Code:
#define radio Serial2
void setup() {
pinMode(13,OUTPUT);
digitalWrite(13,HIGH);
radio.begin(9600);
Serial.begin(9600);
}
void loop() {
if(radio.available()){
Serial.print(radio.read());
}
}
I am also attaching a photo of the breadboard wiring
The problem is that i dont see anything on the serial monitor when i plug in the teensy.
Any help will be apreciated.