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).
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
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 :)
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
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.
@@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?
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).
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.
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.
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.
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?
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
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 :)
@@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 :(((
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 :)
@@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.
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 :)
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?
@@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.
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!
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 :)
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 :)
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.
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
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)?
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
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!
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).
Você podia fazer mais vídeos. São muito bons!
can i know how to connect two accelerometer at the same time using Arduino uno? Do we have to use multiplexer?
Hello sir . Pleased could you explain to me how can i display the cartesian coordinates of mpu in 3d plot
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
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 :)
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
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.
@@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?
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).
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.
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.
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.
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?
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
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 :)
@@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 :(((
Nice video! where can i get the custom VI that u loaded?
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 :)
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?
A4 (Arduino) SDA (MPU-6050)
A5 (Arduino) SCL (MPU-6050)
i have a doubt in this
Hi Sir,
Excellent video~ i can't seem to run this code in LabVIEW 2019, any help?
Hi,
What problem (error) are you encountering?
@@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.
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 :)
@@SStock Hi sir, quick question. Can I use TCP configuration instead of Serial port ?
Hi,
Yes you can :)
(www.labviewmakerhub.com/doku.php?id=learn:libraries:linx:reference:labview:open-tcp)
Nice video! I copied your code but when I run it gives me error 5001. This seems to be relating to I2C, any ideas?
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?
@@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.
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!
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 :)
S.Stock dude you rock! Thank you!
¿Me podrias pasar el VI del filtro?
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 :)
Would you be able to explain which data would be used to plot roll, pitch, and yaw? And what axis would be which?
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.
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
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)?
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