Hi, I am fairly new to using Arduinos. I am making a project in which I have an Arduino controlling motor ("A") and a different Arduino controlling motor ("B"). I then have another arduino taking various senor values, in which it uses to activate the correct Motor. Is it possible for the Arduino to send a integer to start the correct arduino aswell as the sensor value. And then afterwords the Arduino with the motor sends a value to the sensor arduino to indicate it is done its operation.
spiderpro2003:
Is it possible for the Arduino to send a integer to start the correct arduino aswell as the sensor value.
it is possible.
You have to be more specific regarding your environment:
what is the distance you have to span between the Arduinos,
is there any risk of interference ("motors" can introduces a lot of interferences)
do you have limitations regarding amount of wires, no wires at all, two wires, three wires up to doesn't matter
The easiest way to learn about "communication" is open your serial monitor and try to command one Arduino via serial terminal. If this works - establish communication between two Arduinos. Unfortunatly you only have one hardware Serial on the Uno. Google around for SoftSerial.
This should give you plenty of ideas for the next weeks.
If you are considering a Serial connection between your Arduinos have a look at the examples in Serial Input Basics - simple reliable ways to receive data. There is also a parse example to illustrate how to extract numbers from the received text.
The technique in the 3rd example will be the most reliable. It is what I use for Arduino to Arduino and Arduino to PC communication.
You can send data in a compatible format with code like this (or the equivalent in any other programming language)