Accelerometer with 3D graphics | LabVIEW (LINX 3.0) with Arduino Uno

Поділитися
Вставка

КОМЕНТАРІ • 44

  • @bleachmaker12
    @bleachmaker12 5 років тому +2

    Great video! I was wondering at around 7:08 you had made a 2x2 array. What is the significance of each of those values in the matrix?
    Thanks!

    • @SStock
      @SStock  5 років тому +1

      Hi,
      The 2x2 array going into the "Polynomial Interpolation" VI is for scaling so that the "3D-object" correspond to the movement from the sensor (Accelerometer/Gyro).

  • @lucasporto6981
    @lucasporto6981 5 років тому +1

    Você podia fazer mais vídeos. São muito bons!

  • @aliffmohd4188
    @aliffmohd4188 8 місяців тому

    can i know how to connect two accelerometer at the same time using Arduino uno? Do we have to use multiplexer?

  • @elkechebourabir5241
    @elkechebourabir5241 10 місяців тому

    Hello sir . Pleased could you explain to me how can i display the cartesian coordinates of mpu in 3d plot

  • @geryluisduarteurena3198
    @geryluisduarteurena3198 5 років тому

    it's not in the same position where I have the sensor, and only the accelerometer is working, as it would do to put the gyroscope to work.
    Will you have to repeat the same accelerometer process?
    good video

    • @SStock
      @SStock  5 років тому

      Hi,
      This video demonstration shows only how to use the accelerometer data, not the gyroscope data, for measuring the angle (along x- and y-axis).
      If the position is wrong then this might be because the sensor values, shown at 06:56, are different for your sensor (different orientation).
      Try adjusting these values (trial and error) to see if that helps you :)

  • @anandpanicker2518
    @anandpanicker2518 Рік тому

    Great video! I
    I had a doubt regarding the package used, is it compatible with hobbyist? because my MPU6050 is working yet there is no detection on labview

    • @SStock
      @SStock  Рік тому

      Hi,
      I recommend that you run the "Blink" example to make sure that the firmware is uploaded correctly (to the Arduino) and that you have a valid connection between your computer and Arduino.

    • @anandpanicker2518
      @anandpanicker2518 Рік тому

      @@SStock thank you for replying! I tried the blink example and its working, the issue at hand is theres no change in front panel"s 3d picture. Is there anyway to troubleshoot that?

    • @SStock
      @SStock  Рік тому

      You can replace the inputs on the SubVI, for the 3D picture, with some controllers so you can try to change the values manually to see if the "object" moves or not.
      NB: If there is no object at all, in the 3D picture frame, then look into the SubVI to see if there is something wrong there (ref: go through the video tutorial again).

  • @johnyingling4014
    @johnyingling4014 4 роки тому

    Heyyy Super Stock! Have any ideas on a neat way to display the gyro's dps in angular position? Specifically the gyro, not the accelerometer. In fact I'm only thinking about how to convert a single axis of the gyro. I understand it'll come from integrating a sample size in a loop but I don't know of a good way to do this in Labview. I'm not even sure how to get the word 16-bit signed integer output into something usable. Learning more everyday though! I'm running the same setup you have here. LabVIEW/Arduino/LINX.

    • @johnyingling4014
      @johnyingling4014 4 роки тому

      Ya know just in the past 2 days of researching this I've realized it's not that simple and a problem that has been plaguing people since accelerometers/gyroscopes were introduced into LabVIEW and other platforms. Silver lining though...I can now explain exacly how accerometers work to just about anyone.

    • @SStock
      @SStock  4 роки тому +1

      Hi,
      Sorry for late reply.
      I guess you now have discoverd (learned) the major differenc between a gyro and a acceleromete, which is a good thing :)
      Unfortunately, this video demonstration only shows how to implement an accelerometer with presentation using 3D graphics.

  • @baln7169
    @baln7169 6 місяців тому

    Hello sir, I have tried to input this code in Labview 2024, but I keep getting errors 5001, 5002, or 5003. From my research, this is because connection has been lost between Labview and Arduino. I have checked ports, and uploaded the firmware wizard. It still is not working. How can I fix this problem?

  • @parkle_
    @parkle_ 2 роки тому

    can you explain why the matrix in transformation step is [1720 0, -1580 0.25] and why the matrix [0, 0, 1] is applied with angle Y, I thought it should be [0, 1, 0]. It's late though, but many thanks

    • @SStock
      @SStock  2 роки тому +1

      Hi,
      Its part of the "Polynomial Interpolation" which "estimates" the values between known data points (matrix).
      The reason for using this is to make sure that the range from the sensor (Accelerometer/Gyro) is equal to the range that the "Rotate Object" VI uses.
      Finding the values for the matrix is simply just figuring out the highest and lowest values for both ranges :)
      The other two matrices you mention handle which axes to rotate around.
      In this case, the X- and Z-axes are used since they give the "correct" presentation of the object in the "3D Picture" display :)

    • @parkle_
      @parkle_ 2 роки тому +1

      @@SStock After a while, i also realize that, btw thank you a lot. I have used this for an assignment with my friend and we got an A. I expected an A+ because understand that thing took me a lot of time :(((

  • @한빛-v2m
    @한빛-v2m 6 років тому

    Nice video! where can i get the custom VI that u loaded?

    • @SStock
      @SStock  6 років тому

      Hi,
      Click on the notification that pops up at 02:24 (top right corner) in this video.
      This will guide you to a video demonstration that shows you how to create a Low-Pass Filter SubVI that you can implement into other projects :)

  • @ZonaALG
    @ZonaALG Рік тому

    How did you connect the MPU6050 to the arduino? as far I can see it is
    SCL - to A5
    SCA - to A4
    Am I right?

    • @SStock
      @SStock  Рік тому

      A4 (Arduino) SDA (MPU-6050)
      A5 (Arduino) SCL (MPU-6050)

  • @VaishnaviM-d7m
    @VaishnaviM-d7m 11 днів тому

    i have a doubt in this

  • @jiansionglee4000
    @jiansionglee4000 2 роки тому

    Hi Sir,
    Excellent video~ i can't seem to run this code in LabVIEW 2019, any help?

    • @SStock
      @SStock  2 роки тому

      Hi,
      What problem (error) are you encountering?

    • @jiansionglee4000
      @jiansionglee4000 2 роки тому

      @@SStock Hello~ I’m currently using ADXL345 on this code(I replaced the linx sensor code to ADLX345), I can get measurements of XYZ, but the 3D graphic won’t orient. I'd be thankful for your guidance.
      Thank you for your reply.

    • @SStock
      @SStock  2 роки тому

      Hi,
      Sounds like you need to take a closer look at the "transformations" part (shown at 05:35).
      It might be a scaling problem related to the 2x2 array going into the "Polynomial Interpolation" VI :)

    • @jiansionglee4000
      @jiansionglee4000 2 роки тому

      @@SStock Hi sir, quick question. Can I use TCP configuration instead of Serial port ?

    • @SStock
      @SStock  2 роки тому

      Hi,
      Yes you can :)
      (www.labviewmakerhub.com/doku.php?id=learn:libraries:linx:reference:labview:open-tcp)

  • @jamespyne7711
    @jamespyne7711 5 років тому

    Nice video! I copied your code but when I run it gives me error 5001. This seems to be relating to I2C, any ideas?

    • @SStock
      @SStock  5 років тому

      Hi,
      Error 5001 indicates that the digital input pin being read from does not exist on the board type specified.
      Are you using Arduino UNO or another type of board?

    • @Jimmy-gi9fp
      @Jimmy-gi9fp 5 років тому

      @@SStock Thanks for your reply, I am using an Arduino Uno. I connected the uno to an MPU6050. SDA-A4 and SCL-A5 as suggested. I've searched forums but cant find anything yet. I appreciate your help, this is for my senior project.

    • @Jimmy-gi9fp
      @Jimmy-gi9fp 5 років тому +1

      I got it. I changed my I2c address to 0x68 (instead of 0x69) and it worked. Is there a way to add the Z axis to this? I'd like to obtain Yaw, Pitch and Roll. Thanks again!

    • @SStock
      @SStock  5 років тому +1

      It's easy to miss the change from 0x69 to 0x68 being done at 11:18 :)
      For adding the Z-axis you can expand the "Unbundle By Name", shown at 02:15, so that you also get the Z-axis value out (remember to pass this into a LowPass filter).
      Next you must add an extra axis to the 3D-object, using "Rotate Object" VI and "Translate Object" VI, as shown at 05:45.
      Then link the Z-axis, together with the X- and Y-axis, to the 3D-object as shown at 09:53 :)

    • @jamespyne7711
      @jamespyne7711 5 років тому +1

      S.Stock dude you rock! Thank you!

  • @omarchavez8684
    @omarchavez8684 5 років тому

    ¿Me podrias pasar el VI del filtro?

    • @SStock
      @SStock  5 років тому +1

      Hi,
      Click on the notification that pops up at 02:24 (top right corner) in this video.
      This will guide you to a video demonstration that shows you how to create a Low-Pass Filter SubVI that you can implement into other projects :)

  • @sigtau150
    @sigtau150 4 роки тому

    Would you be able to explain which data would be used to plot roll, pitch, and yaw? And what axis would be which?

    • @SStock
      @SStock  4 роки тому +1

      Hi,
      In this video demonstration the X-axis simulates the "Roll" and the Y-axis simulates the "Pitch".
      The "Yaw" on the other hand is not simulated since it requires more than just the accelerometer.

  • @GioByte10
    @GioByte10 4 роки тому

    Hi, great video, but I have a problem, and was wondering if you could help me, I did the code just as the video, but when testing it, my 3D images just moves from corner to corner, like in diagonal, instead of following the Gyro's movement, I have tried with other Gyro, change de serial port, but nothing seems to work, any idea why this could happen? I would be thankful if you could help me, this is the code I used:
    drive.google.com/folderview?id=1SwZn7Q8hOzgPUysV6ks2eV51p45q3ZYH

    • @SStock
      @SStock  4 роки тому

      Hi,
      I have test your code (VI) and it worked fine, except I had to change the "I2C Slave Address" from 0x69 to 0x68.
      Just to be sure:
      -Are you spesificaly using "MPU-6050" Accelerometer/Gyro (and not another type of Accelerometer/Gyro)?
      -Have you wired it "exactly" the same as shown in the beginning of the video (00:01)?

    • @parkle_
      @parkle_ 2 роки тому

      i have the same problem with you, the point is the low pass filter. i dont know how but when i remove it and wire directly from x axis to subVI, it works. although there is some noise