Go Down

Topic: How to send message? (Read 1 time) previous topic - next topic

Arrch


After I read your posts just now, servo motor is not working =x.


That means there is something wrong with your code/wiring. God only knows what that is, since you haven't posted any code or wiring scheme.

PeterH

Divide your project into parts. To get the interface to the Flyport (whatever that is) working, write a test sketch that just sends a hard-coded message and get that interface working before you then try to use it in the rest of your project. I suggest you also test the VR part in isolation if you haven't already done it. Once both these interfaces work, all you need to do is include both features in a sketch that receives the input text from the VR interface and sends it to the Flyport interface.
I only provide help via the forum - please do not contact me for private consultancy.

Henry_Best



After I read your posts just now, servo motor is not working =x.


That means there is something wrong with your code/wiring. God only knows what that is, since you haven't posted any code or wiring scheme.

Shhhsh! It's Top Secret. If he told us he'd have to kill us.  :smiley-zipper:

zoomkat

Simple code that will echo what ever is sent from the serial monitor back to the serial monitor and out the arduino rx pin.


Code: [Select]

// zoomkat 7-30-11 serial I/O string test
// type a string in serial monitor. then send or enter
// for IDE 0019 and later

String readString;

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

void loop() {

  while (Serial.available()) {
    delay(2);  //delay to allow byte to arrive in input buffer
    char c = Serial.read();
    readString += c;
  }

  if (readString.length() >0) {
    Serial.println(readString);

    readString="";
  }
}

Consider the daffodil. And while you're doing that, I'll be over here, looking through your stuff.   8)

cloudystrife


Simple code that will echo what ever is sent from the serial monitor back to the serial monitor and out the arduino rx pin.


Code: [Select]

// zoomkat 7-30-11 serial I/O string test
// type a string in serial monitor. then send or enter
// for IDE 0019 and later

String readString;

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

void loop() {

  while (Serial.available()) {
    delay(2);  //delay to allow byte to arrive in input buffer
    char c = Serial.read();
    readString += c;
  }

  if (readString.length() >0) {
    Serial.println(readString);

    readString="";
  }
}




Thanks for the help. I have tested the communication between Arduino and Flyport using your code but servo motor connected to Flyport is not working. So I think the problem is the communication between Arduino and Flyport.

Go Up