[solved] ONE serial source for TWO UNO

Hello every body.

Is it possible to receive the same serial data from a single source on two UNO ?
Each UNO using different part of serial data.

Something like that :

source UNO UNO

GND ----- GND ----- GND
TX ------- RX ------- RX
RX ------- TX
VCC ----- VCC

source and UNOs having same baud rate.

Yes, as long as you don't connect two TX lines together.

Pieter

I try with GPS modul and I receive nothing, GPS modul work fine on each UNO (I see data in IDE serial monitor)

Are you using the hardware UART for communication with the GPS module?
This UART is also connected to the USB-to-Serial converter (to the serial monitor).
Did you connect the TX of the GPS to the RX of the UNO (i.e. pin 0) or the RX pin of the USB-to-Serial interface (i.e. pin 1).

Pieter

I do not use pin 0 and 1. I use 12 and 11 on each UNO.

#include <NeoSWSerial.h>
NeoSWSerial gpsPort( 12, 11); // pin 11 to GPS TX, pin 12 to GPS RX

void setup()
{
  .../...
   Serial.begin(9600);
   while (!Serial) {}
   Serial.print("Serial connected");
   gpsPort.begin(9600);
   while (!Serial) {}
   Serial.print("GPS connected");
  .../...
}

void loop()
{  
  .../...
  
  while (gps.available( gpsPort )) 
  {   
      data = gps.read();
       .../...
      Serial.print(data);
       .../...
   }
  .../...

}

Have you a common GND connection between all 3 devices?

...R

Robin2:
Have you a common GND connection between all 3 devices?

...R

YES : GND ----- GND ----- GND

neutrinos:
Hello every body.

Is it possible to receive the same serial data from a single source on two UNO ?
Each UNO using different part of serial data.

Something like that :

source UNO UNO

GND ----- GND ----- GND
TX ------- RX ------- RX
RX ------- TX
VCC ----- VCC

source and UNOs having same baud rate.