I'm trying to get one arduino to send serial messages to the other using their Tx/Rx pins, and I succeeded with 2 arduino unos, but when I tried to send send from an arduino pro micro to an uno, it didn't work. I tried my nano 33 ble to the uno with no success either. So is this just not possible for some reason?
Here's the code:
Sender:
void setup()
{
Serial.begin(9600);
}
void loop()
{
int x = random(10, 20);
Serial.println(String(x));
delay(100);
}
Yes, I discovered that Serial1 instead of Serial works for the micro.
As for the nano 33 BLE, I still cannot get these two to talk to each other, or anything else. I suppose I could use Wire, but I'd rather use those ports for other things in my project.
Is there a working example of serial communication working with nano 33 BLEs? The code posted up top doesn't work, blank output.
Good point, but a voltage divider won't fix the 3.3->5V translation. If you make that connection, it will have an extremely low noise immunity margin. A MOSFET based level translator is a better way. It level shifts in both directions.