Fifteenth day

Hello fellow nerds!

Structure:

Propellers were finally added, so we can say it’s finished (at least for the upcoming tests).

Remote control:

The USB host shield reseller has been located, the shop is and will be out of stock a few days, but it’s going to be bought soon, it’s link is below

http://www.openhacks.com/page/productos/id/51/title/USB-Host-Shield

PID control:

As mentioned in older posts, we recently developed a new program, which enables us to plot data from the serial port (this will be usefull for PID tunning). Below, you can find the first version (only one line supported).

  1. import processing.serial.*;
  2. Serial Arduino;
  3. int ioval;
  4. ArrayList wave = new ArrayList();
  5. int waveLength = 880;
  6. int offset = width / 2;
  7. float prevX = 0, prevY = 0;
  8. float multiplier = 1;
  9. int j = 0;
  10. void setup()
  11. {
  12.   size(1500,1023);
  13.   background(0);
  14.   Arduino = new Serial(this, “COM3”,9600);
  15.   Arduino.bufferUntil(‘\n’);
  16. }
  17. void draw()
  18.   {
  19.     background(0);
  20.     for(int i = 0; i < wave.size(); i++)
  21.       {
  22.         stroke(255);
  23.         if(prevX == 0 && prevY == 0)
  24.           {
  25.             prevX = i;
  26.             prevY = ((Integer)wave.get(i));
  27.           }
  28.         line(prevX, prevY, i, ((Integer)wave.get(i)));
  29.         prevX = i;
  30.         prevY = ((Integer)wave.get(i));
  31.       }
  32.   }
  33. void serialEvent (Serial Arduino)
  34.   {
  35.    ioval = int(Arduino.readStringUntil(‘\n’));
  36.    wave.add(abs(ioval)+500);
  37.    if(wave.size() >= waveLength)
  38.     {
  39.       wave.remove(0);
  40.     }
  41.   }

Improvements shall be done sooner than you think 😉

Shield:
Totally redesigned, the PCB board has already been printed.

IMU sensor:

It appears that we have to run a brand new calibration routine in order to get better measures (needless to say, this is a great relief).

Well, that’s all for today. As usual, any question you have will be answered as soon as posible, so don’t hesitate and ask! 😉

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