Arduino to MATLAB GUI - Live Data Acquisition (& Plotting) of RC Transmitter Stick Positions

Поділитися
Вставка
  • Опубліковано 25 жов 2024

КОМЕНТАРІ • 8

  • @eric13hill
    @eric13hill 9 років тому +1

    Thanks for posting this.

  • @simpledeveloper2159
    @simpledeveloper2159 9 років тому

    Hello ,
    so how i can use this for real time plotting of MPU6050 (for gyroscope and accelerometer datas)
    i have try it with the MPU6050 by selecting the arduino port (for me COM14) the connexion is established but the graph still blank
    any help will be appreciated
    thanks

    • @ElectricRCAircraftGuy
      @ElectricRCAircraftGuy  9 років тому

      This is a very complicated code, so I can't fully explain my answer here, as it's beyond the scope of this demo video, but here's something to hopefully help. In my file here, insert your data in at line 223: bit.ly/1LOwpAv. Your data must be of type unsigned int, and you need to insert it into the array called "chs_cpy", in index locations 0 to 7. Ex: "chs_cpy[0] = gyroReading", again, where gyroReading is an unsiged int data type. This will place your data right into the place where the channel reading would otherwise be. Beyond this, you really need to study the code like crazy, with the help of a programmer if necessary, to know what I'm doing. I'm packing the data into binary serial packets and decoding it on the MATLAB end. Truly modifying the code to suit your needs would require a significant amount of understanding.

    • @ElectricRCAircraftGuy
      @ElectricRCAircraftGuy  9 років тому

      Let me also add: to quickly demonstrate what I'm talking about, try just reading in analog readings (ex: read some potentiometers), like this: chs_cpy[0] = analogRead(A0); chs_cpy[1] = analogRead(A1), etc. Once you get this working, you'll need to replace the analogRead with your gyro and accelerometer data, but I'll leave that up to you to figure out how to get the data from the MPU6050.

    • @simpledeveloper2159
      @simpledeveloper2159 9 років тому

      eRCaGuy hi , your response come a little bit late but thank you for your help ... i have already made an s-function for data acquisition from the mpu6050 .. i stille have a problem with integrating speed because i have a lot of fluctuation ...
      cab you help me in this situation

    • @ElectricRCAircraftGuy
      @ElectricRCAircraftGuy  9 років тому

      FrAnKenStEiN MC I'm not sure; I would need more details. Try posting your code on Github and sharing the link. You might be able to get help on the Arduino forums too.....or MATLAB user sites too, depending on which side you're having trouble with.

    • @simpledeveloper2159
      @simpledeveloper2159 9 років тому

      eRCaGuy i haven't find much help on the arduino forum neither on mathworks site i don't know if the problem is related to the calibration or in the filter that i'm using (kalman filter) to reduce error .. i will send you my email in message for further detail