Show Posts
Pages: [1]
1  Using Arduino / Programming Questions / Re: sending data from one Arduino to another via xbee on: November 18, 2012, 11:49:27 pm
O.K thanks I have semi figured it out. I am encountering a small problem however. I have the two Arduinos hooked up to separate computers. When I type in something into the serial monitor on one I receive it in the the other. The problem I encounter is when I type more than one letter or number in the serial monitor I receive strange characters. What could be causing this? Both Arduinos have the below sketch uploaded.


#include <SoftwareSerial.h>

#define Rx    0                     // DOUT to pin 6
#define Tx    1                     // DIN to pin 7
SoftwareSerial Xbee (Rx, Tx);

void setup() {
  Serial.begin(57600);               // Set to No line ending;
  Xbee.begin(57600);                //   type a char, then hit enter
  delay(100);
}

void loop() {
  if(Serial.available()) {          // Is serial data available?
    char outgoing = Serial.read();  // Read character, send to XBee
    Xbee.print(outgoing);
  }

  if(Xbee.available()) {            // Is data available from XBee?
    char incoming = Xbee.read();    // Read character,
    Serial.println(incoming);       //   send to Serial Monitor
  }

  delay(50);
}
2  Using Arduino / Programming Questions / sending data from one Arduino to another via xbee on: November 17, 2012, 10:55:21 pm
Hello I am trying to send data from a text file that is stored on an SD card on one Arduino to another Arduino and then store it on a second SD card. I am able to open the file and display it in the serial monitor but I am unable to send it to the other Arduino. I am using series 1 Xbee's that were purchased as a kit. They are connected to the 0 and 1 pins of the Arduino. How would I go about sending the data?
3  Using Arduino / Programming Questions / Transfer file from one arduino to another on: November 11, 2012, 12:29:20 am
Hello, I have two arduino's both with an sd shield and xbees. I am trying to transfer a txt file from one arduino to the other. How would I go about doing this?
Pages: [1]