Pages: 1 [2]   Go Down
Author Topic: How to send message?  (Read 1134 times)
0 Members and 1 Guest are viewing this topic.
California
Offline Offline
Faraday Member
**
Karma: 88
Posts: 3382
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

UK
Offline Offline
Shannon Member
****
Karma: 223
Posts: 12630
-
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

I only provide help via the forum - please do not contact me for private consultancy.

London
Offline Offline
Edison Member
*
Karma: 47
Posts: 1437
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

0
Offline Offline
Tesla Member
***
Karma: 145
Posts: 9627
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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:
// 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="";
  }
}

Logged

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

Offline Offline
Jr. Member
**
Karma: 0
Posts: 60
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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:
// 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.
Logged

Pages: 1 [2]   Go Up
Jump to: