LabVIEW Interface for Arduino Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

Can a mpu6050 be read without arduino?

Thanks for the friends at here, I have find out how to read mpu6050 by LINX.

but this time, our professior asked us that the arduino is not allowed.

so I wannder if there is a way that can read the mpu6050 by labview?

I have : cDAQ-9172: DAQ chassi , NI 9401(DIO) , NI 9205(AI) in hand(althought I do not how do these things work.)

thanks.

0 Kudos
Message 1 of 5
(6,567 Views)

It is not possible to communicate with an I2C device without hardware that implements the I2C communication protocol.  Therefore, LabVIEW alone, cannot communicate with the MPU-6050 or any other I2C device.

 

So, you need some sort of hardware that implements the I2C protocol in order to use the MPU-6050.  The Arduino, chipKIT, and other microcontrollers are often good, low-cost choices for reading a sensor like this.  NI does make some devices with I2C capabilities like the USB-8451 or USB-8452, but are likely not an affordable option for a student project.

 

I would recommend to you to ask your professor what would be an acceptable piece of hardware that you could use.  Then, based on his requirements, you can try and search for a device that is acceptable.

 

If you can't find a device that meets the criteria or you are unable to aquire such a device, then I would recommend that you find an accelerometer/gyro that outputs analog signals.

0 Kudos
Message 2 of 5
(5,521 Views)

thank you Nathan_B~    and we finally find that we have myrio to use.

so now I have myrio-1900 and mpu6050.

can I get the gyro vaule just by these two things, without arduino?

that is the code that i made.   and i can not get any vaule from that. 

i just think that do I need to make the sleep mode off ?   or what should I input at "the Bytes to Write"?

thank you very much!~

微信截图_20151210214043.png

0 Kudos
Message 3 of 5
(5,521 Views)

Some links:

InvenSense MPU 6050 GY-521

https://decibel.ni.com/content/docs/DOC-30248

NI myRIO: I2C serial communication

https://www.youtube.com/watch?v=7CgNF78pYQM

how to read a MPU 6050 through Labview.

https://decibel.ni.com/content/message/60929

http://www.invensense.com/products/motion-tracking/6-axis/mpu-6050/

https://www.cdiweb.com/datasheets/invensense/MPU-6050_DataSheet_V3%204.pdf

Short answer, you should be able to read the MPU-6050 directly with your

myRIO.

Regards,

Patrick

---------------------
Patrick Allen: FunctionalityUnlimited.ca
0 Kudos
Message 4 of 5
(5,521 Views)

You'll want to do everything that you would do with the VIs that I wrote

for LIFA or LINX.

Also, LINX supports the myRIO so you would be able to use that with the

provided VIs for the MPU6050. Just make sure you get one of the latest beta

versions which fixes a small mistake for this sensor.

Message 5 of 5
(5,521 Views)