Remote Control!

I am doing a project at present that involves an Arduino 2560 controlling a 'robot' of sorts.... but I need to remote control it via an Arduino Esplora. How can I remotely control the 2560 using the Esplora? I need a screen on the Esplora so can't use the SPI interface.... can I use an xbee somehow or do I need a different method? Thank you (amateur knowledge)

PaulWoodroffe:
but I need to remote control it via an Arduino Esplora.

You need... Why?

If you can't trace the steps to create this than it's way over your head. Take a few steps back and make some more code to do little things and come back later.

septillion:
If you can't trace the steps to create this than it's way over your head. Take a few steps back and make some more code to do little things and come back later.

Did you get out of bed the wrong side today? Because that is quite impressively unhelpful!

The question was more about can it be done with an xbee or do I need some other method? Moreover, can I do it at all with these two main components?
Would it be better to use 2 x 2560 units and xbee's?

No, it's just wise advice :wink:

You can use whatever transmitter you like (even a cable) because you didn't give any specification at all. And the Esplora has some IO so you can connect things you like. Just connect it to the right pins and write the right code :wink:

Thanks Septillion; that's a bit more helpful :slight_smile:

I'm trying to find some nice tutorials on getting an Arduino to talk to an Arduino, but haven't found any yet...

PaulWoodroffe:
getting an Arduino to talk to an Arduino

Easiest way to do that is I2C, I reckon; see this thread.

Or wireless, Wixel is dead simple.

I'm trying to find some nice tutorials on getting an Arduino to talk to an Arduino, but haven't found any yet...

I've used the below code to communicate between two arduinos via thier serial ports.

//zoomkat 3-5-12 simple delimited ',' string tx/rx 
//from serial port input (via serial monitor)
//and print result out serial port
//Connect the sending arduino rx pin to the receiving arduino rx pin. 
//Connect the arduino grounds together. 
//What is sent to the tx arduino is received on the rx arduino.
//Open serial monitor on both arduinos to test
//A diode between the slave tx and master rx is suggested 
//for isolation, with diode band attached to slave tx side. 
//

String readString;

void setup() {
  Serial.begin(9600);
  Serial.println("serial delimit test 1.0"); // so I can keep track of what is loaded
}

void loop() {

  //expect a string like wer,qwe rty,123 456,hyre kjhg,
  //or like hello world,who are you?,bye!,

  if (Serial.available())  {
    char c = Serial.read();  //gets one byte from serial buffer
    if (c == ',') {
      if (readString.length() >0) {
        Serial.print(readString); //prints string to serial port out
        Serial.println(','); //prints delimiting ","
        //do stuff with the captured readString 
        readString=""; //clears variable for new input
      }
    }  
    else {     
      readString += c; //makes the string readString
    }
  }
}

Hi,
You can see example here:
http://www.electronics-freak.com/lesson-5-rf-uart-module-100mw-with-arduino/
You have also the code
Enjoy,
Roee