Arduino to Arduino

Hello,
I need a send serial command from arduino uno to arduino pro mini. How can I connect pins ? and Can I use normal serial sketch for it ? thanks for helps.

Sure, Rx to Tx, Tx to Rx, Gnd to Gnd.

Each side:
Serial.write(dataByte);

if (Serial.available()>0){
incomingByte = Serial.read();
}

USB to computer is not really available - tho if you open the serial monitor you should be able to monitor the incoming Rx line without interfering with the data.

I will try :slight_smile: Thank you.

USB to computer is not really available

You can communicate with the computer and the ProMini at the same time if you use the SoftwareSerial library. Using this library you can set any other pins to act like Rx and Tx.

Ok. I designed pins, Arduino uno and pro mini, rx pin on pro mini = tx pin on uno, tx pin on pro mini = rx pin on uno, and gnd to gnd.

I want to read serial on pro mini from Uno. I couldnt read :frowning: My sketch is below. Where I am making mistake ???

char readmini;

void setup() {
Serial.begin(9600);
readmini = Serial.read();
}

void loop() {

Serial.println(readmini);
}

Need to see if data came in first:

void setup() {
 Serial.begin(9600);
}

void loop() {
if (Serial.available()>0){
   readmini = Serial.read();

  Serial.println(readmini);
  }
}

not working :frowning:

What's it do?