Seventeenth day

Hello!

Today was the deadline for the achievement of our midterm objetives, so the work we did was all about them.

xBee transmition:

We tried to transmit a string of type char (basically, words). Two arduinos were used, each one was conected to an xBee module, one of them was programmed to transmit the string and the other one was programmed to receive it. Some problems with connections appeared, but in the end, the transmition was succesfull. Below you can find the two codes.

  1. //Tx
  2. void setup()
  3. {
  4.   Serial.begin(9600);
  5.   Serial.print(“+++”);
  6.   delay(2000);
  7.   Serial.print(“ATID3322\r”);
  8.   delay(2000);
  9.   Serial.print(“ATDH0\r”);
  10.   delay(2000);
  11.   Serial.print(“ATDL11\r”);
  12.   delay(2000);
  13.   Serial.print(“ATMY22\r”); // These lines have the only purpose of programmng the xBee module.
  14.   delay(2000);                    // which will have to be done only once. However, if you want to use the
  15.   Serial.print(“ATCH10\r”); // xBee in a new project, we suggest you consider programming it again
  16.   delay(2000);                    // as different funcionality may be needed
  17.   Serial.print(“ATBD3\r”);
  18.   delay(2000);
  19.   Serial.print(“ATWR\r”);
  20.   delay(2000);
  21.   Serial.print(“ATCN\r”);
  22.   delay(2000);
  23. }
  24. void loop()
  25. {
  26.   Serial.print(“Quadcopters are great!\n”);  // This is what we are going to transmit
  27.  }
  1. //Rx
  2. void setup()
  3. {
  4.   Serial.begin(9600);
  5.   Serial.print(“+++”);
  6.   delay(2000);
  7.   Serial.print(“ATID3322\r”);
  8.   delay(2000);
  9.   Serial.print(“ATDH0\r”);
  10.   delay(2000);
  11.   Serial.print(“ATDL22\r”);  // These lines hold the same purpose than the ones in the code above,
  12.   delay(2000);                    // However, some slight changes have been made.
  13.   Serial.print(“ATMY11\r”);
  14.   delay(2000);
  15.   Serial.print(“ATCH10\r”);
  16.   delay(2000);
  17.   Serial.print(“ATBD3\r”);
  18.   delay(2000);
  19.   Serial.print(“ATWR\r”);
  20.   delay(2000);
  21.   Serial.print(“ATCN\r”);
  22.   delay(2000);
  23. }
  24. void loop()
  25. {
  26.    if (Serial.available())  // Is there any data stored in the serial buffer?
  27.     {
  28.       Serial.print((char)Serial.read()); //if there is, print it.
  29.     }
  30. }

Even though there are some characters that dissapear during the transmition, the performance is still quite good. Further development will be done in order to improve these readings.

Shield:

Its components have been succesfully soldered. Next time, the board will be tested.

IMU sensor:

It turns out that octave is quite similar to matlab, so Debian is not needed, this makes things quite easier. Due to time constrints, the sensor was not calibrated today.

ESC’s (speed controllers):

After last week’s incident, it was clear that programming this devices is compulsory. Trials will be made next time.

That’s all about today, hope you enjoyed it.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s