Communication between 2 Arduino Uno and a third component

Hello everybody,

I'm new to this forum. I have a basic question that may appear elementary to some of you but I would really appreciate a help.

I want to connect 2 Arduino Uno (let's call them A and B) so that they can communicate with a third component (C).

here's a simplified example of what I want to make:
A and B would generate numbers and send them to C.
C would read the numbers of A and B and process them.

for example:
A generates the number 45.
B generates the number 33.
C receives and reads both the numbers and makes the sum 78.

The process is very easy. But is it feasible?
I have 2 Arduino Uno available. And jumpers and breadboard.
What else would I need?

many thanks
giorgio

What else would I need?

Another Arduino called, C

Hi Awol, thanks for replying.

I was reading in some forum about I2C, but maybe it would not be good in my case.

Do you think that the best thing to do is to have 3 Arduino of which:
A and B programmed to generate numbers;
C programmed to read the numbers of A and B and process them?

and in this case I would only need some jumpers to connect A, B and C?
or some other components is needed?

thanks

You could use SoftwareSerial.
It depends on how fast you need the answers.

I2C might be better than serial, since C can cantrol just when it reads the data. If you use software serial it can only listen to one at a time. A mega would allow for multiple hardware serial ports, and might be a better choice.

AWOL:
You could use SoftwareSerial.
It depends on how fast you need the answers.

thanks!

I don't need very fast responses and data processing. So maybe Software serial would suit.
Is it inbuilt in Arduino Uno, right?

KeithRB:
I2C might be better than serial, since C can cantrol just when it reads the data. If you use software serial it can only listen to one at a time. A mega would allow for multiple hardware serial ports, and might be a better choice.

Thanks!

May I ask you what you mean with "a mega"?

An Arduino Mega2560 - look up the Arduino product page.

That wasn't really why I pressed Reply, however ...

It must be blindingly obvious to all that you don't need three Arduinos to add two numbers. So it would probably be useful if you explain what your project is really about.

...R

Robin2:
An Arduino Mega2560 - look up the Arduino product page.

That wasn't really why I pressed Reply, however ...

It must be blindingly obvious to all that you don't need three Arduinos to add two numbers. So it would probably be useful if you explain what your project is really about.

...R

ahahah yes I would not need three Arduino, one would be probably enough.

BUT, since it is an art project/experiment, I need three physical hardwares interconnected.

A and B would interact between them only through C.

A C B (just to visualize)

I think it would make life very much easier if you use a Mega2560 for "C". It has 4 hardware serial ports so you can connect one to each of the other Arduinos and have a serial connection to your PC for development and debugging.

...R

Robin2:
I think it would make life very much easier if you use a Mega2560 for "C". It has 4 hardware serial ports so you can connect one to each of the other Arduinos and have a serial connection to your PC for development and debugging.

...R

thanks