Academic Hardware Products (myDAQ, myRIO)

cancel
Showing results for 
Search instead for 
Did you mean: 

Changing sensor in project essential guide example

In the project essential guide mechatronics kit there is a example with a gyroscope L3G4200D. I'm currently working on the integration of a similiar st sensor L3GD20 into MyRio. I found a document (http://www.st.com/st-web-ui/static/active/en/resource/sales_and_marketing/presentation/product_prese...

comparing those two with the information, that basically just the two register adresses differ.

But how can I change them in the published example program?

0 Kudos
Message 1 of 3
(4,779 Views)

Hi Maloya,

 

the I2C slave adresses of the two gyroscopes differ.

 

When you open the block diagram of Main.vi in the project you can see a constant which is called "PmodGYRO adress". It is set to 0x69 in the example.

According to the ST document you have to change it to 6B and it will work.

 

 

Regards,

Andi

0 Kudos
Message 2 of 3
(4,766 Views)

Hey Andi,

first of all thanks for your answer.

I tried changing the adress to 6B but it didn't work, resulting in different failure, but still a failure. I will check out the difference between both compiling errors. But may you explain me the 6B - 0110 1011 ? When you erase the highest bit. You get for the L3GD20 0101 0100  Hex 54.

 

Regards Victor

0 Kudos
Message 3 of 3
(4,753 Views)