Academic Hardware Products (myDAQ, myRIO)

cancel
Showing results for 
Search instead for 
Did you mean: 

how to read these by myrio GY-521 and RFID-522

hello all

i have gyro ( gy-521 ) and RFID-522 i need to read these by myrio please help me .

 

 

gy-521   here

 

RFID-522  here

 

 

thank you.

0 Kudos
Message 1 of 12
(8,468 Views)

Why would a picture of the device ever be more useful than the user manual for the device?

 

SDA/SCL. That suggests I2C communication.  Now, go find the manual and figure out what messages to send.  Without those, the picture is entirely useless.

0 Kudos
Message 2 of 12
(8,418 Views)

hello

 

I find the manual of the device and i connected i2c with myrio but my problem in the config in labview ...

 

for example :    how to create the register config tike this picture ?

 

thank you

 

 

0 Kudos
Message 3 of 12
(8,363 Views)

hello all

can anyone help me ?

0 Kudos
Message 4 of 12
(8,175 Views)

Hello Azou_LabVIEW, 
 
The “register/data” in the screenshot you provided is a 2D array of elements that will be written to the I2C interface. If you need to know how to create arrays in LabVIEW, please refer to the article below for details.
 
Tutorial: Arrays and Clusters
 
Once you have created an empty 2D array, you can build a set of instructions\messages you want to send to your I2C slave. At this point, you will have to refer to the user manual (as natasftw suggested) of the I2C slave you are using to determine what type of commands\instructions\messages your slave accepts\expects. Typically, each slave has a unique set of commands it accepts. Once you determine the commands your want to send to your device, you can create a “register/data” array that sends your custom commands to the I2C slave.

 

Best Regards, 

j_bou

0 Kudos
Message 5 of 12
(8,154 Views)

thank you j_bou for your help ..

 

but i know how to create array and all of these.

but my probleme is register of sensor.how and where i find it ?

 

help me please..

 

thanks

 

 

0 Kudos
Message 6 of 12
(8,146 Views)

Hello Azou_LabVIEW,

 

As mentioned above, you will find the register mapping of your sensors in the user manual of each device. For example, I used a search engine and found the user manual for the gy-521.

 

MPU-6000 and MPU-6050 Product Specification Revision 3.3:

http://www.4tronix.co.uk/arduino/specs/mpu6050.pdf

 

Page 6 details that the register mapping of the device can be found the document below.

 

MPU-6000 and MPU-6050 Register Map and Descriptions Revision 4.0:

https://www.olimex.com/Products/Modules/Sensors/MOD-MPU6050/resources/RM-MPU-60xxA_rev_4.pdf:

 

The above document will allow you to determine which registers you need to read\write to.

 

For the RFID-522, you can follow the same procedure of finding the user manual which should also detail the register mapping of the device.

 

Regards,

 

j_bou

0 Kudos
Message 7 of 12
(8,109 Views)

thank you j_bou

i will try....

 

thanks

0 Kudos
Message 8 of 12
(8,104 Views)

hello all

 

how i can use these value and how select only the necessary form all in this list ..x_y_z

i tried with it in labview but did not work.

what does it mean [15:8] ?

 

thank you

 

0 Kudos
Message 9 of 12
(8,077 Views)

Hello Azou_LabVIEW,

 

What exactly did you try doing in LabVIEW (a screenshot of you code would be helpful)? How did it not work? Did you receive an error? Did you read an unexpected value back from the device?

 

If you take a look at page 30 in the manual of the device (linked below), it explains that the accelerometer measurements are 16 bit values. My guess is that the ACCEL_XOUT[7:0] register contains the least significant 8 bits and the ACCEL_XOUT[15:8] register contains the most significant 8 bits of the X-axis measurement. Together they can be combined to retieve the 16 bit X-axis accelerometer measurement.

 

MPU-6000 and MPU-6050 Register Map and Descriptions Revision 4.0:

https://www.olimex.com/Products/Modules/Sensors/MOD-MPU6050/resources/RM-MPU-60xxA_rev_4.pdf

 

Keep in mind that this is just a guess on my part. If you would like an exact answer, I would recommend contacting the manufacture of the device you are using. Once you have determined exactly how to communicate with your I2C slave, you can use LabVIEW and your myRIO to exchange information.    

0 Kudos
Message 10 of 12
(8,060 Views)