Go Down

Topic: Software Serial Port (Read 1 time) previous topic - next topic

innometrix

Hello
I already use Serial and Serial1.
I need another serial port on my MKR1400.
Is it possible to use a library like SoftwareSerial on the mkr1400?
Thanks

innometrix


innometrix

Finally I tested this method : https://www.arduino.cc/en/Tutorial/SamdSercom
It works perfectly with Sercom4 on the D4 and D5 pins that I use as Serial3 hardware serial port.

mouleswarareddy

Dear All,

I am trying to communicate between Aurdino UNO (sender) and MKR 1400 (receiver). When I test mySerial.write() and mySerial.read() within MKR 1400 sketch its working perfectly.


I connected Rx of sender to Tx of receiver and vice versa, GND of sender to GND of receiver.
Both the boards are connected to two USB ports of my laptop.

But MKR is not receiving data from UNO board...

Sender Code:

void setup() {
 // put your setup code here, to run once:
 Serial.begin(9600);

}

void loop() {
 sendSerial();
 delay(10);
}

void sendSerial()
{

 int randNo = rand();
   Serial.write(randNo);
}




Receiver Code:

void SerialRead()
{
 int incomingByte;
 while(mySerial.available())
 {
   // read the incoming byte:
   incomingByte = mySerial.read();
   char a = incomingByte;
   Serial.print(a);
 }
}

Mouleswara

Go Up