Print to the screen, without printing it to the serial monitor

Hello,

I'm trying to print int to the screen, without printing it to the serial monitor, how can i do it?

Im using Uno's ports 0 and 1 to transmit to nano using RS485 communication,
so I want most of the things to be printed to my PC screen, and only few bits to pass to pors 0 and 1.

many thanks:)

Welcome to the forum

Use the SoftwareSerial library and an external serial to USB converter to print to either a second instance of the IDE on a separate COM port or a terminal program such as CoolTerm on a separate COM port

thank you for the info and the fast comment:)

I read now about this lib, cant i do it in a more simple way? something like this maybe:


#include <SoftwareSerial.h> 

SoftwareSerial mySerial(10,11); // Rx, Tx

void setup() {

  mySerial.begin(9600); 
  Serial.begin(9600);
}

void loop() {
  
  //Serial.println("I'm The master");
  delay(1000);
  mySerial.print(010101); //send this to the RS 485 via pors 10,11
  Serial.println("Text to the PC Screen"); //send this to the screen via ports 0,1

}

That is the way that I am suggesting you could do it

thank you very much:)

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.